Moving to public IDs (UUIDs)

Moving to public IDs (UUIDs)

The ngris API identifies every object you can address by a uuid, not by an internal integer id. Tunnels, API keys, auth tokens, rate-limit rules, traffic policies, routing rules, an endpoint's users and roles, members, invitations, SSO configs, client CAs, dedicated IPs, error templates, traffic logs and more each carry a uuid. Every reference to another object is a <thing>_uuid field, in place of the old <thing>_id.

Since 2026-11-07 the API refuses integer ids. Endpoints, domains, certificates and applications already used uuids in their URLs, and those URLs accept a uuid only. This page is the guide for moving code that still uses integer ids.

  • Paths take the object's uuid: /v1/tunnels/{uuid}, /v1/keys/auth/{uuid}, /v1/firewall/rate-limits/{uuid}.
  • Request bodies and query parameters take <thing>_uuid (endpoint_uuid, role_uuid, ca_uuids) instead of <thing>_id.
  • Plans have no uuid: they are addressed by their slug. Send "plan": "team" instead of plan_id; responses carry plan.
  • Responses carry uuid on every object and <thing>_uuid for every reference. The integer id and *_id fields are gone from them, apart from the few listed under Responses below.
Every mount: this applies to /v1, /api/v1 and /api alike. There is no /v2; the change was made inside v1.
Refused since 2026-11-07
curl -X DELETE "https://api.ngris.com/v1/keys/auth/1287" \
  -H "X-API-KEY: $NGRIS_API_KEY"
Address it by uuid
# 1. Read the token's uuid from the list
curl -s "https://api.ngris.com/v1/keys/auth" \
  -H "X-API-KEY: $NGRIS_API_KEY" | jq '.items[] | {uuid, description}'

# 2. Address it by uuid
curl -X DELETE "https://api.ngris.com/v1/keys/auth/019ae915-a554-7fc4-aea3-9c9ce2dd2976" \
  -H "X-API-KEY: $NGRIS_API_KEY"

Timeline

Date What changed
2026-10-14 Every route, body and query parameter accepted the uuid, and every response carried uuid and the *_uuid fields. Integer ids still worked, with deprecation headers.
2026-11-07 (brought forward from 2026-11-13) The sunset. Since then an integer id is refused with 400 integer_id_unsupported, and responses no longer carry the integer id / *_id fields, apart from the few listed under Responses.
Am I affected? A request with an integer id
curl -s "https://api.ngris.com/v1/tunnels/4521" \
  -H "X-API-KEY: $NGRIS_API_KEY"

# HTTP 400
{
  "error": "Integer ids are no longer accepted. Use the resource's uuid (returned as \"uuid\" in every response).",
  "code": "integer_id_unsupported",
  "param": "id"
}

Deprecation headers

Until 2026-11-07, a request that sent an integer id where a uuid is expected, in the path, the body or the query string, still succeeded, and its response carried three headers:

  • Deprecation (RFC 9745): @ followed by the Unix time the deprecation took effect.
  • Sunset (RFC 8594): the HTTP date after which integer ids are refused.
  • Link: this page, with rel="deprecation".

Those requests are refused now: 400 integer_id_unsupported, without these headers. If your client logged the headers, those logs list the calls to move.

Response headers, before 2026-11-07
HTTP/2 200
content-type: application/json
deprecation: @1792022399
sunset: Fri, 13 Nov 2026 23:59:59 GMT
link: <https://ngris.com/docs/public-ids>; rel="deprecation"; type="text/html"

Integer ids are refused

An integer id in a path, a body or a query string is answered with 400 and the code integer_id_unsupported. The param field names the parameter that carried the integer.

Routes that already took a uuid (endpoints, domains, certificates, applications, firewall policies, metric alerts) accept a uuid only. Anything else in that path segment, an integer included, matches no route and gets a plain 404.

Responses no longer carry the integer id and *_id fields, apart from the few listed under Responses. Code that still reads them gets nothing: read uuid and the *_uuid fields.

400 integer_id_unsupported
{
  "error": "Integer ids are no longer accepted. Use the resource's uuid (returned as \"uuid\" in every response).",
  "code": "integer_id_unsupported",
  "param": "id"
}

Paths

