Get one-time token by ID

GET /api/one-time-tokens/{id}

Get a one-time token by its ID.

Path parameters

  • id string Required

    The unique identifier of the one time token.

Responses

  • 200 application/json

    The one-time token found by ID.

    Hide response attributes Show response attributes object
    • tenantId string Required

      Maximum length is 21.

    • id string Required

      Minimum length is 1, maximum length is 21.

    • email string Required

      Minimum length is 1, maximum length is 128.

    • token string Required

      Minimum length is 1, maximum length is 256.

    • context object Required
      Hide context attribute Show context attribute object
    • status string Required

      Values are active, consumed, revoked, or expired.

    • createdAt number Required
    • expiresAt number Required
  • Bad Request

  • Unauthorized

  • Forbidden

  • Not Found

GET /api/one-time-tokens/{id}
curl \
 --request GET 'https://[tenant_id].logto.app/api/one-time-tokens/{id}' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "tenantId": "string",
  "id": "string",
  "email": "string",
  "token": "string",
  "context": {
    "jitOrganizationIds": [
      "string"
    ]
  },
  "status": "active",
  "createdAt": 42.0,
  "expiresAt": 42.0
}