Migrate from v1
Move an integration from the deprecated v1 API to v2 by 2027-01-31, v1's last day of service: endpoint mapping, permission changes and behaviour changes.
API v1 (/external-api/v1/...) is deprecated and stops working on 2027-02-01; its last day of service is 2027-01-31. Both versions run side by side until then, on the same keys, so you can move one call at a time.
What changes
Base URL.
/external-api/v1becomes/api/v2.Runs go through your library. v1 ran a graph by graph ID and version. v2 runs a library agent: look it up once with
GET /graphs/{graph_id}/library-agent, then run it withPOST /library/agents/{agent_id}/runs.Permissions.
RUN_AGENTreplacesEXECUTE_GRAPH, reading runs needsREAD_RUN, and most v2 areas have their own read and write permissions. A v1 key usually lacks them, and a key's permissions can't be changed, so plan on creating a new key; see the table below.Lists are paginated. Every list endpoint takes
limitandcursorand returns{"items", "next_cursor", "total_count"}. Code that expected a bare array must readitemsand follownext_cursor.Errors have one shape:
{"error": {"code", "message", "details"}}instead of{"detail": ...}. See Errors.Requests act inside an organization. The key decides which one; see Organizations and teams.
Rate limits and retries. v2 enforces documented limits and supports
Idempotency-Keyon run creation.
Endpoint mapping
GET /me
GET /me. Returns user_id instead of id, plus organization, team, scopes and credential_type.
IDENTITY
GET /blocks
GET /blocks (paginated)
READ_BLOCK
POST /blocks/{block_id}/execute
No direct equivalent. Put the block in a one-block agent and run it.
—
POST /graphs
POST /graphs
WRITE_GRAPH
POST /graphs/{graph_id}/execute/{graph_version}
GET /graphs/{graph_id}/library-agent, then POST /library/agents/{agent_id}/runs
READ_LIBRARY, RUN_AGENT
GET /graphs/{graph_id}/executions/{graph_exec_id}/results
GET /runs/{run_id}. Status and outputs in one object.
READ_RUN
GET /store/agents
GET /marketplace/agents
any valid key
GET /store/agents/{username}/{agent_name}
GET /marketplace/agents/{username}/{agent_name}
any valid key
GET /store/creators
GET /marketplace/creators
any valid key
GET /store/creators/{username}
GET /marketplace/creators/{username}
any valid key
GET /integrations/credentials, GET /integrations/{provider}/credentials
GET /integrations/credentials?provider=...
READ_INTEGRATIONS
POST /integrations/{provider}/credentials
POST /integrations/credentials, with provider in the body
MANAGE_INTEGRATIONS
DELETE /integrations/{provider}/credentials/{cred_id}
DELETE /integrations/credentials/{credential_id}
DELETE_INTEGRATIONS
GET /integrations/providers
No equivalent. Read the providers an agent needs from GET /library/agents/{agent_id}/credentials.
—
POST /integrations/{provider}/oauth/initiate, .../oauth/complete
No equivalent. Users connect OAuth providers in the app, or through the integration setup wizard.
—
POST /tools/find-agent, POST /tools/run-agent
The find_agent, find_library_agent and run_agent tools on the MCP server, or the REST endpoints above.
as listed there
Running a graph: before and after
The v2 run object returns everything at once: status, outputs keyed by output name, node_executions, cost_cents and timings. See Run agents.
Checklist
Create a new key with the v2 permissions your calls need, plus
IDENTITY, and check it withGET /me. Keep the old key for the calls still on v1, and delete it once nothing uses it.Change the base URL to
/api/v2.Replace graph runs with library-agent runs, and send an
Idempotency-Key.Read
itemsand follownext_cursoron every list.Parse errors from
error.code.Test against your instance, then remove every
/external-api/v1call by 2027-01-31, v1's last day of service.
Last updated
Was this helpful?