๐API keys
Keys are used to interact with TurinPay. Keys are used for autnetication purposes to identify the request source of the call.
Issue an API key
POST https://api.turinpay.com/users/keys
Headers
Name
Type
Description
X-API-Key
string
Authentication token from the API key belonging to the user
Request Body
Name
Type
Description
role
string
Token role with permissions. Invoices role by default
{
"key": "9759dd17-357a-4a81-a25a-0ced7fa6e61e",
"userId": "f357abeb-b4c7-43ac-afd8-f76067c829ab",
"role": "invoices"
}Retrieve an API key
GET https://api.turinpay.com/users/:key
Path Parameters
Name
Type
Description
key
string
API key
Headers
Name
Type
Description
X-API-Key
string
Authentication token from the API key belonging to the user
List API keys
GET https://api.turinpay.com/users/keys
Headers
Name
Type
Description
X-API-Key
string
Authentication token from the API key belonging to the user
Remove API key
DELETE https://api.turinpay.com/keys/:key
Path Parameters
Name
Type
Description
key
string
API key
Headers
Name
Type
Description
X-API-Key
string
Authentication token from the API belonging to the user
Last updated
Was this helpful?