secrets
Create a new API key
Customers
Invoices
Wallets
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
Available options:
private_key
, publishable_key
, integration
Response
201
application/json
Created
Available options:
flexprice
, stripe
, razorpay
Available options:
published
, deleted
, archived
Available options:
private_key
, publishable_key
, integration
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>"
}
}