These routes took an integer and now take the object's uuid only. An integer is refused with 400 integer_id_unsupported.

Route Takes
/user/sessions/{uuid}your session's uuid
/user/invitations/{uuid}/accept, /declineinvitation uuid
/account/members/{user_uuid}, …/rolethe member's user uuid (user_uuid in the member list)
/account/invites/{uuid}, /account/roles/{uuid}invitation uuid, role uuid
/stats/users/{uuid}your own user uuid
/keys/api/{uuid}, /keys/auth/{uuid}API key uuid, auth token uuid
/tunnels/{uuid}, …/tags, /stats/tunnels/{uuid}tunnel uuid
/traffic/endpoints/{tunnel_uuid}/metricsthe tunnel uuid (the route's historical name)
/endpoints/{uuid}/oauth/providers/{provider_uuid}OAuth provider uuid
/endpoints/{uuid}/rbac/clients/{client_uuid}, …/sessions/{session_uuid}/revokeuser uuid; user session uuid
/endpoints/{uuid}/rbac/roles/{role_uuid}RBAC role uuid
/endpoints/{uuid}/policies/{policy_uuid}, …/rules/{rule_uuid}traffic policy uuid; policy rule uuid
/endpoints/{uuid}/routing-rules/{rule_uuid}routing rule uuid
/firewall/rate-limits/{uuid}, …/conditions/{condition_uuid}rate-limit rule uuid; condition uuid
/traffic/logs/{uuid}, …/replay, …/analyzetraffic log uuid
/templates/{uuid}error template uuid
/sso/config/{uuid}SSO config uuid
/dedicated-ips/{uuid}/releasededicated-IP assignment uuid (an item of GET /dedicated-ips)
/dedicated-ips/groups/{uuid}/release, /dedicated-ips/requests/{uuid}/cancelgroup uuid, request uuid
/client-cas/{uuid}client CA uuid
/git/installations/{uuid}, …/reposthe linked installation's uuid (not GitHub's installation_id)
/billing/balance/topups/{uuid}/receipt.pdfledger row uuid
/public/incidents/{uuid}, /public/maintenances/{uuid}incident / maintenance uuid

A child object resolves only under the parent named in the path: a policy rule under its policy, a client session under its client, a rate-limit condition under its rule.

Find a uuid: list, then address
# Rate-limit rules: uuid next to name
curl -s "https://api.ngris.com/v1/firewall/rate-limits" \
  -H "X-API-KEY: $NGRIS_API_KEY" | jq '.rules[] | {uuid, name}'

# Toggle one by uuid
curl -X PUT "https://api.ngris.com/v1/firewall/rate-limits/019b344f-6477-7b07-8dac-7d370474eab1/toggle" \
  -H "X-API-KEY: $NGRIS_API_KEY"

Request bodies and query parameters

Send the new name. An integer in the old name is refused with 400 integer_id_unsupported, and param names the field.

Route Send Instead of
POST /user/switch-accountaccount_uuidaccount_id
PUT /account/members/{user_uuid}/role, POST /account/invitesrole_uuidrole_id
POST /account/transfer-owneruser_uuid, old_owner_role_uuiduser_id, old_owner_role_id
POST /keys/authendpoint_uuid, tunnel_uuidendpoint_id, tunnel_id
POST /endpoints, POST /certificates/self, GET /endpoints?…domain_uuiddomain_id
PUT /endpoints/{uuid}/certificatecertificate_uuidcertificate_id
POST /applications (GitHub import)git_installation_uuidgit_installation_id
POST /billing/checkout, GET /billing/preview-plan-change?…plan (the slug)plan_id
POST / DELETE /endpoints/{uuid}/rbac/membershipsclient_uuid, role_uuidclient_id, role_id
PUT /endpoints/{uuid}/rbac/registration-policydefault_role_uuiddefault_role_id
POST /endpoints/{uuid}/routing-rules/reorder, POST /firewall/policies/reorderordered_uuidsordered_ids
PUT /endpoints/{uuid}/mtlsca_uuidsca_ids
POST /endpoints/{uuid}/dedicated-ip, …/dedicated-ip-groupassignment_uuid, group_uuidassignment_id, group_id
POST /account/objectivesendpoint_uuidendpoint_id
GET /firewall/rate-limits?…, GET /traffic/metrics?…, GET /traffic/security-analytics?…endpoint_uuidendpoint_id
GET /traffic/metrics/compare?…endpoint_uuids (repeat it)endpoint_ids
GET /traffic/logs, …/export, POST /traffic/smart-searchendpoint_uuid, rate_limit_rule_uuid, since_uuid, policy_uuidendpoint_id, rate_limit_rule_id, since_id, policy_id
  • A malformed uuid is 400: {"error": "endpoint_uuid must be a uuid", "param": "endpoint_uuid"}.
  • A uuid you can't address, including another account's, is 404, worded exactly like an unknown object.
  • An integer in an old name is refused. Send the uuid only.
  • Some old names took a uuid, not an integer, and still take one: endpoint_id / endpoint_ids on the traffic, metrics and rate-limit routes, policy_id on the traffic-log routes and ordered_ids on POST /firewall/policies/reorder. Send the new name.
  • Metric alert rules and invites to an endpoint (/rbac/clients/invites) refuse an id field they don't take, however it is spelled (endpoint_id, endpointId): 400 integer_id_unsupported, with param naming the field as sent.
  • Bodies that reject unknown fields accept the new names.
