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
name
string
required
type
enum<string>
required
Available options:
private_key,
publishable_key,
integration
expires_at
string
permissions
string[]

Response

201
application/json
Created
api_key
string
secret
object