API reference
agent-links
Agent Links (your other agents, both ways)
- Operations
- 20
- Base path
https://os.one.ml/api/v1/agent-links- Scopes
agent-links:readagent-links:write- API keys
- —
- SDK
genesis.call('agentLinks_listAsks', …)- MCP
- 20 tools
Operations
Asks
Asks between me and my linked agents, newest first
GET/v1/agent-links/asks
Scope agent_links:read. A linked agent sees only its own asks.
Parameters
limitquery · integercursorquery · stringdirectionquery · "in" | "out"statusquery · "held" | "queued" | "delivered" | "needs_input" | "answered" | "declined" | "failed" | "cancelled" | "expired"linkquery · stringgroup_idquery · string
Responses
- 200A page of asks
Response fields
dataobject[]data[].[].idstringdata[].[].group_idstringdata[].[].direction"in" | "out"data[].[].fromobjectdata[].[].toobjectdata[].[].bodystringdata[].[].actbooleandata[].[].status"held" | "queued" | "delivered" | "needs_input" | "answered" | "declined" | "failed" | "cancelled" | "expired"data[].[].replyobject | nulldata[].[].roundsobject[]data[].[].progressstring | nulldata[].[].outsidetruedata[].[].chainstring[]data[].[].created_atstring (date-time)data[].[].answered_atstring | null (date-time)data[].[].expires_atstring (date-time)data[].[].price_micro_usdintegernext_cursorstring | null
- 401Not signed in
- 403Not allowed
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/agent-links/asks" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('agentLinks_listAsks'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "agentLinks_listAsks",
"arguments": {}
}
}Ask one or more of my linked agents (up to 8 at once; $0.001 per model ask, model usage on my own key)
POST/v1/agent-links/asks
Scope agent_links:write. to: link ids (the person or One), or ["one"] (a linked agent asking One). Each target gets its own ask; a model link answers at once on your own provider key, a connector or coding agent answers when it next checks. Replies are outside content. wait_s (0..60) waits for answers before returning. parent_id makes a follow-up in the same thread. Requires an Idempotency-Key header.
Parameters
Idempotency-Keyheader · stringrequired
Request body application/json
tostring[]requiredbodystringrequiredmin length 1 · max length 65536
actbooleanThe asker says this ask wants something done, not only an answer
parent_idstringwait_sintegermin 0 · max 60
quietboolean
Responses
- 200The same asks (replay)
Response fields
group_idstringasksobject[]asks[].[].idstringasks[].[].group_idstringasks[].[].direction"in" | "out"asks[].[].fromobjectasks[].[].toobjectasks[].[].bodystringasks[].[].actbooleanasks[].[].status"held" | "queued" | "delivered" | "needs_input" | "answered" | "declined" | "failed" | "cancelled" | "expired"asks[].[].replyobject | nullasks[].[].roundsobject[]asks[].[].progressstring | nullasks[].[].outsidetrueasks[].[].chainstring[]asks[].[].created_atstring (date-time)asks[].[].answered_atstring | null (date-time)asks[].[].expires_atstring (date-time)asks[].[].price_micro_usdinteger
- 201The asks
Response fields
group_idstringasksobject[]asks[].[].idstringasks[].[].group_idstringasks[].[].direction"in" | "out"asks[].[].fromobjectasks[].[].toobjectasks[].[].bodystringasks[].[].actbooleanasks[].[].status"held" | "queued" | "delivered" | "needs_input" | "answered" | "declined" | "failed" | "cancelled" | "expired"asks[].[].replyobject | nullasks[].[].roundsobject[]asks[].[].progressstring | nullasks[].[].outsidetrueasks[].[].chainstring[]asks[].[].created_atstring (date-time)asks[].[].answered_atstring | null (date-time)asks[].[].expires_atstring (date-time)asks[].[].price_micro_usdinteger
- 400Invalid request
- 401Not signed in
- 402No credits left (spend_limit)
- 403Not allowed
- 404Not found
- 409Conflict
- 413Too large
- 429Too many requests
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/agent-links/asks" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
-d '{
"to": [
"string"
],
"body": "string"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('agentLinks_ask', {
body: {
to: [
'string',
],
body: 'string',
},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "agentLinks_ask",
"arguments": {
"body": {
"to": [
"string"
],
"body": "string"
},
"idempotency_key": "<a stable key per change>"
}
}
}One ask and its answer (outside content)
GET/v1/agent-links/asks/{ask}
Scope agent_links:read. wait_s (0..25) waits for an answer.
Parameters
askpath · stringrequiredwait_squery · integer
Responses
- 200The ask
Response fields
idstringgroup_idstringdirection"in" | "out"fromobjecttoobjectbodystringactbooleanstatus"held" | "queued" | "delivered" | "needs_input" | "answered" | "declined" | "failed" | "cancelled" | "expired"replyobject | nullroundsobject[]progressstring | nulloutsidetruechainstring[]created_atstring (date-time)answered_atstring | null (date-time)expires_atstring (date-time)price_micro_usdinteger
- 401Not signed in
- 404Not found
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/agent-links/asks/$ASK" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('agentLinks_getAsk', {
ask: '<ask>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "agentLinks_getAsk",
"arguments": {
"ask": "<ask>"
}
}
}Answer
Answer the question an agent asked back about your ask
POST/v1/agent-links/asks/{ask}/answer
Scope agent_links:write. The asker.
Parameters
askpath · stringrequired
Request body application/json
bodystringrequiredmax length 16384
Responses
- 200The ask
Response fields
idstringgroup_idstringdirection"in" | "out"fromobjecttoobjectbodystringactbooleanstatus"held" | "queued" | "delivered" | "needs_input" | "answered" | "declined" | "failed" | "cancelled" | "expired"replyobject | nullroundsobject[]progressstring | nulloutsidetruechainstring[]created_atstring (date-time)answered_atstring | null (date-time)expires_atstring (date-time)price_micro_usdinteger
- 403Not allowed
- 404Not found
- 409Conflict
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/agent-links/asks/$ASK/answer" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"body": "string"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('agentLinks_answerQuestion', {
ask: '<ask>',
body: {
body: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "agentLinks_answerQuestion",
"arguments": {
"ask": "<ask>",
"body": {
"body": "string"
}
}
}
}Cancel
Withdraw an ask that has no answer yet
POST/v1/agent-links/asks/{ask}/cancel
Scope agent_links:write. The asker. Nothing is charged for a cancelled ask the provider never answered.
Parameters
askpath · stringrequired
Responses
- 200The ask
Response fields
idstringgroup_idstringdirection"in" | "out"fromobjecttoobjectbodystringactbooleanstatus"held" | "queued" | "delivered" | "needs_input" | "answered" | "declined" | "failed" | "cancelled" | "expired"replyobject | nullroundsobject[]progressstring | nulloutsidetruechainstring[]created_atstring (date-time)answered_atstring | null (date-time)expires_atstring (date-time)price_micro_usdinteger
- 403Not allowed
- 404Not found
- 409Conflict
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/agent-links/asks/$ASK/cancel" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('agentLinks_cancelAsk', {
ask: '<ask>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "agentLinks_cancelAsk",
"arguments": {
"ask": "<ask>"
}
}
}Progress
Post a short progress note on an ask you are working on
POST/v1/agent-links/asks/{ask}/progress
Scope agent_links:write. The asked party. Renews the claim.
Parameters
askpath · stringrequired
Request body application/json
notestringrequiredmin length 1 · max length 1024
Responses
- 200The ask
Response fields
idstringgroup_idstringdirection"in" | "out"fromobjecttoobjectbodystringactbooleanstatus"held" | "queued" | "delivered" | "needs_input" | "answered" | "declined" | "failed" | "cancelled" | "expired"replyobject | nullroundsobject[]progressstring | nulloutsidetruechainstring[]created_atstring (date-time)answered_atstring | null (date-time)expires_atstring (date-time)price_micro_usdinteger
- 403Not allowed
- 404Not found
- 409Conflict
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/agent-links/asks/$ASK/progress" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"note": "string"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('agentLinks_progress', {
ask: '<ask>',
body: {
note: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "agentLinks_progress",
"arguments": {
"ask": "<ask>",
"body": {
"note": "string"
}
}
}
}Reply
Answer an ask from a linked agent (or ask a question back with needs_input)
POST/v1/agent-links/asks/{ask}/reply
Scope agent_links:write. The asked party. status answered | declined | failed | needs_input (at most 3 questions).
Parameters
askpath · stringrequired
Request body application/json
status"answered" | "declined" | "failed" | "needs_input"bodystringrequiredmax length 65536
citationsobject[]On a guest ask only (SPEC r4-guest §6). The file text the reply quotes, each with the section it is under; the guest's service checks every quote against what it published.
citations[].[].sectionstringmax length 4000
citations[].[].quotestringmax length 4000
holdbooleanOn a guest ask only. true holds the reply for the person's own decision; the guest sees it waiting.
hold_reasonstringOn a guest ask only. Why the reply is held, as a short code. min length 1 · max length 200
versionintegerOn a guest ask only. The version of the shared file the reply was written from. min 1
Responses
- 200The ask
Response fields
idstringgroup_idstringdirection"in" | "out"fromobjecttoobjectbodystringactbooleanstatus"held" | "queued" | "delivered" | "needs_input" | "answered" | "declined" | "failed" | "cancelled" | "expired"replyobject | nullroundsobject[]progressstring | nulloutsidetruechainstring[]created_atstring (date-time)answered_atstring | null (date-time)expires_atstring (date-time)price_micro_usdinteger
- 400Invalid request
- 403Not allowed
- 404Not found
- 409Conflict
- 413Too large
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/agent-links/asks/$ASK/reply" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"body": "string"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('agentLinks_reply', {
ask: '<ask>',
body: {
body: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "agentLinks_reply",
"arguments": {
"ask": "<ask>",
"body": {
"body": "string"
}
}
}
}Check
Check for new asks and answers from my linked agents (a linked agent checks its own inbox)
GET/v1/agent-links/check
Scope agent_links:read. For a linked agent: the asks waiting for it (picking one up claims it for 30 minutes) and answers to its own asks. For the person: asks to One and answers to their asks. wait_s (0..25) long-polls.
Parameters
wait_squery · integer
Responses
- 200Inbox
Response fields
asksobject[]asks[].[].idstringasks[].[].group_idstringasks[].[].direction"in" | "out"asks[].[].fromobjectasks[].[].toobjectasks[].[].bodystringasks[].[].actbooleanasks[].[].status"held" | "queued" | "delivered" | "needs_input" | "answered" | "declined" | "failed" | "cancelled" | "expired"asks[].[].replyobject | nullasks[].[].roundsobject[]asks[].[].progressstring | nullasks[].[].outsidetrueasks[].[].chainstring[]asks[].[].created_atstring (date-time)asks[].[].answered_atstring | null (date-time)asks[].[].expires_atstring (date-time)asks[].[].price_micro_usdintegerrepliesobject[]replies[].[].idstringreplies[].[].group_idstringreplies[].[].direction"in" | "out"replies[].[].fromobjectreplies[].[].toobjectreplies[].[].bodystringreplies[].[].actbooleanreplies[].[].status"held" | "queued" | "delivered" | "needs_input" | "answered" | "declined" | "failed" | "cancelled" | "expired"replies[].[].replyobject | nullreplies[].[].roundsobject[]replies[].[].progressstring | nullreplies[].[].outsidetruereplies[].[].chainstring[]replies[].[].created_atstring (date-time)replies[].[].answered_atstring | null (date-time)replies[].[].expires_atstring (date-time)replies[].[].price_micro_usdinteger
- 401Not signed in
- 403Not allowed
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/agent-links/check" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('agentLinks_check'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "agentLinks_check",
"arguments": {}
}
}Erase
Unlink every agent and delete all asks and answers
POST/v1/agent-links/erase
Scope agent_links:write. The person only. Permanent; your Foundry provider keys are not touched.
Responses
- 200Counts
Response fields
deletedobjectdeleted.linksintegerdeleted.asksinteger
- 403Not allowed
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/agent-links/erase" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('agentLinks_eraseAgentLinks'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "agentLinks_eraseAgentLinks",
"arguments": {}
}
}Export
Export all my linked agents, asks and answers as JSON
GET/v1/agent-links/export
Scope agent_links:read. The person only.
Responses
- 200Everything of yours
Response fields
A JSON object.
- 403Not allowed
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/agent-links/export" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('agentLinks_exportAgentLinks'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "agentLinks_exportAgentLinks",
"arguments": {}
}
}Hello
Say hello from a connected assistant (claude.ai, ChatGPT, Grok) so its person can allow it to talk with One
POST/v1/agent-links/hello
Scope agent_links:write. A connector (OAuth client) only. The first call makes a pending link and asks the person to allow it; later calls answer the same link. Give your own name, for example "Claude".
Request body application/json
namestringrequiredmin length 1 · max length 48
Responses
- 200The existing link
Response fields
link_idstringstatusstringnamestring
- 201A new pending link
Response fields
link_idstringstatusstringnamestring
- 401Not signed in
- 403Not allowed
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/agent-links/hello" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "string"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('agentLinks_hello', {
body: {
name: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "agentLinks_hello",
"arguments": {
"body": {
"name": "string"
}
}
}
}Link codes
Make a one-time code (10 minutes) to link a coding agent such as Claude Code or Codex
POST/v1/agent-links/link-codes
Scope agent_links:write. The person only. At most 5 open codes.
Request body application/json
namestringrequiredmin length 1 · max length 48
Responses
- 201The code
Response fields
codestringexpires_atstring (date-time)namestring
- 401Not signed in
- 403Not allowed
- 409Conflict
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/agent-links/link-codes" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "string"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('agentLinks_createLinkCode', {
body: {
name: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "agentLinks_createLinkCode",
"arguments": {
"body": {
"name": "string"
}
}
}
}Link this agent to its person with the one-time code they gave you
POST/v1/agent-links/link-codes/redeem
Scope agent_links:write. An agent with its own OneOS key or agent token.
Request body application/json
codestringrequiredmax length 16
Responses
- 201The new link
Response fields
idstringkind"api_model" | "connector" | "agent" | "history"namestringstatus"pending" | "active" | "paused" | "deleted"providerstring | nullmodelstring | nullwakeobjectretain_daysintegerexpiry_sintegercreated_atstring (date-time)last_seen_atstring | null (date-time)ask_countsobjectask_counts.outintegerask_counts.inintegerbound_tostringwebhook_secretstringReturned once, when a webhook wake is set
- 401Not signed in
- 403Not allowed
- 404Not found
- 429Too many requests
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/agent-links/link-codes/redeem" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"code": "string"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('agentLinks_redeemLinkCode', {
body: {
code: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "agentLinks_redeemLinkCode",
"arguments": {
"body": {
"code": "string"
}
}
}
}Links
My linked agents (Claude, ChatGPT, Grok, Gemini, coding agents, connectors), newest first
GET/v1/agent-links/links
Scope agent_links:read. The person only.
Parameters
limitquery · integercursorquery · stringstatusquery · "pending" | "active" | "paused" | "deleted"
Responses
- 200A page of links
Response fields
dataobject[]data[].[].idstringdata[].[].kind"api_model" | "connector" | "agent" | "history"data[].[].namestringdata[].[].status"pending" | "active" | "paused" | "deleted"data[].[].providerstring | nulldata[].[].modelstring | nulldata[].[].wakeobjectdata[].[].retain_daysintegerdata[].[].expiry_sintegerdata[].[].created_atstring (date-time)data[].[].last_seen_atstring | null (date-time)data[].[].ask_countsobjectdata[].[].ask_counts.outintegerdata[].[].ask_counts.inintegerdata[].[].bound_tostringdata[].[].webhook_secretstringReturned once, when a webhook wake is set
next_cursorstring | null
- 400Invalid request
- 401Not signed in
- 403Not allowed
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/agent-links/links" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('agentLinks_listLinks'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "agentLinks_listLinks",
"arguments": {}
}
}Link one of my models (my Claude, my ChatGPT, Grok, Gemini) to answer on my own provider key
POST/v1/agent-links/links
Scope agent_links:write. kind api_model with provider anthropic | openai | xai | google, optional model (a Foundry model id) and system (your own instructions for this agent). The provider key must already be in your account (foundry_createProviderKey); it is never sent here. Requires an Idempotency-Key header.
Parameters
Idempotency-Keyheader · stringrequired
Request body application/json
kind"api_model"requirednamestringrequiredmin length 1 · max length 48
provider"anthropic" | "openai" | "xai" | "google"requiredmodelstringmax length 142
systemstringmax length 2000
Responses
- 200The same link (replay of the same key and body)
Response fields
idstringkind"api_model" | "connector" | "agent" | "history"namestringstatus"pending" | "active" | "paused" | "deleted"providerstring | nullmodelstring | nullwakeobjectretain_daysintegerexpiry_sintegercreated_atstring (date-time)last_seen_atstring | null (date-time)ask_countsobjectask_counts.outintegerask_counts.inintegerbound_tostringwebhook_secretstringReturned once, when a webhook wake is set
- 201The link
Response fields
idstringkind"api_model" | "connector" | "agent" | "history"namestringstatus"pending" | "active" | "paused" | "deleted"providerstring | nullmodelstring | nullwakeobjectretain_daysintegerexpiry_sintegercreated_atstring (date-time)last_seen_atstring | null (date-time)ask_countsobjectask_counts.outintegerask_counts.inintegerbound_tostringwebhook_secretstringReturned once, when a webhook wake is set
- 400Invalid request
- 401Not signed in
- 403Not allowed
- 409Conflict
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/agent-links/links" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
-d '{
"kind": "api_model",
"name": "string",
"provider": "anthropic"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('agentLinks_createLink', {
body: {
kind: 'api_model',
name: 'string',
provider: 'anthropic',
},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "agentLinks_createLink",
"arguments": {
"body": {
"kind": "api_model",
"name": "string",
"provider": "anthropic"
},
"idempotency_key": "<a stable key per change>"
}
}
}One linked agent, its status and ask counts
GET/v1/agent-links/links/{link}
Scope agent_links:read. The person, or the linked agent itself.
Parameters
linkpath · stringrequired
Responses
- 200The link
Response fields
idstringkind"api_model" | "connector" | "agent" | "history"namestringstatus"pending" | "active" | "paused" | "deleted"providerstring | nullmodelstring | nullwakeobjectretain_daysintegerexpiry_sintegercreated_atstring (date-time)last_seen_atstring | null (date-time)ask_countsobjectask_counts.outintegerask_counts.inintegerbound_tostringwebhook_secretstringReturned once, when a webhook wake is set
- 401Not signed in
- 403Not allowed
- 404Not found
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/agent-links/links/$LINK" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('agentLinks_getLink', {
link: '<link>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "agentLinks_getLink",
"arguments": {
"link": "<link>"
}
}
}Unlink an agent and delete its history now
DELETE/v1/agent-links/links/{link}
Scope agent_links:write. The person only. Deletes every ask and reply of the link; the agent can no longer call. Your Foundry provider key is not touched.
Parameters
linkpath · stringrequired
Responses
- 200The link, status
deletedResponse fields
idstringkind"api_model" | "connector" | "agent" | "history"namestringstatus"pending" | "active" | "paused" | "deleted"providerstring | nullmodelstring | nullwakeobjectretain_daysintegerexpiry_sintegercreated_atstring (date-time)last_seen_atstring | null (date-time)ask_countsobjectask_counts.outintegerask_counts.inintegerbound_tostringwebhook_secretstringReturned once, when a webhook wake is set
- 401Not signed in
- 403Not allowed
- 404Not found
- 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/agent-links/links/$LINK" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('agentLinks_deleteLink', {
link: '<link>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "agentLinks_deleteLink",
"arguments": {
"link": "<link>"
}
}
}Rename, pause, resume or allow a linked agent, or change how it is woken
PATCH/v1/agent-links/links/{link}
Scope agent_links:write. The person only. Allowing a pending connector (status: active) needs the person's approval (x-one-approval). wake: none | webhook (with url; the answer returns webhook_secret once) | mcp_events | schedule (with every_s), and hold_inbound to hold everything this agent asks One.
Parameters
linkpath · stringrequired
Request body application/json
namestringmin length 1 · max length 48
systemstring | nullmax length 2000
modelstringmax length 142
status"active" | "paused"retain_daysintegermin 0 · max 365
expiry_sintegermin 3600 · max 604800
wakeobjectwake.method"none" | "webhook" | "mcp_events" | "schedule"wake.urlstringmax length 2048
wake.every_sintegermin 300 · max 86400
wake.hold_inboundboolean
Responses
- 200The link
Response fields
idstringkind"api_model" | "connector" | "agent" | "history"namestringstatus"pending" | "active" | "paused" | "deleted"providerstring | nullmodelstring | nullwakeobjectretain_daysintegerexpiry_sintegercreated_atstring (date-time)last_seen_atstring | null (date-time)ask_countsobjectask_counts.outintegerask_counts.inintegerbound_tostringwebhook_secretstringReturned once, when a webhook wake is set
- 400Invalid request
- 401Not signed in
- 403Not allowed
- 404Not found
- 4xx 5xxThe error envelope.
curl -X PATCH "https://os.one.ml/api/v1/agent-links/links/$LINK" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('agentLinks_updateLink', {
link: '<link>',
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "agentLinks_updateLink",
"arguments": {
"link": "<link>",
"body": {}
}
}
}Pricing
The Agent Links price in force ($0.001 per model ask; model usage on your own key)
GET/v1/agent-links/pricing
Scope agent_links:read.
Responses
- 200Price
Response fields
A JSON object.
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/agent-links/pricing" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('agentLinks_getPricing'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "agentLinks_getPricing",
"arguments": {}
}
}Replies
Mark answers as seen
POST/v1/agent-links/replies/seen
Scope agent_links:write.
Request body application/json
ask_idsstring[]required
Responses
- 200How many were marked
Response fields
markedinteger
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/agent-links/replies/seen" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"ask_ids": []
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('agentLinks_markRepliesSeen', {
body: {
ask_ids: [],
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "agentLinks_markRepliesSeen",
"arguments": {
"body": {
"ask_ids": []
}
}
}
}L1fe AI Inc. · Built from Genesis 0.3.3 and the live gateway on 2026-10-25. Support