Skip to content

Register a device

POST
/api/v1/auth/register-device
curl --request POST \
--url http://localhost:3001/api/v1/auth/register-device \
--header 'Authorization: <Authorization>' \
--header 'Content-Type: application/json' \
--data '{ "name": "example", "platform": "example", "public_key": "example" }'

Register a device and obtain a device-scoped refresh token. SA-2026-ARCH P2-H / P3-auth-devices.

Device metadata

Media typeapplication/json
object
name
string
platform
string
public_key
string
Examplegenerated
{
"name": "example",
"platform": "example",
"public_key": "example"
}

Registered

Media typeapplication/json
object
key
additional properties
any
Examplegenerated
{}

Bad Request

Media typeapplication/json
object
error
string
success
boolean
Examplegenerated
{
"error": "example",
"success": true
}

Unauthorized

Media typeapplication/json
object
error
string
success
boolean
Examplegenerated
{
"error": "example",
"success": true
}

Internal Server Error

Media typeapplication/json
object
error
string
success
boolean
Examplegenerated
{
"error": "example",
"success": true
}