Register a new device and obtain credentials
PUT/api/v1/gateways
Device registration. Creates a gateway record, assigns a gatewayId, and
returns per-device authentication credentials.
Idempotent per SDK key and deviceId: registering again returns the
existing gatewayId with fresh credentials, still as 201, and stores
the body's manufacturer, model, firmwareVersion and device state;
type keeps its first-registered value.
Uses SDK key authentication (X-Sdk-Key header) instead of Bearer token.
A re-registration (same deviceId + SDK key) of a gateway an admin has
disabled is refused with 403 gateway_disabled rather than issued fresh
credentials.
Request
Responses
- 201
- 400
- 401
- 403
- 429
- 503
New device registered.
Response Headers
URL of the created gateway resource.
Invalid request.
Invalid or expired credentials.
Gateway is disabled.
Rate limited.
Service temporarily unavailable.