Skip to content

Pair this device​

POST
/counter/pair

Uses the pairing code up and returns the device's session token, shown once. The device sends it on every counter request as Authorization: Counter <token>. A device signs out when the team removes it, its location closes, or after 30 days without use.

Request Body​

application/json
JSON
{
"code": "string"
}

Responses​

Paired

application/json
JSON
{
"data": {
"device": {
"id": "string",
"name": "string"
},
"sponsor": {
"id": "string",
"slug": "string",
"name": "string",
"logoUrl": "string"
},
"location": {
"id": "string",
"label": "string",
"city": "string"
},
"token": "string"
}
}

Playground​

Server
Body

Samples​

Powered by VitePress OpenAPI

Built with VitePress