POST Create group member auth token

Overview

Creates a one-time auth token that can be converted into a user session token. This allows a 3rd party application to generate a URL for non-interactive automatic login to the Pattern platform.

Base path

/api/v1/groups/GROUP_UUID/members/USER_UUID/authToken

Parameters

GROUP_UUID

(string) The unique identifier for a group.

USER_UUID

(string) The unique identifier for a user.

POST body

See the example below. The birthDate field is required and the value must be the birth date of the group member for which the auth token is being generated, in the format YYYY-MM-DD.

{
    "birthDate": "1995-12-16"
}

Curl example

curl -X POST \
'https://API_HOSTNAME/api/v1/groups/GROUP_UUID/members/USER_UUID/authToken' \
--header 'Authorization: Bearer BEARER_TOKEN' \
--data-raw '{
    "birthDate": "1995-12-16"
}'

Response

JSON object with the auth token and the token’s expiration datetime.

Response body

{
    "expirationDate": "2022-01-02T12:34:56.789789Z",
    "token": "AUTH_TOKEN"
}

Result attributes

expirationDate

(date) Datetime the token will expire

token

One-time auth token