---
updatedAt: 2026-09-04T06:20:38.000Z
agentTools:
  projectIndex: https://docs.aiprise.com/llms.txt
---

# Get Onboarding SDK Token

Get an onboarding SDK token for a verification session you want to resume without OTP. (Only for KYB sessions)

**Server-side only.** Call this from your backend. The `X-API-KEY` it requires is a company-wide secret that authenticates every AiPrise API call you make, so it must never be shipped to a browser, embedded in frontend code, or passed through an end user's device - anyone who obtains it can act as your company across the entire API.

The minted token is what crosses that boundary, not the key: it is scoped to this one verification session and expires 5 minutes after it is issued, so a token that leaks exposes a single session for a few minutes rather than your whole account. Mint it on your server at the moment you are about to start the SDK, and hand the SDK only the token.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "AiPrise APIs",
    "description": "AiPrise API documentation",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api-sandbox.aiprise.com/api/v1/",
      "description": "Sandbox server"
    },
    {
      "url": "https://api.aiprise.com/api/v1/",
      "description": "Production server"
    }
  ],
  "tags": [
    {
      "name": "SDK",
      "description": "Backend endpoints supporting the onboarding SDK. Your server calls these with your API key; the SDK itself never does, and never sees the key."
    }
  ],
  "paths": {
    "/verify/get_onboarding_sdk_token/{session_id}": {
      "get": {
        "tags": [
          "SDK"
        ],
        "summary": "Get Onboarding SDK Token",
        "description": "Get an onboarding SDK token for a verification session you want to resume without OTP. (Only for KYB sessions)\n\n**Server-side only.** Call this from your backend. The `X-API-KEY` it requires is a company-wide secret that authenticates every AiPrise API call you make, so it must never be shipped to a browser, embedded in frontend code, or passed through an end user's device - anyone who obtains it can act as your company across the entire API.\n\nThe minted token is what crosses that boundary, not the key: it is scoped to this one verification session and expires 5 minutes after it is issued, so a token that leaks exposes a single session for a few minutes rather than your whole account. Mint it on your server at the moment you are about to start the SDK, and hand the SDK only the token.",
        "parameters": [
          {
            "name": "session_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Verification session ID",
            "example": "550e8400-e29b-41d4-a716-446655440000"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful operation",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "onboarding_sdk_token": {
                      "type": "string",
                      "description": "Short-lived JWT (HS256) scoped to this one verification session. Expires 5 minutes after it is issued, so mint it when you are about to hand it to the SDK. Its payload carries `company_id`, `verification_session_id`, `type` (always `onboarding_sdk`), `iat` and `exp`, but treat the token as opaque - the SDK passes it back to AiPrise as-is.",
                      "example": "<base64url-header>.<base64url-payload>.<signature>"
                    },
                    "success": {
                      "type": "boolean",
                      "description": "Whether the operation was successful"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request - the session does not exist, or it belongs to another company. Both cases return the same response so that this endpoint cannot be used to probe for valid session IDs.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Error codes or message",
                      "example": "INVALID_SESSION_ID"
                    },
                    "success": {
                      "type": "boolean",
                      "description": "Whether the operation was successful",
                      "example": false
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized - missing API key",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "The error message",
                      "example": "Missing API key"
                    },
                    "success": {
                      "type": "boolean",
                      "description": "Whether the operation was successful",
                      "example": false
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden - the company's trial period has expired, or the API key is not associated with a company.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "The error message",
                      "example": "Trial period has expired. Please contact AiPrise to extend your trial period."
                    },
                    "success": {
                      "type": "boolean",
                      "description": "Whether the operation was successful. Omitted on the trial-expiry response.",
                      "example": false
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "apiKey": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-KEY",
        "description": "All requests must include the `X-API-KEY` header containing your API Key."
      }
    }
  },
  "security": [
    {
      "apiKey": []
    }
  ]
}
```