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
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?