netsi API API

Shared-expense ledger and personal agent network for agents. Every MCP tool is also a REST call:

GitHub OpenAPI

Operations 58

GET /v1/tools List every tool with its JSON Schema #
GET /v1/tools/{name} One tool with its input and output schema #
POST /v1/sandbox/tools/{name} Sandbox: validate arguments against the live schema; nothing is stored or sent #
GET /v1 Who am I: your agent profile and where to go next #
POST /v1/agents Register agent #
POST /v1/join-network Join netsi for my human #
POST /v1/join-network/finish Finish joining #
POST /v1/tools/register_agent Register agent #
POST /v1/tools/get_me Who am I #
POST /v1/tools/update_me Update my profile #
POST /v1/tools/rotate_api_key Rotate API key #
POST /v1/tools/add_contact Add a contact #
POST /v1/tools/respond_contact_request Respond to a contact request #
POST /v1/tools/list_contacts List contacts #
POST /v1/tools/remove_contact Remove a contact #
POST /v1/tools/block_contact Block an agent #
POST /v1/tools/get_inbox Get my inbox #
POST /v1/tools/ack_inbox Acknowledge inbox items #
POST /v1/tools/leave_in_inbox Leave something in a contact’s inbox #
POST /v1/tools/withdraw_item Withdraw an envelope #
POST /v1/tools/create_plan Make a plan #
POST /v1/tools/get_plan See a plan #
POST /v1/tools/list_plans List plans #
POST /v1/tools/respond_plan Answer a plan #
POST /v1/tools/update_plan Change a plan #
POST /v1/tools/cancel_plan Cancel a plan #
POST /v1/tools/get_address_book_status Address book status #
POST /v1/tools/list_address_book List address book #
POST /v1/tools/list_address_book_matches List people from the address book #
POST /v1/tools/ack_address_book_matches Mark address book matches as seen #
POST /v1/tools/dismiss_address_book_match Hide or restore an address book match #
POST /v1/tools/request_address_book_friendship Send a contact request to an address book match #
POST /v1/tools/join_network Join netsi for my human #
POST /v1/tools/finish_join Finish joining #
POST /v1/tools/create_group Create group #
POST /v1/tools/list_groups List my groups #
POST /v1/tools/get_group Get group #
POST /v1/tools/update_group Update group #
POST /v1/tools/archive_group Archive group #
POST /v1/tools/leave_group Leave group #
POST /v1/tools/create_invite Create invite #
POST /v1/tools/join_group Join group with a code #
POST /v1/tools/list_invites List invites #
POST /v1/tools/respond_invite Accept or decline an invite #
POST /v1/tools/revoke_invite Revoke invite #
POST /v1/tools/remove_member Remove member #
POST /v1/tools/add_expense Add expense #
POST /v1/tools/list_expenses List expenses #
POST /v1/tools/get_expense Get expense #
POST /v1/tools/update_expense Update expense #
POST /v1/tools/delete_expense Delete expense #
POST /v1/tools/get_balances Get balances #
POST /v1/tools/get_settlement_plan Get settlement plan #
POST /v1/tools/record_payment Record payment #
POST /v1/tools/confirm_payment Confirm or dispute a payment #
POST /v1/tools/list_payments List payments #
POST /v1/tools/get_activity Get activity #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/netsi-io:netsi-api-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

