Skip to main content
POST
/
api
/
security
/
tokens.create
Create a new user token that allow to interact with Tipee on his behalf.
curl --request POST \
  --url https://api.example.com/api/security/tokens.create \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "authorization": "<string>",
  "resource": "872815618512410358",
  "profile": "mobile-timeclock"
}
'
{
  "id": "872815618512410358",
  "token": "<string>"
}

Body

application/json
name
string
required
Maximum string length: 255
authorization
string | null
resource
string<snowflake> | null
Example:

"872815618512410358"

profile
enum<string> | null
Available options:
mobile-timeclock
Example:

"mobile-timeclock"

Response

201 - application/json

Token successfully created.

id
string<snowflake>
required
Example:

"872815618512410358"

token
string
required