> ## Documentation Index
> Fetch the complete documentation index at: https://apidocs.erlcrussia.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Add a link domain

> Adds a short link domain to the team.



## OpenAPI

````yaml en/openapi/en-api-v3-openapi.yaml POST /teams/{teamId}/redirect-domains
openapi: 3.1.0
info:
  title: ER:LC Russia API V3
  description: >-
    ER:LC Russia API for servers, users, CDN, redirects, subscriptions, and
    access keys.
  version: 3.0.0
servers:
  - url: https://api.erlcrussia.com/v3
    description: Production server (com)
  - url: https://api.erlcrussia.xyz/v3
    description: Backup server (xyz)
security: []
tags:
  - name: ER:LC Server
    description: Obtaining status, online, lists of players and staff of the ER:LC server.
  - name: ER:LC Teams
    description: Sending and queuing in-game server commands (:h, :m, :kick, :ban, etc.).
  - name: Economics
    description: >-
      Interaction with the economic system (users, businesses, mafias, stores,
      advertising).
  - name: Statistics API
    description: >-
      High-performance obtaining statistics of discord servers and game servers
      (online, participants, bots).
  - name: Verification API
    description: Search and comparison of Discord ID and Roblox ID accounts.
  - name: CDN Assets
    description: >-
      Load, manage, statistic and clear MinIO/Edge CDN object storage file
      cache.
  - name: CDN Folders
    description: Hierarchical structure and sorting of CDN media library folders.
  - name: Punishment API
    description: Manage the balance and transaction history of players' points.
  - name: Subscriptions API
    description: >-
      Catalog of plans, FunPay orders, accrual of benefits and activation of
      subscriptions.
  - name: Authorization API
    description: >-
      Login via Discord and Roblox OAuth2, manage user sessions and link
      accounts.
  - name: Management API - WebSocket Keys
    description: Managing access keys to the WebSocket gateway and channel subscriptions.
  - name: Management API - Webhooks
    description: Registration, accessibility validation and monitoring of custom webhooks.
  - name: Control API - Panel
    description: >-
      Management of users, subscriptions, tariffs, manual balance and system
      statistics.
  - name: State API
    description: >-
      Monitoring the performance of the service, connections to PostgreSQL and
      Redis.
  - name: AI Audio
  - name: AI Studio
  - name: AI administration
  - name: API Keys
  - name: Admin API - Servers
  - name: Administration of E-Coins
  - name: CDN
  - name: CDN Domains
  - name: CDN V3
  - name: Custom Webhooks
  - name: Management API - Servers
  - name: Management API - Tokens
  - name: Organization redirects V3
  - name: Private files and library
  - name: Рекламные кампании V3
paths:
  /teams/{teamId}/redirect-domains:
    post:
      tags:
        - Organization redirects V3
      summary: Add a link domain
      description: Adds a short link domain to the team.
      parameters:
        - name: teamId
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                domain:
                  type: string
                fallbackUrl:
                  type: string
                  format: uri
            example:
              domain: go.example.com
              fallbackUrl: https://example.com
      responses:
        '201':
          description: Successful response.
          content:
            application/json:
              example:
                id: dom_4K9q
                domain: go.example.com
                type: redirect
                fallbackUrl: https://example.com
                cfStatus: pending
                cfSslStatus: initializing
                ownershipName: _cf-custom-hostname.go.example.com
                ownershipValue: 8f3c2a1e-5b7d-4e9f-a1c3-2b4d6e8f0a1c
                sslTxtName: _acme-challenge.go.example.com
                sslTxtValue: Xy7Kq2LmZp9Wd4Rt
                cnameVerified: false
                isVerified: false
                teamId: team_7f3a
                createdAt: '2026-10-21T12:00:00Z'
                updatedAt: '2026-10-21T12:00:00Z'
                verification:
                  cfStatus: pending
                  cfSslStatus: initializing
                  isVerified: false
                  cname:
                    name: go.example.com
                    expected: cname.erlcrussia.com
                    current: ''
                    found: false
                  ownershipVerification:
                    type: txt
                    name: _cf-custom-hostname.go.example.com
                    value: 8f3c2a1e-5b7d-4e9f-a1c3-2b4d6e8f0a1c
                  sslValidation:
                    type: txt
                    txtName: _acme-challenge.go.example.com
                    txtValue: Xy7Kq2LmZp9Wd4Rt
              schema:
                type: object
                properties:
                  id:
                    type: string
                  domain:
                    type: string
                  type:
                    type: string
                  fallbackUrl:
                    type: string
                  cfStatus:
                    type: string
                  cfSslStatus:
                    type: string
                  ownershipName:
                    type: string
                  ownershipValue:
                    type: string
                  sslTxtName:
                    type: string
                  sslTxtValue:
                    type: string
                  cnameVerified:
                    type: boolean
                  isVerified:
                    type: boolean
                  teamId:
                    type: string
                  createdAt:
                    type: string
                    format: date-time
                  updatedAt:
                    type: string
                    format: date-time
                  verification:
                    type: object
                    properties:
                      cfStatus:
                        type: string
                      cfSslStatus:
                        type: string
                      isVerified:
                        type: boolean
                      cname:
                        type: object
                        properties:
                          name:
                            type: string
                          expected:
                            type: string
                          current:
                            type: string
                          found:
                            type: boolean
                      ownershipVerification:
                        type: object
                        properties:
                          type:
                            type: string
                          name:
                            type: string
                          value:
                            type: string
                      sslValidation:
                        type: object
                        properties:
                          type:
                            type: string
                          txtName:
                            type: string
                          txtValue:
                            type: string
        '403':
          description: No access to an organization, resource, or operation.
        '404':
          description: The resource was not found in the selected organization.
        '503':
          description: >-
            The change was written to the database, but Redis synchronization
            failed. Please update your details before resubmitting; Don't repeat
            creation blindly.
      security:
        - ApiKeyHeader: []
components:
  securitySchemes:
    ApiKeyHeader:
      type: apiKey
      in: header
      name: erlcrussia-api-key
      description: >-
        Custom API key. Store on the server; do not include client-side
        JavaScript.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.