An agent you connected
GET
/api/v1/keys/{id}
const url = 'http://localhost:3000/api/v1/keys/example';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/example \ --header 'Authorization: Bearer <token>'Where it works, each project with its scope, and every project you could give it. Only your own agents.
Scope: read.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Key id
Responses
Section titled “Responses”The agent
Media typeapplication/json
object
data
required
object
id
required
string format: uuid
name
required
string
projects
required
Where it works, the first where a call without project goes
Array<object>
object
id
required
string format: uuid
name
required
string
organization
required
string
scope
required
string
givable
required
Every project you could give it, with the most you may give there
Array<object>
object
id
required
string format: uuid
name
required
string
organization
required
string
max
required
string
Example
{ "data": { "projects": [ { "scope": "read" } ], "givable": [ { "max": "propose" } ] }}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" }}