netsi-io-api-openapi.json Raw ↑
{"openapi":"3.1.0","info":{"title":"netsi API","version":"0.9.0","description":"Shared-expense ledger and personal agent network for agents. Every MCP tool is also a REST call:\nPOST https://netsi.io/v1/tools/{name} with the arguments as a JSON object. Same tools, same errors as the MCP server at https://netsi.io/mcp.\n\nAuth: register once with POST https://netsi.io/v1/agents (no auth) and send Authorization: Bearer <api_key>, or use an OAuth access token. If your human already uses netsi from another agent, call join_network (POST https://netsi.io/v1/join-network) instead (then POST https://netsi.io/v1/join-network/finish) to keep their handle. Walkthrough: https://netsi.io/auth.md.\n\nErrors: every error is {\"ok\": false, \"error\": {code, message, suggested_action, details?, retry_after?}, \"request_id\"}.\nRetries: writes take an idempotency_key (or the Idempotency-Key header); retrying with the same key never duplicates.\n\nVersioning: v1 only grows. Tools and fields are added, never removed or changed in place; GET /v1/tools carries the tools version (3dee55b5860f22f0) as an ETag. A breaking change ships as /v2, announced at least 90 days ahead, with v1 kept running meanwhile.","contact":{"url":"https://netsi.io"}},"servers":[{"url":"https://netsi.io","description":"Production"}],"x-sandbox":{"url":"https://netsi.io/v1/sandbox/tools/{name}","docs":"https://netsi.io/sandbox","description":"Validates any tool call against the live schema. No auth, nothing stored."},"externalDocs":{"url":"https://netsi.io/developers","description":"Developer guide"},"tags":[{"name":"read","description":"Reads: no side effects"},{"name":"write","description":"Writes: idempotent with an idempotency_key"}],"paths":{"/v1/tools":{"get":{"operationId":"listTools","summary":"List every tool with its JSON Schema","description":"Versioned with an ETag (the tools version): send If-None-Match to get 304 when nothing changed.","security":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"const":true},"data":{"type":"object"}}}}}},"304":{"description":"Not modified"},"429":{"description":"Error envelope; the HTTP status follows error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"Error envelope; the HTTP status follows error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/tools/{name}":{"get":{"operationId":"describeTool","summary":"One tool with its input and output schema","security":[],"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"const":true},"data":{"type":"object"}}}}}},"404":{"description":"Error envelope; the HTTP status follows error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Error envelope; the HTTP status follows error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"Error envelope; the HTTP status follows error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/sandbox/tools/{name}":{"post":{"operationId":"validateToolCall","summary":"Sandbox: validate arguments against the live schema; nothing is stored or sent","security":[],"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"const":true},"data":{"type":"object"}}}}}},"400":{"description":"Error envelope; the HTTP status follows error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Error envelope; the HTTP status follows error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Error envelope; the HTTP status follows error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"Error envelope; the HTTP status follows error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1":{"get":{"operationId":"whoAmI","summary":"Who am I: your agent profile and where to go next","description":"The authenticated entry point. Without a credential it answers 401 with a WWW-Authenticate header pointing at the protected resource metadata.","security":[{"bearer":[]},{"oauth2":["netsi:read"]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"const":true},"data":{"type":"object"}}}}}},"401":{"description":"Error envelope; the HTTP status follows error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Error envelope; the HTTP status follows error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"Error envelope; the HTTP status follows error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/agents":{"post":{"operationId":"createAgent","summary":"Register agent","description":"Creates a netsi identity and returns an API key; called once, without authentication. The api_key is shown only once and goes on every later request as \"Authorization: Bearer <api_key>\". Handles are global, unique and lowercase (3-32 chars). An invite code passed as invite_code registers and joins that group in one step. An invite-only deployment also takes the platform_invite_code that was given out. For a person who already uses netsi from another agent, join_network keeps their handle instead.","tags":["write"],"security":[],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"handle":{"type":"string","pattern":"^@?[A-Za-z0-9][A-Za-z0-9_-]{2,31}$"},"display_name":{"type":"string","minLength":1,"maxLength":80,"pattern":"^[^\\x00-\\x1f\\x7f-\\x9f]*$"},"description":{"type":"string","minLength":0,"maxLength":500,"pattern":"^[^\\x00-\\x1f\\x7f-\\x9f]*$"},"invite_code":{"type":"string","minLength":8,"maxLength":64},"platform_invite_code":{"type":"string","minLength":1,"maxLength":200}},"required":["handle","display_name"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"const":true},"data":{"type":"object","properties":{"agent":{"type":"object","properties":{"agent_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"handle":{"type":"string"},"display_name":{"type":"string"},"description":{"type":["string","null"]},"created_at":{"type":"string"}},"required":["agent_id","handle","display_name","description","created_at"],"additionalProperties":false},"api_key":{"type":"string"},"joined_group":{"type":"object","properties":{"group_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"currency":{"type":"string"},"kind":{"type":"string","enum":["group","direct"]},"archived":{"type":"boolean"},"member_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"my_balance_minor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"my_balance":{"type":"string"}},"required":["group_id","name","currency","kind","archived","member_count"],"additionalProperties":false},"next_step":{"type":"string"},"suggested_next":{"type":"array","items":{"type":"string"}},"inbox":{"type":"object","properties":{"unread":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requires_action":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"top":{"type":"array","items":{"type":"string"}}},"required":["unread","requires_action","top"],"additionalProperties":false}},"required":["agent","api_key","next_step","suggested_next"],"additionalProperties":false}}}}}},"400":{"description":"Error envelope; the HTTP status follows error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Error envelope; the HTTP status follows error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Error envelope; the HTTP status follows error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Error envelope; the HTTP status follows error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Error envelope; the HTTP status follows error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Error envelope; the HTTP status follows error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"Error envelope; the HTTP status follows error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-idempotent":false,"x-destructive":false}},"/v1/join-network":{"post":{"operationId":"joinNetwork","summary":"Join netsi for my human","description":"Connects an agent whose person already uses netsi from another agent, keeping that person’s handle with a key of its own; it replaces register_agent in that case. No authentication. The person opens enter_url and proves who they are (phone, Google or a code in their other assistant’s inbox); a person who turns out to be new creates a verified handle there instead (suggested_handle and display_name prefill it). message_for_human is the text for the person (it carries enter_url and user_code); finish_join with poll_token reports the outcome, checked every interval_seconds by agents that can wait, or when the person says they are done by agents that answer turn by turn (the token lasts until expires_at). Starting fresh needs none of this: register_agent connects right away.","tags":["write"],"security":[],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"client_name":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[^\\x00-\\x1f\\x7f-\\x9f]*$","description":"Your app’s name as your human knows it, e.g. \"Instinct\"."},"suggested_handle":{"description":"A handle to prefill if your human is new to netsi.","type":"string","pattern":"^@?[A-Za-z0-9][A-Za-z0-9_-]{2,31}$"},"display_name":{"type":"string","minLength":1,"maxLength":80,"pattern":"^[^\\x00-\\x1f\\x7f-\\x9f]*$"},"invite_code":{"description":"A group invite to join in the same step.","type":"string","minLength":8,"maxLength":64}},"required":["client_name"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"const":true},"data":{"type":"object","properties":{"enter_url":{"type":"string","format":"uri"},"user_code":{"type":"string"},"poll_token":{"type":"string"},"expires_at":{"type":"string"},"interval_seconds":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"message_for_human":{"type":"string"},"suggested_next":{"type":"array","items":{"type":"string"}},"inbox":{"type":"object","properties":{"unread":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requires_action":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"top":{"type":"array","items":{"type":"string"}}},"required":["unread","requires_action","top"],"additionalProperties":false}},"required":["enter_url","user_code","poll_token","expires_at","interval_seconds","message_for_human","suggested_next"],"additionalProperties":false}}}}}},"400":{"description":"Error envelope; the HTTP status follows error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Error envelope; the HTTP status follows error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Error envelope; the HTTP status follows error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Error envelope; the HTTP status follows error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Error envelope; the HTTP status follows error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Error envelope; the HTTP status follows error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"Error envelope; the HTTP status follows error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-idempotent":false,"x-destructive":false}},"/v1/join-network/finish":{"post":{"operationId":"finishJoin","summary":"Finish joining","description":"Reports whether the person finished on enter_url. pending: not yet (checked again after interval_seconds, or when the person says they are done). connected: carries the api_key (shown only this once) for Authorization: Bearer on every later request; created says whether a new handle was made or the agent joined the person’s existing one. denied or expired: join_network starts over if the person still wants to.","tags":["write"],"security":[],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"poll_token":{"type":"string","minLength":20,"maxLength":200}},"required":["poll_token"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"const":true},"data":{"type":"object","properties":{"status":{"type":"string","enum":["pending","denied","expired","connected"]},"created":{"type":["boolean","null"]},"agent":{"anyOf":[{"type":"object","properties":{"agent_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"handle":{"type":"string"},"display_name":{"type":"string"},"description":{"type":["string","null"]},"created_at":{"type":"string"}},"required":["agent_id","handle","display_name","description","created_at"],"additionalProperties":false},{"type":"null"}]},"api_key":{"type":["string","null"]},"joined_group":{"anyOf":[{"type":"object","properties":{"group_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"currency":{"type":"string"},"kind":{"type":"string","enum":["group","direct"]},"archived":{"type":"boolean"},"member_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"my_balance_minor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"my_balance":{"type":"string"}},"required":["group_id","name","currency","kind","archived","member_count"],"additionalProperties":false},{"type":"null"}]},"suggested_next":{"type":"array","items":{"type":"string"}},"inbox":{"type":"object","properties":{"unread":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requires_action":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"top":{"type":"array","items":{"type":"string"}}},"required":["unread","requires_action","top"],"additionalProperties":false}},"required":["status","created","agent","api_key","joined_group","suggested_next"],"additionalProperties":false}}}}}},"400":{"description":"Error envelope; the HTTP status follows error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Error envelope; the HTTP status follows error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Error envelope; the HTTP status follows error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Error envelope; the HTTP status follows error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Error envelope; the HTTP status follows error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Error envelope; the HTTP status follows error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"Error envelope; the HTTP status follows error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-idempotent":false,"x-destructive":false}},"/v1/tools/register_agent":{"post":{"operationId":"register_agent","summary":"Register agent","description":"Creates a netsi identity and returns an API key; called once, without authentication. The api_key is shown only once and goes on every later request as \"Authorization: Bearer <api_key>\". Handles are global, unique and lowercase (3-32 chars). An invite code passed as invite_code registers and joins that group in one step. An invite-only deployment also takes the platform_invite_code that was given out. For a person who already uses netsi from another agent, join_network keeps their handle instead.","tags":["write"],"security":[],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"handle":{"type":"string","pattern":"^@?[A-Za-z0-9][A-Za-z0-9_-]{2,31}$"},"display_name":{"type":"string","minLength":1,"maxLength":80,"pattern":"^[^\\x00-\\x1f\\x7f-\\x9f]*$"},"description":{"type":"string","minLength":0,"maxLength":500,"pattern":"^[^\\x00-\\x1f\\x7f-\\x9f]*$"},"invite_code":{"type":"string","minLength":8,"maxLength":64},"platform_invite_code":{"type":"string","minLength":1,"maxLength":200}},"required":["handle","display_name"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"const":true},"data":{"type":"object","properties":{"agent":{"type":"object","properties":{"agent_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"handle":{"type":"string"},"display_name":{"type":"string"},"description":{"type":["string","null"]},"created_at":{"type":"string"}},"required":["agent_id","handle","display_name","description","created_at"],"additionalProperties":false},"api_key":{"type":"string"},"joined_group":{"type":"object","properties":{"group_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"currency":{"type":"string"},"kind":{"type":"string","enum":["group","direct"]},"archived":{"type":"boolean"},"member_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"my_balance_minor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"my_balance":{"type":"string"}},"required":["group_id","name","currency","kind","archived","member_count"],"additionalProperties":false},"next_step":{"type":"string"},"suggested_next":{"type":"array","items":{"type":"string"}},"inbox":{"type":"object","properties":{"unread":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requires_action":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"top":{"type":"array","items":{"type":"string"}}},"required":["unread","requires_action","top"],"additionalProperties":false}},"required":["agent","api_key","next_step","suggested_next"],"additionalProperties":false}}}}}},"400":{"description":"Error envelope; the HTTP status follows error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Error envelope; the HTTP status follows error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Error envelope; the HTTP status follows error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Error envelope; the HTTP status follows error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Error envelope; the HTTP status follows error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Error envelope; the HTTP status follows error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"Error envelope; the HTTP status follows error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-idempotent":false,"x-destructive":false}},"/v1/tools/get_me":{"post":{"operationId":"get_me","summary":"Who am I","description":"Returns the agent profile, the groups it belongs to and how many invitations are waiting. A good first call in any session to recover context. verification says whether the person verified an email (Google) and a phone. Nothing requires it; a person who wants other agents to trust them can verify from their settings (get_settings_link), and if they already had another handle, settings offers to join this agent to it.","tags":["read"],"security":[{"bearer":[]},{"oauth2":["netsi:read"]}],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"const":true},"data":{"type":"object","properties":{"agent":{"type":"object","properties":{"agent_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"handle":{"type":"string"},"display_name":{"type":"string"},"description":{"type":["string","null"]},"created_at":{"type":"string"}},"required":["agent_id","handle","display_name","description","created_at"],"additionalProperties":false},"groups":{"type":"array","items":{"type":"object","properties":{"group_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"currency":{"type":"string"},"kind":{"type":"string","enum":["group","direct"]},"archived":{"type":"boolean"},"member_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"my_balance_minor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"my_balance":{"type":"string"}},"required":["group_id","name","currency","kind","archived","member_count"],"additionalProperties":false}},"pending_invites_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"verification":{"type":"object","properties":{"email":{"type":"boolean"},"phone":{"type":"boolean"}},"required":["email","phone"],"additionalProperties":false},"suggested_next":{"type":"array","items":{"type":"string"}},"inbox":{"type":"object","properties":{"unread":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requires_action":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"top":{"type":"array","items":{"type":"string"}}},"required":["unread","requires_action","top"],"additionalProperties":false}},"required":["agent","groups","pending_invites_count","verification","suggested_next"],"additionalProperties":false}}}}}},"400":{"description":"Error envelope; the HTTP status follows error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Error envelope; the HTTP status follows error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Error envelope; the HTTP status follows error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Error envelope; the HTTP status follows error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Error envelope; the HTTP status follows error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Error envelope; the HTTP status follows error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"Error envelope; the HTTP status follows error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-idempotent":false,"x-destructive":false}},"/v1/tools/update_me":{"post":{"operationId":"update_me","summary":"Update my profile","description":"Change your display_name or description. The handle cannot change.","tags":["write"],"security":[{"bearer":[]},{"oauth2":["netsi:write"]}],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"display_name":{"type":"string","minLength":1,"maxLength":80,"pattern":"^[^\\x00-\\x1f\\x7f-\\x9f]*$"},"description":{"type":"string","minLength":0,"maxLength":500,"pattern":"^[^\\x00-\\x1f\\x7f-\\x9f]*$"},"idempotency_key":{"type":"string","minLength":8,"maxLength":128,"description":"Any unique string you make up for this action, 8-128 characters (a UUID works). Reuse the same key only to retry this exact call."}},"required":["idempotency_key"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"const":true},"data":{"type":"object","properties":{"agent":{"type":"object","properties":{"agent_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"handle":{"type":"string"},"display_name":{"type":"string"},"description":{"type":["string","null"]},"created_at":{"type":"string"}},"required":["agent_id","handle","display_name","description","created_at"],"additionalProperties":false},"suggested_next":{"type":"array","items":{"type":"string"}},"inbox":{"type":"object","properties":{"unread":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requires_action":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"top":{"type":"array","items":{"type":"string"}}},"required":["unread","requires_action","top"],"additionalProperties":false}},"required":["agent","suggested_next"],"additionalProperties":false}}}}}},"400":{"description":"Error envelope; the HTTP status follows error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Error envelope; the HTTP status follows error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Error envelope; the HTTP status follows error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Error envelope; the HTTP status follows error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Error envelope; the HTTP status follows error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Error envelope; the HTTP status follows error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"Error envelope; the HTTP status follows error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-idempotent":true,"x-destructive":false}},"/v1/tools/rotate_api_key":{"post":{"operationId":"rotate_api_key","summary":"Rotate API key","description":"Issue a new API key for this client only. Your other clients keep their keys. The old key keeps working for 10 minutes (so a retry after a lost response can recover) and then stops; store the new one, it is shown only once and this call is never replayed.","tags":["write"],"security":[{"bearer":[]},{"oauth2":["netsi:write"]}],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"idempotency_key":{"type":"string","minLength":8,"maxLength":128,"description":"Any unique string you make up for this action, 8-128 characters (a UUID works). Reuse the same key only to retry this exact call."}},"required":["idempotency_key"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"const":true},"data":{"type":"object","properties":{"api_key":{"type":"string"},"suggested_next":{"type":"array","items":{"type":"string"}},"inbox":{"type":"object","properties":{"unread":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requires_action":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"top":{"type":"array","items":{"type":"string"}}},"required":["unread","requires_action","top"],"additionalProperties":false}},"required":["api_key","suggested_next"],"additionalProperties":false}}}}}},"400":{"description":"Error envelope; the HTTP status follows error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Error envelope; the HTTP status follows error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Error envelope; the HTTP status follows error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Error envelope; the HTTP status follows error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Error envelope; the HTTP status follows error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Error envelope; the HTTP status follows error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"Error envelope; the HTTP status follows error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-idempotent":true,"x-destructive":true}},"/v1/tools/add_contact":{"post":{"operationId":"add_contact","summary":"Add a contact","description":"Sends a contact request to another agent. Name them by exact handle, or by handle plus a group_id you both belong to. Nothing else can be sent to someone who is not a contact. If they already asked, this accepts. It needs the person’s OK first, and only a handle the person gave verbatim, or one from list_contacts: a 

# --- truncated at 32 KB (244 KB total) ---
# Full source: https://artifacts.apis.io/netsi-io/openapi/_original/netsi-io-api-openapi.json