Devices

Redeem an approved enrollment (desktop app, no auth)

Exchanges the one-time code and the PKCE code_verifier for the device's own api-key, once. Replays, expiry and mismatches all answer 400 invalid_grant. Poll mode (the enrollment was created without redirect_uri) sends only {request_id, code_verifier}: 202 {status:"pending"} until a phone approves, 200 with the same body once, then 410 for denied, expired or already claimed. A wrong verifier is the same 400 as an unknown request.

post/api/v1/device_enrollments/token

Request

  • Base URL: https://saltapp.ai
  • URL: https://saltapp.ai/api/v1/device_enrollments/token
  • Auth: none required

Request body

request_idstring required
codestring
code_verifierstring required

Response

OK.

device_idstring
api_keystring
public_fingerprintstring
namestring
platformstring

Changes

No recorded changes to this operation across all 3 revisions of this API.