Create an auth link draft
/auth-link-draftsCreates a DRAFT auth link for a plugin authorization variant and regionalization. A draft holds the customer-owned OAuth client and provider configuration while the customer completes setup; it is not usable by endpoints until the provider connection is established. Requires the plugin-establish-link permission, evaluated with the variant and regionalization as operation context. The same Idempotency-Key and payload replays the committed response.
Required scope
Any authenticated access token
Header parameters
- Idempotency-Key
stringRequired Client-chosen key that makes a non-idempotent request retry-safe, following draft-ietf-httpapi-idempotency-key-header. A committed response is stored for 24 hours and replayed for the same principal, operation, key and payload. Missing key returns 400 IDEMPOTENCY_KEY_REQUIRED, a key longer than 255 characters returns 400 IDEMPOTENCY_KEY_INVALID, the same key with a different payload returns 422, and the same key while the first request is still in flight returns 409. Failed (rolled-back) requests do not consume the key.
minLength: 1
maxLength: 255
Request body
Fields
Returns
201
Draft auth link created
Fields
Response headers
- ETag
string Opaque strong entity tag of the returned resource version. Send it back in `If-Match` on the next mutation of the same resource.
Errors
400 BAD_REQUESTInvalid request payload
Check the request fields and any validation details, then correct the payload.
403 FORBIDDENForbidden - insufficient permissions
Check the linked account and its permissions for the device or resource.
409 CONFLICTThe Idempotency-Key request is still in flight
Check the device’s current mode or state. Retry only after the conflict is resolved.
422 UNPROCESSABLE_ENTITYThe Idempotency-Key was already used with a different payload
Correct the rejected value using the constraints in the error details or request schema.