List API keys
GET
/v1/api-keys
const url = 'https://api.staging.heliumid.io/v1/api-keys';const options = {method: 'GET', headers: {cookie: 'hl.session_token=<hl.session_token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.staging.heliumid.io/v1/api-keys \ --cookie hl.session_token=<hl.session_token>Signed-in people only (Admins and Developers): keys can’t manage keys.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”The organisation’s API keys, newest first
Media typeapplication/json
object
data
required
Array<object>
object
id
required
string
name
required
string
prefix
required
string
role
required
string
environment
required
string
status
required
string
createdAt
required
string
lastUsedAt
required
string | null
expiresAt
required
string | null
revokedAt
required
string | null
Example
{ "data": [ { "role": "operator", "environment": "test", "status": "active" } ]}Invalid request
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
correlationId
required
string
Example generated
{ "error": { "code": "example", "message": "example", "correlationId": "example" }}Not authenticated
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
correlationId
required
string
Example generated
{ "error": { "code": "example", "message": "example", "correlationId": "example" }}Not allowed (needs a signed-in person with api_key.manage)
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
correlationId
required
string
Example generated
{ "error": { "code": "example", "message": "example", "correlationId": "example" }}