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

# Issue a single-use link

> Issues a link that acts for you in your browser: github_connect lands in the GitHub App's install flow, mcp_connect in your own OAuth consent for one MCP server of a catalog you can see. It works once, for ten minutes, opened by you signed in to Aether. Links are sent only to a verified phone: refused (409 agent_link_no_verified_phone) until you verify one at Settings → Your agent.



## OpenAPI

````yaml api-reference/openapi.account.json POST /agent/links
openapi: 3.1.0
info:
  title: Aether Account & Integrations API
  version: 0.1.0
  description: >-
    Account, billing, and integration-management endpoints used by the Aether
    web app and CLI. Root-mounted; NOT part of the versioned /v1 contract.
servers:
  - url: https://api.runaether.dev
security:
  - bearerAuth: []
paths:
  /agent/links:
    post:
      tags:
        - agent
      summary: Issue a single-use link
      description: >-
        Issues a link that acts for you in your browser: github_connect lands in
        the GitHub App's install flow, mcp_connect in your own OAuth consent for
        one MCP server of a catalog you can see. It works once, for ten minutes,
        opened by you signed in to Aether. Links are sent only to a verified
        phone: refused (409 agent_link_no_verified_phone) until you verify one
        at Settings → Your agent.
      operationId: createAgentLink
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateAgentLinkRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentLink'
          description: OK
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Bad Request
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/ErrorResponse'
                  - $ref: '#/components/schemas/OrgAuthorizationErrorResponse'
          description: Forbidden
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Not Found
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Conflict
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unprocessable Entity
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Internal Server Error
components:
  schemas:
    CreateAgentLinkRequest:
      additionalProperties: false
      properties:
        mcp_server_id:
          description: >-
            The MCP server an mcp_connect link connects; required for
            mcp_connect and refused for github_connect.
          format: uuid
          type: string
        purpose:
          description: >-
            github_connect lands in the GitHub App's install flow; mcp_connect
            in your own OAuth consent for mcp_server_id.
          enum:
            - github_connect
            - mcp_connect
          type: string
      required:
        - purpose
      type: object
    AgentLink:
      additionalProperties: false
      properties:
        expires_at:
          format: date-time
          type: string
        purpose:
          enum:
            - github_connect
            - mcp_connect
          type: string
        url:
          description: >-
            The single-use link: open it once, signed in to Aether, before
            expires_at.
          format: uri
          type: string
      required:
        - url
        - purpose
        - expires_at
      type: object
    ErrorResponse:
      additionalProperties: false
      properties:
        code:
          type: string
        error:
          minLength: 1
          type: string
        errors:
          items:
            $ref: '#/components/schemas/ErrorDetail'
          type: array
      required:
        - error
      type: object
    OrgAuthorizationErrorResponse:
      additionalProperties: false
      properties:
        code:
          enum:
            - org_membership_required
            - org_role_insufficient
            - org_suspended
            - account_deleting
          type: string
        error:
          minLength: 1
          type: string
      required:
        - error
        - code
      type: object
    ErrorDetail:
      additionalProperties: false
      properties:
        location:
          description: >-
            Where the error occurred, e.g. 'body.items[3].tags' or
            'path.thing-id'
          type: string
        message:
          description: Error message text
          type: string
        value:
          description: The value at the given location
      type: object
  securitySchemes:
    bearerAuth:
      bearerFormat: JWT
      scheme: bearer
      type: http

````

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