clerk.create_admin_portal_link_token
Create an admin portal link token in a connected Clerk instance.
Sensitive — the returned token is a single-use deep-link secret; do not log or expose it.
Call clerk.get_connected_accounts first. Pass clerk_instance_id to target a specific connection, or omit it to use the default account.
Cost = 15 tokens.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scopes | No | Optional scopes for the link (for example "admin_portal:read"). | |
| it_contact_id | No | Optional opaque IT contact reference for the link. | |
| organization_id | No | Optional organization id (org_...) to scope the admin portal link. | |
| clerk_instance_id | No | Clerk instance id (ins_...) from clerk.get_connected_accounts. Omit to use the default connected account. | |
| seconds_until_expiration | No | Link token lifetime in seconds (default 3600, max 86400). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| admin_portal_link_token | No | Created admin portal link token from the Backend API. |