> ## 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.

# Get your phone link

> The phone you verified, whose texts reach your agent, and the code you asked for to link a phone, while it is live. Either is absent when there is none. Refused (503 agent_line_unavailable) while a code is live and no line is set up to text it to.



## OpenAPI

````yaml api-reference/openapi.account.json GET /agent/phone
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/phone:
    get:
      tags:
        - agent
      summary: Get your phone link
      description: >-
        The phone you verified, whose texts reach your agent, and the code you
        asked for to link a phone, while it is live. Either is absent when there
        is none. Refused (503 agent_line_unavailable) while a code is live and
        no line is set up to text it to.
      operationId: getAgentPhone
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentPhone'
          description: OK
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrgAuthorizationErrorResponse'
          description: Forbidden
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Internal Server Error
        '503':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Service Unavailable
components:
  schemas:
    AgentPhone:
      additionalProperties: false
      properties:
        verification:
          $ref: '#/components/schemas/AgentPhoneVerification'
        verified:
          $ref: '#/components/schemas/AgentVerifiedPhone'
      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
    AgentPhoneVerification:
      additionalProperties: false
      properties:
        code:
          description: Text it, alone, to line_e164 from the phone to link.
          pattern: ^[A-HJ-NP-Z2-9]{6}$
          type: string
        expires_at:
          description: When the code stops working; ask for a new one then.
          format: date-time
          type: string
        line_e164:
          description: The number to text the code to, in E.164.
          type: string
        refusal:
          description: >-
            Why the last text of the code linked nothing:
            phone_linked_to_another_account, the phone is another account's;
            not_allowlisted, your account is not on the personal agent
            allowlist.
          enum:
            - phone_linked_to_another_account
            - not_allowlisted
          type: string
      required:
        - code
        - line_e164
        - expires_at
      type: object
    AgentVerifiedPhone:
      additionalProperties: false
      properties:
        masked:
          description: The number with all but its last four digits hidden.
          type: string
        verified_at:
          format: date-time
          type: string
      required:
        - masked
        - verified_at
      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.