secrets
Create a new API key
Customers
Wallets
Invoices
Entitlements
Environments
Events
Features
Payments
Integrations
Subscriptions
Tenants
Users
secrets
Create a new API key
Create a new API key with the specified type and permissions
POST
/
secrets
/
api
/
keys
curl --request POST \
--url https://api.cloud.flexprice.io/v1/secrets/api/keys \
--header 'Content-Type: application/json' \
--data '{
"expires_at": "<string>",
"name": "<string>",
"permissions": [
"<string>"
],
"type": "private_key"
}'
{
"api_key": "<string>",
"secret": {
"created_at": "<string>",
"display_id": "<string>",
"expires_at": "<string>",
"id": "<string>",
"last_used_at": "<string>",
"name": "<string>",
"permissions": [
"<string>"
],
"provider": "flexprice",
"status": "published",
"type": "private_key",
"updated_at": "<string>"
}
}
Body
application/json
API key creation request
The body is of type object
.
Response
201
application/json
Created
The response is of type object
.
curl --request POST \
--url https://api.cloud.flexprice.io/v1/secrets/api/keys \
--header 'Content-Type: application/json' \
--data '{
"expires_at": "<string>",
"name": "<string>",
"permissions": [
"<string>"
],
"type": "private_key"
}'
{
"api_key": "<string>",
"secret": {
"created_at": "<string>",
"display_id": "<string>",
"expires_at": "<string>",
"id": "<string>",
"last_used_at": "<string>",
"name": "<string>",
"permissions": [
"<string>"
],
"provider": "flexprice",
"status": "published",
"type": "private_key",
"updated_at": "<string>"
}
}