Access Tokens

Create access token

Creates a short-lived access token for trusted client-side flows.

To use when your backend needs to hand temporary credentials to trusted client-side code.

This is currently intended for the /ai/chat endpoint used by the AI chat plugin.

post/access-tokens

Request

  • Base URL
    https://api.grapesjs.com/v1
  • Auth
    HTTP bearer

Response

Access token created

accessTokenstring required

Short-lived bearer token starting with at_, intended for trusted client-side access to allowed endpoints such as /ai/chat.

expiresAtstring date-time required

Example response

{
  "accessToken": "at_ABCdef12_34567890ABCdef12345678901234567890"
}

Changes

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