Generating an authentication token
Let's start by generating an Authorization Bearer token to use with subsequent endpoints.
Last updated
Let's start by generating an Authorization Bearer token to use with subsequent endpoints.
Last updated
Before calling other endpoints, you need to generate an Authorization Bearer token. To retrieve your token, simply send your account credentials as body parameters.
This works just like logging into the Personr platform, but instead of being redirected to your dashboard, you will receive a token that allows you to authenticate and call other endpoints.
POST
/api-token-generate
Generate a token for use with other endpoints.
Name | Value |
---|---|
Body
Name | Type | Description |
---|---|---|
Response
In the response, you'll receive:
Your bearer token
Your unique user id
The expiration time of your token, expressed in seconds
Remember to include your token in the header of every subsequent API call, in the format Authorization: Bearer YOUR_TOKEN
Don't forget to set up a workflow to renew your token before it expires.
Content-Type
multipart/form-data
email
string
The email you use to login to your Personr account
password
string
The password you use to login to your Personr account