Users

Create an integration token

Creates a short-lived, single-use token (pit_) for initiating OAuth flows. This token expires in ~10 minutes.

Authentication:

  • Authorization: Bearer <client_secret> header
  • X-Auth-Type: partner header (recommended)
  • client_id in request body

Usage: Use the returned token to redirect end-users to connect their Gmail, Slack, or other integrations via the OAuth flow.

Response:

  • token: A pit_ prefixed integration token
  • expires_at: ISO 8601 timestamp when the token expires
post/v1/users/{user_id}/tokens

Request

  • Base URL: http://0.0.0.0:3000
  • URL: http://0.0.0.0:3000/v1/users/{user_id}/tokens
  • Auth: none declared

Path parameters

user_idstring uuid required

Request body

client_idstring required

Response

Default Response

successtrue required

Changes

No recorded changes to this operation across all 1 revision of this API.