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>",
"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>"
}
}
Create a new API key with the specified type and permissions
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>",
"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>"
}
}
Enter your API key in the format x-api-key <api-key>*
API key creation request
The body is of type object
.
Created
The response is of type object
.