Refused since 2026-11-07
POST /v1/keys/auth
{
  "description": "ci-bot agent",
  "endpoint_id": 184
}

PUT /v1/endpoints/{uuid}/mtls
{ "mode": "required", "ca_ids": [7, 12] }

POST /v1/billing/checkout
{ "plan_id": 2, "interval": "monthly" }
Send
POST /v1/keys/auth
{
  "description": "ci-bot agent",
  "endpoint_uuid": "019bb1e4-e785-77d2-9966-c3cff31d0a0e"
}

PUT /v1/endpoints/{uuid}/mtls
{
  "mode": "required",
  "ca_uuids": [
    "019af8a2-4b16-70ea-8090-9f63343250c8",
    "019b07e7-fbab-74be-a38d-e60284dd7254"
  ]
}

POST /v1/billing/checkout
{ "plan": "team", "interval": "monthly" }
An integer in a body field
{
  "error": "Integer ids are no longer accepted. Use the resource's uuid (returned as \"uuid\" in every response).",
  "code": "integer_id_unsupported",
  "param": "endpoint_id"
}

Responses

  • Every addressable object carries uuid.
  • Every reference is a <thing>_uuid field; arrays are <thing>_uuids. A *_uuid field is omitted when the reference is empty.
  • A plan is named by plan (the slug); GET /plans lists each plan's slug.
  • Firewall policies and conditions keep their string id (it already was a uuid) and carry uuid with the same value.
  • Rows that only appear in lists and that nothing addresses carry no id at all, for example account membership rows, activity and audit-log entries, metric-alert events, incident updates and tunnel agents.

Code that still reads the integer fields gets nothing: switch it to the uuid fields.

Still integers, by design

These are not our internal ids and don't change: payment ids (stripe_*, payment_method_id, invoice and tax ids), the agent's own agent_id, request_id and connection_id, the DNS provider's record_id, GitHub's installation_id and repository ids, and counts, limits, ports and priorities. Your own ids also stay where you sign in, as on GET /auth/session (the signed-in user's user_id and the active account's account.id): your user's id on the user object of POST /auth/login, POST /auth/mfa and POST /user, user_id in an EMAIL_NOT_VERIFIED answer, and active_account_id after a full sign-in. Every other id in those answers is a uuid, and the plan is its slug.

GET /v1/keys/auth, before 2026-11-07
{
  "items": [
    {
      "id": 1287,
      "uuid": "019ae915-a554-7fc4-aea3-9c9ce2dd2976",
      "user_id": 1024,
      "user_uuid": "019a52c2-ca1e-78ba-ab5c-50362cc29134",
      "endpoint_id": 184,
      "endpoint_uuid": "019bb1e4-e785-77d2-9966-c3cff31d0a0e",
      "description": "ci-bot agent",
      "status": "active"
    }
  ]
}
GET /v1/keys/auth, now
{
  "items": [
    {
      "uuid": "019ae915-a554-7fc4-aea3-9c9ce2dd2976",
      "user_uuid": "019a52c2-ca1e-78ba-ab5c-50362cc29134",
      "endpoint_uuid": "019bb1e4-e785-77d2-9966-c3cff31d0a0e",
      "description": "ci-bot agent",
      "status": "active"
    }
  ]
}

