v1

latestOpenAPI 3.0.0Apache 2.02026-07-2410185524.2 KB
Users

add access token

Generates a fresh short-lived access token for an active non-admin user. Public/API callers require authenticated ORG_ADMIN or campaign API-key access for the target user's organisation.

For custom components:

RaiselyComponents.api.one('users', '{uuid}').all('access-tokens').post(data = {}, params = {}, headers = {}) => Promise<{result}>

:fa-gears: See Restie Response Data for a more detailed overview of responses through the client wrapper

post/users/{uuid}/access-tokens

Path parameters

uuidstring required

The uuid of the record

Headers

Authorizationstring

A valid HTTP Bearer token, required to access private records.

Request body

Example request

{
  "data": {
    "redirectTo": "/account/donations"
  }
}

Response

The newly generated access token

Example response

{
  "data": {
    "accessToken": "550e8400-e29b-41d4-a716-446655440000",
    "expiresAt": "2026-02-11T12:00:00.000Z"
  }
}