Skip to main content

User-related API environment

Pre-live user-related API docs

These pages describe the Pre-live user-related API stack.

Use pre-live OAuth credentials, pre-live API base URLs, and pre-live app URLs when following this documentation. Keep your OAuth flow, API requests, callback URLs, and manual testing within the pre-live environment.

Get a CSRF token for authenticated user actions​

Issues a request token bound to the authenticated browser session. Fetch it with credentials enabled immediately before a Connected Apps lifecycle action, retain the _csrf cookie from this response, and send the JSON token in the X-CSRF-Token header with the retained cookies.

Responses

A non-cacheable CSRF token for the current authenticated browser session.

Response Headers
  • Cache-Control string
    Example: private, no-store

    Prevents browsers and intermediaries from caching the token response.

  • Set-Cookie string
    Example: _csrf=OPAQUE_SECRET; Path=/; SameSite=Lax

    Sets the opaque _csrf secret cookie required with the X-CSRF-Token header. Retain it for the lifecycle request.


Schema
    success boolean required

    Possible values: [true]

    data object required
    csrfToken string required
Loading...