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

# Retrieve your agent handle prefix

> Returns your Account's claimed handle prefix. Before a prefix is
claimed, `prefix` is `null` and `suggested` proposes one. Send
`candidate` to check whether a prefix is available. Claiming a prefix
is permanent and happens under **Agents** in the dashboard.




## OpenAPI

````yaml /openapi/agents.yaml get /agents/handle_prefix
openapi: 3.0.3
info:
  title: Ionic Agents API
  version: '2026-11-05'
  description: |
    Create and manage your platform's agent identities from your server.

    These endpoints use a platform secret key with `agents:read` or
    `agents:write`, sent without `Ionic-Account`. The Account that owns the key
    owns each agent it creates. An agent identity carries no access to any
    business: a business allows an agent through an
    agent grant request, and agent keys
    are issued in the Ionic dashboard.
servers:
  - url: '{baseUrl}/v1'
    variables:
      baseUrl:
        default: https://api.ionicfi.com
        description: API base URL for your environment.
security:
  - secretKey: []
tags:
  - name: Agents
    description: Create and manage your platform's agent identities.
paths:
  /agents/handle_prefix:
    get:
      tags:
        - Agents
      summary: Retrieve your agent handle prefix
      description: |
        Returns your Account's claimed handle prefix. Before a prefix is
        claimed, `prefix` is `null` and `suggested` proposes one. Send
        `candidate` to check whether a prefix is available. Claiming a prefix
        is permanent and happens under **Agents** in the dashboard.
      operationId: retrieveAgentHandlePrefix
      parameters:
        - name: candidate
          in: query
          description: A prefix to check for availability. Checking does not claim it.
          schema:
            type: string
      responses:
        '200':
          description: Your Account's prefix.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentHandlePrefix'
        '400':
          description: >-
            `INVALID_REQUEST` for an invalid `candidate`.
            `ACCOUNT_CONTEXT_NOT_SUPPORTED` when the request sends
            `Ionic-Account`. `MIXED_AUTHENTICATION` when a dashboard session
            cookie accompanies the key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalError'
        '503':
          $ref: '#/components/responses/Unavailable'
      security:
        - secretKey:
            - agents:read
components:
  schemas:
    AgentHandlePrefix:
      type: object
      example:
        object: agent_handle_prefix
        prefix: acme
        suggested: null
      required:
        - object
        - prefix
        - suggested
      properties:
        object:
          type: string
          description: Always `agent_handle_prefix`.
        prefix:
          type: string
          nullable: true
          description: Your Account's claimed prefix, or `null` before one is claimed.
        suggested:
          type: string
          nullable: true
          description: A suggested prefix while none is claimed, otherwise `null`.
        candidate:
          $ref: '#/components/schemas/AgentHandlePrefixCandidate'
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          description: Details about the error.
          required:
            - code
            - message
          properties:
            code:
              type: string
            message:
              type: string
    AgentHandlePrefixCandidate:
      type: object
      description: Present when the request sends `candidate`.
      required:
        - value
        - available
      properties:
        value:
          type: string
          description: The candidate prefix, normalized.
        available:
          type: boolean
          description: Whether the prefix can be claimed.
  responses:
    Unauthorized:
      description: Missing or invalid API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Forbidden:
      description: >-
        `PLATFORM_CREDENTIAL_REQUIRED` for a key that is not a platform secret
        key. `AGENT_MANAGEMENT_FORBIDDEN` when the key lacks this operation's
        permission, your Account is not active, or your Platform Program does
        not allow delegated API access with this permission in the key's mode.
        `AGENT_OPERATION_UNAVAILABLE` for an agent's own key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    RateLimited:
      description: Too many requests.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    InternalError:
      description: Unexpected server error.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unavailable:
      description: >-
        `AGENT_MANAGEMENT_UNAVAILABLE` when Ionic cannot check your key's
        current access. Retry later. For a change, retry with the same
        `Idempotency-Key` and body.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    secretKey:
      type: http
      scheme: bearer
      description: 'A platform secret key (`sk_…`) sent as `Authorization: Bearer <key>`.'

````

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