Skip to main content
POST
/
users
/
{identifier}
/
access_tokens
Create a user access token
curl --request POST \
  --url https://api-joy.joyfill.io/v1/users/{identifier}/access_tokens \
  --header 'Content-Type: application/json' \
  --data '{
  "accessTokenExpiration": "2023-11-07T05:31:56Z"
}'
"{\n  \"identifier\" \"String\",\n  \"token\": \"String\"\n}"

Headers

Authorization
string

Supports both API Key and User Access Token authorization. See https://joyfill.mintlify.app/api/authentication

Path Parameters

identifier
string
required

Identifier of the user that you want to issue the access token for. User identifier can be found on the Joyfill User on the user.identifier property.

Body

application/json
accessTokenExpiration
string<date-time>

Optional. Millisecond timestamp of token expiration date. Expired tokens will not be able to make API requests. Leave blank to issue an access token that never expires.

Response

200 - application/json

200

The response is of type any.