Authentication¶
This endpoint requires the following data:
apiKey
Your private API key. This will allow you to generate access tokens and access the rest of the API.
Create Access Token¶
Query:
#!/bin/bash
curl --request POST 'https://api.payjoy.com/payments/v1/token' \
--header 'Content-Type: application/json' \
--data-raw '{
"apiKey": "<apiKey>"
}'
Successful Response
If your apiKey
is valid, you will receive an access token in the response with a 200
response code.
{
"data": {
"access_token": "<token_value>"
}
}
Error Response
If the API key you provide isn’t valid, or has expired, the API will return an error message with a 401
response code.
{
"error": {
"message": "Action not authorized"
}
}