Clerk Admin Portal Link Tokens API

The Admin Portal Link Tokens API from Clerk — 2 operation(s) for admin portal link tokens.

Operations 2

POST /admin_portal_link_tokens Create an Admin Portal Link Token #
POST /admin_portal_link_tokens/{adminPortalLinkTokenID}/revoke Revoke an Admin Portal Link Token #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/clerk-com:clerk-com-admin-portal-link-tokens-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

clerk-com-admin-portal-link-tokens-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Clerk Backend Admin Portal Link Tokens API
  x-logo:
    url: https://clerk.com/_next/image?url=%2Fimages%2Fclerk-logo.svg&w=96&q=75
    altText: Clerk docs
    href: https://clerk.com/docs
  contact:
    email: support@clerk.com
    name: Clerk Platform Team
    url: https://clerk.com/support
  description: 'The Clerk REST Backend API, meant to be accessed by backend servers.


    ### Versions


    When the API changes in a way that isn''t compatible with older versions, a new version is released.

    Each version is identified by its release date, e.g. `2025-04-10`. For more information, please see Clerk API Versions.


    Please see https://clerk.com/docs for more information.'
  version: '2026-08-20'
  termsOfService: https://clerk.com/terms
  license:
    name: MIT
    url: https://github.com/clerk/openapi-specs/blob/main/LICENSE
