Get API key
get
/v1/projects/{ref}/api-keys/{id}OAuth scopes
- secrets:read
The fine-grained token must include the following permissions to access this endpoint:
- api_gateway_keys_read
- or
- api_gateway_keys_read
- api_gateway_keys_secret_read
Path parameters
- refRequiredstring
Project ref
- idRequiredstring
Query parameters
- revealOptionalstring
Boolean string.
Truthy values:
true,1,yes,on,y,enabledFalsy values:
false,0,no,off,n,disabled
Response codes
- 200
- 401
- 403
- 404
- 429
Response (200)
{ "api_key": "lorem", "id": "lorem", "type": "legacy", "prefix": "lorem", "name": "lorem", "description": "lorem", "hash": "lorem", "secret_jwt_template": { "property1": null, "property2": null }, "inserted_at": "4404-02-29T04:24Z", "updated_at": "4404-02-29T04:24Z"}{ "type": "object", "properties": { "api_key": { "type": "string", "nullable": true }, "id": { "type": "string", "nullable": true }, "type": { "type": "string", "enum": [ "legacy", "publishable", "secret", null ], "nullable": true }, "prefix": { "type": "string", "nullable": true }, "name": { "type": "string" }, "description": { "type": "string", "nullable": true }, "hash": { "type": "string", "nullable": true }, "secret_jwt_template": { "type": "object", "propertyNames": { "type": "string" }, "additionalProperties": {}, "nullable": true }, "inserted_at": { "type": "string", "format": "date-time", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$", "nullable": true }, "updated_at": { "type": "string", "format": "date-time", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$", "nullable": true } }, "required": [ "name" ]}