Connected agents
GET
/api/v1/keys
const url = 'http://localhost:3000/api/v1/keys';const options = {method: 'GET', headers: {Authorization: 'Bearer <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 http://localhost:3000/api/v1/keys \ --header 'Authorization: Bearer <token>'API keys, without secrets, with when each last called and what it left in Review: every key in the project for an admin, the agents you connected for anyone else.
Scope: read.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Keys, without secrets
Media typeapplication/json
object
data
required
Array<object>
object
id
required
string format: uuid
name
required
string
prefix
required
string
scope
required
string
createdAt
required
string format: date-time
calls
required
Requests that presented it
integer
owner
required
Whose agent it is, for one a person connected; null for a key an admin made
string | null
waiting
required
Assets it proposed that wait in Review
integer
projects
Any of:
Array<string>
null
Example
{ "data": [ { "scope": "read" } ]}default
Section titled “default”An error
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
detail
Examplegenerated
{ "error": { "code": "example", "message": "example", "detail": "example" }}