servers:
- url: https://api.clerk.com/v1
security:
- bearerAuth: []
tags:
- name: Admin Portal Link Tokens
paths:
  /admin_portal_link_tokens:
    post:
      operationId: createAdminPortalLinkToken
      summary: Create an Admin Portal Link Token
      tags:
      - Admin Portal Link Tokens
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                organization_id:
                  type: string
                  pattern: ^org_\w{27}$
                it_contact_id:
                  type: string
                  minLength: 1
                scopes:
                  type: array
                  items:
                    type: string
                    minLength: 1
                seconds_until_expiration:
                  type: integer
                  maximum: 86400
                  default: 3600
                  exclusiveMinimum: 0
              additionalProperties: false
      responses:
        '201':
          description: 201 Created
          content:
            application/json:
              schema:
                type: object
                properties:
                  object:
                    type: string
                    enum:
                    - admin_portal_link_token
                  id:
                    type: string
                    pattern: ^aplt_[0-9A-Fa-f]{32}$
                    example: aplt_3beecc9c60adb5f9b850e91a83beecc9
                  admin_portal_link_id:
                    type: string
                    pattern: ^apl_\w{27}$
                    description: The origin-level admin_portal_link this token was issued for.
                    example: apl_3beecc9c60adb5f9b850e91a8d2
                  instance_id:
                    type: string
                    pattern: ^ins_\w{27}$
                    example: ins_2xhFjEI5X2qWRvtV13BzSj8H6Dk
                  organization_id:
                    type:
                    - string
                    - 'null'
                    pattern: ^org_\w{27}$
                    description: Optional. Present only when the link is scoped to an existing org.
                    example: org_2xhFjEI5X2qWRvtV13BzSj8H6Dk
                  it_contact_id:
                    type:
                    - string
                    - 'null'
                    description: Optional opaque reference to the IT contact associated with this link.
                    example: usr_abc123
                  scopes:
                    type:
                    - array
                    - 'null'
                    items:
                      type: string
                    description: Caller-provided scopes for this token.
                    example:
                    - admin_portal:read
                  token:
                    type: string
                    description: The single-use admin portal link token. Returned only on creation. URL-borne; treat as a secret.
                    example: aplt_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
                  revoked:
                    type: boolean
                    example: false
                  revocation_reason:
                    type:
                    - string
                    - 'null'
                    example: Revoked by user
                  expired:
                    type: boolean
                    example: false
                  expiration:
                    type:
                    - number
                    - 'null'
                    description: The timestamp for when the token will expire, in milliseconds.
                    example: 1716883200000
                  created_at:
                    type: number
                    description: The timestamp for when the token was created, in milliseconds.
                    example: 1716883200000
                  updated_at:
                    type: number
                    description: The timestamp for when the token was last updated, in milliseconds.
                    example: 1716883200000
                required:
                - object
                - id
                - admin_portal_link_id
                - instance_id
                - organization_id
                - it_contact_id
                - scopes
                - token
                - revoked
                - revocation_reason
                - expired
                - expiration
                - created_at
                - updated_at
                additionalProperties: false
        '400':
          description: 400 Bad Request
          content:
            application/json:
              schema:
                type: object
                properties:
                  errors:
                    type: array
                    items:
                      type: object
                      properties:
                        message:
                          type: string
                          example: Bad Request
                        long_message:
                          type: string
                          example: 'Invalid ''url_parameter.example'': Failed regex check'
                        code:
                          type: string
                          example: bad_request
                      required:
                      - message
                      - long_message
                      - code
                required:
                - errors
        '401':
          description: 401 Unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  errors:
                    type: array
                    items:
                      type: object
                      properties:
                        message:
                          type: string
                          example: some details about the error
                        long_message:
                          type: string
                          example: some details about the error
                        code:
                          type: string
                          example: some_error_code
                      required:
                      - message
                      - long_message
                      - code
                required:
                - errors
        '403':
          description: 403 Forbidden
          content:
            application/json:
              schema:
                type: object
                properties:
                  errors:
                    type: array
                    items:
                      type: object
                      properties:
                        message:
                          type: string
                          example: some details about the error
                        long_message:
                          type: string
                          example: some details about the error
                        code:
                          type: string
                          example: some_error_code
                      required:
                      - message
                      - long_message
                      - code
                required:
                - errors
        '409':
          description: 409 Conflict
          content:
            application/json:
              schema:
                type: object
                properties:
                  errors:
                    type: array
                    items:
                      type: object
                      properties:
                        message:
                          type: string
                          example: some details about the error
                        long_message:
                          type: string
                          example: some details about the error
                        code:
                          type: string
                          example: some_error_code
                      required:
                      - message
                      - long_message
                      - code
                required:
                - errors
  /admin_portal_link_tokens/{adminPortalLinkTokenID}/revoke:
    post:
      operationId: revokeAdminPortalLinkToken
      summary: Revoke an Admin Portal Link Token
      tags:
      - Admin Portal Link Tokens
      parameters:
      - schema:
          type: string
          pattern: ^aplt_[0-9A-Fa-f]{32}$
        required: true
        name: adminPortalLinkTokenID
        in: path
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                revocation_reason:
                  type:
                  - string
                  - 'null'
              additionalProperties: false
      responses:
        '200':
          description: 200 OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  object:
                    type: string
                    enum:
                    - admin_portal_link_token
                  id:
                    type: string
                    pattern: ^aplt_[0-9A-Fa-f]{32}$
                    example: aplt_3beecc9c60adb5f9b850e91a83beecc9
                  admin_portal_link_id:
                    type: string
                    pattern: ^apl_\w{27}$
                    description: The origin-level admin_portal_link this token was issued for.
                    example: apl_3beecc9c60adb5f9b850e91a8d2
                  instance_id:
                    type: string
                    pattern: ^ins_\w{27}$
                    example: ins_2xhFjEI5X2qWRvtV13BzSj8H6Dk
                  organization_id:
                    type:
                    - string
                    - 'null'
                    pattern: ^org_\w{27}$
                    description: Optional. Present only when the link is scoped to an existing org.
                    example: org_2xhFjEI5X2qWRvtV13BzSj8H6Dk
                  it_contact_id:
                    type:
                    - string
                    - 'null'
                    description: Optional opaque reference to the IT contact associated with this link.
                    example: usr_abc123
                  scopes:
                    type:
                    - array
                    - 'null'
                    items:
                      type: string
                    description: Caller-provided scopes for this token.
                    example:
                    - admin_portal:read
                  revoked:
                    type: boolean
                    example: false
                  revocation_reason:
                    type:
                    - string
                    - 'null'
                    example: Revoked by user
                  expired:
                    type: boolean
                    example: false
                  expiration:
                    type:
                    - number
                    - 'null'
                    description: The timestamp for when the token will expire, in milliseconds.
                    example: 1716883200000
                  created_at:
                    type: number
                    description: The timestamp for when the token was created, in milliseconds.
                    example: 1716883200000
                  updated_at:
                    type: number
                    description: The timestamp for when the token was last updated, in milliseconds.
                    example: 1716883200000
                required:
                - object
                - id
                - admin_portal_link_id
                - instance_id
                - organization_id
                - it_contact_id
                - scopes
                - revoked
                - revocation_reason
                - expired
                - expiration
                - created_at
                - updated_at
                additionalProperties: false
        '400':
          description: 400 Bad Request
          content:
            application/json:
              schema:
                type: object
                properties:
                  errors:
                    type: array
                    items:
                      type: object
                      properties:
                        message:
                          type: string
                          example: Bad Request
                        long_message:
                          type: string
                          example: 'Invalid ''url_parameter.example'': Failed regex check'
                        code:
                          type: string
                          example: bad_request
                      required:
                      - message
                      - long_message
                      - code
                required:
                - errors
        '401':
          description: 401 Unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  errors:
                    type: array
                    items:
                      type: object
                      properties:
                        message:
                          type: string
                          example: some details about the error
                        long_message:
                          type: string
                          example: some details about the error
                        code:
                          type: string
                          example: some_error_code
                      required:
                      - message
                      - long_message
                      - code
                required:
                - errors
        '403':
          description: 403 Forbidden
          content:
            application/json:
              schema:
                type: object
                properties:
                  errors:
                    type: array
                    items:
                      type: object
                      properties:
                        message:
                          type: string
                          example: some details about the error
                        long_message:
                          type: string
                          example: some details about the error
                        code:
                          type: string
                          example: some_error_code
                      required:
                      - message
                      - long_message
                      - code
                required:
                - errors
        '404':
          description: 404 Not Found
          content:
            application/json:
              schema:
                type: object
                properties:
                  errors:
                    type: array
                    items:
                      type: object
                      properties:
                        message:
                          type: string
                          example: some details about the error
                        long_message:
                          type: string
                          example: some details about the error
                        code:
                          type: string
                          example: some_error_code
                      required:
                      - message
                      - long_message
                      - code
                required:
                - errors
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Secret key, obtained under "API Keys" in the Clerk Dashboard.
      bearerFormat: sk_<environment>_<secret value>
externalDocs:
  url: https://clerk.com/docs
x-speakeasy-retries:
  strategy: backoff
  backoff:
    initialInterval: 500
    maxInterval: 60000
    maxElapsedTime: 3600000
    exponent: 1.5
  statusCodes:
  - 5XX
  retryConnectionErrors: true