Authorizations
Enter your API key in the format x-api-key <api-key>*
Body
application/json
API key creation request\
Create a new API key. Provide ‘service_account_id’ in body to create API key for a service account, otherwise creates for authenticated user.
curl --request POST \
--url https://api.cloud.flexprice.io/v1/secrets/api/keys \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"expires_at": "<string>",
"name": "<string>",
"service_account_id": "<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>",
"provider": "flexprice",
"roles": [
"<string>"
],
"status": "published",
"type": "private_key",
"updated_at": "<string>",
"user_type": "user"
}
}Enter your API key in the format x-api-key <api-key>*
API key creation request\
curl --request POST \
--url https://api.cloud.flexprice.io/v1/secrets/api/keys \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"expires_at": "<string>",
"name": "<string>",
"service_account_id": "<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>",
"provider": "flexprice",
"roles": [
"<string>"
],
"status": "published",
"type": "private_key",
"updated_at": "<string>",
"user_type": "user"
}
}