Skip to main content
POST
/
v1
/
edges
/
{id}
/
rotate-token
Rotate the edge static token (old token invalidated immediately)
curl --request POST \
  --url http://0.0.0.0:3000/v1/edges/{id}/rotate-token \
  --header 'Authorization: Bearer <token>'
{
  "edge": {
    "id": 1,
    "name": "casa-1",
    "org_id": null,
    "user_id": "user_abc123",
    "location": "home",
    "status": "pending",
    "capabilities": {},
    "last_seen_at": null,
    "paired_at": null,
    "created_at": "2026-05-21T10:00:00Z"
  },
  "edge_token": "edge_xY9zW8vU..."
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

X-Organization-Id
string

ID da organização para contexto (opcional). Quando presente, filtra recursos da org.

Path Parameters

id
integer
required

ID numérico do edge

Response

New token returned once

edge
object
edge_token
string

Token estático mostrado uma única vez. Guarde no .env do worker.