Issue a test agent key; the secret is shown once
POST
/v1/agent-wallets/{id}/keys
const url = 'http://localhost:4000/v1/agent-wallets/example/keys';const options = { method: 'POST', headers: {'idempotency-key': 'example', 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 POST \ --url http://localhost:4000/v1/agent-wallets/example/keys \ --header 'Authorization: Bearer <token>' \ --header 'idempotency-key: example'Authorizations
Section titled “Authorizations”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”id
required
string
Header Parameters
Section titled “Header Parameters”idempotency-key
required
Required retry-safe key; reuse it only for the same operation and request body
string
Required retry-safe key; reuse it only for the same operation and request body
Responses
Section titled “ Responses ”New agent key
Media typeapplication/json
object
id
required
string
object
required
string
wallet_id
required
string
display_prefix
required
string
secret_key
required
Shown only once. Store it securely; it cannot be retrieved later.
string
created_at
required
string
Example
{ "object": "agent_wallet_key"}Validation error
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": "example" }}Authentication error
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": "example" }}Forbidden
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": "example" }}Not found
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": "example" }}Key secret unavailable or invalid state
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": "example" }}Insufficient funds
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": "example" }}Rate limited; see Retry-After response header
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": "example" }}