Generate a Key
API keys are generated by making a POST
request to the API key endpoint. Authentication via a bearer token is required to access this endpoint.
After generation a key cannot be retrieved in full, please ensure you make a copy of the key.
Create a new API Key
POST
https://api.olisystems.com/user/api-key
Headers
Name
Value
Content-Type
application/json
Authorization*
Bearer <token>
Body (Optional)
Name
Optional
Type
Description
name
string
A custom name for the API key (max 50 characters).
expiry
number
The expiration date of the API key, specified as an epoch timestamp in milliseconds.
Example Request
Example Response
Last updated