Other behaviour changes

  • Another account's object is a 404. A uuid of an object outside your active account is answered exactly like an unknown id. A few routes used to answer 403 there and now answer 404: the endpoint API-key routes, dedicated-IP release and group release, and client-CA delete.
  • Members: removing or re-roling a user who isn't a member of the account is 404 Member not found (it was 400).
  • Case: uuids are accepted in upper or lower case everywhere. Domain, certificate and identity-verification routes used to accept lower case only.
  • References are checked: endpoint_uuid / tunnel_uuid on POST /keys/auth, endpoint_uuid on POST /account/objectives and default_role_uuid on the RBAC registration policy must name an object you can address, otherwise the request is 404.

Webhooks, exports, emails and links

Ids also leave the API in webhooks, files and links:

  • Alert webhooks: the body carries rule_uuid and endpoint_uuid. endpoint_id is no longer sent: read endpoint_uuid. Slack and Discord messages name the endpoint by its uuid. See Metrics & alerts.
  • Traffic-log export: each JSON entry carries uuid and no id. In the CSV the first column, headed UUID, holds the log's uuid where the integer ID used to be, so no column moves; the UUID column near the end stays. See Export Traffic Logs.
  • Data export (POST /user/data-export): the user, your accounts and ledger rows are named by uuid (uuid, account_uuid); the export carries no integer id.
  • Account invitation emails link to the invitation by its uuid.
  • Status page: incidents and maintenances live at /status/incidents/<uuid> and /status/maintenances/<uuid>. An older integer link no longer redirects there: use the uuid link.
  • Per-region dedicated-IP groups publish their geo name as grp-<group uuid>.<geo zone> (the geo_fqdn field).
  • Support desk: ticket messages name other tickets by uuid, and campaign emails link through the link's uuid; links in emails sent earlier keep working.
Alert webhook body
{
  "rule_uuid": "019c2f7a-1d3e-7b40-9a6c-5e8f0b2d4c71",
  "name": "API p95 latency",
  "status": "firing",
  "metric": "p95_latency_ms",
  "operator": ">",
  "threshold": 500,
  "value": 742.5,
  "window_seconds": 300,
  "observed_at": "2026-10-13T09:00:00Z",
  "endpoint_uuid": "019bb1e4-e785-77d2-9966-c3cff31d0a0e",
  "test": false
}

MCP server, Python SDK and Kubernetes operator

MCP server

Tools take and return uuids. A numeric id where a uuid belongs is refused: the API answers it with 400 integer_id_unsupported, and the traffic-log tools refuse it before calling the API. Nothing to change in your assistant; only saved prompts or scripts that quote a numeric id need the uuid instead. See MCP Server.

Python SDK

The API refuses an integer id from any client, the Python SDK included: 400 integer_id_unsupported. Pass uuids, and plan slugs for plans, wherever a method takes an id.

Kubernetes operator

From operator 0.2.0 the custom resources record the ngris objects they own by uuid. An older operator sends integer ids, which the API refuses: upgrade it. A resource whose status an older operator wrote with only an integer id can't be matched to its ngris object any more, because the API refuses that integer: the operator marks it Ready=False with the reason LegacyIDUnsupported. Delete that object in the dashboard, then delete and recreate the resource.

Dashboard and the agent

Nothing to do in the dashboard. Agent auth token values don't change, so nothing changes on the machines that run the agent.

Migration checklist

  1. Find the calls that still send integers: look for 400 integer_id_unsupported answers (param names the field), or search your code for _id fields and numeric path segments.
  2. Read the uuid of each object from its list or create response (uuid), and store it instead of the integer.
  3. Build paths from the uuid; send *_uuid fields and plan slugs in bodies and query strings.
  4. Read uuid / *_uuid from responses; stop reading id / *_id.
  5. Upgrade the Kubernetes operator to 0.2.0 or later.
  6. Done when none of your requests gets 400 integer_id_unsupported.

Every page of the API reference shows the uuid form. Questions: contact us.

Was this helpful?