OAuth

Exchange authorization code for API key

Changed on

Exchange an OAuth authorization code for a DualEntry API key.

Side effects

  • If a CLI-generated API key exists for this user in this organization, DualEntry deactivates it, then creates a new CLI API key.
post/public/v2/oauth/token/

Request

  • Base URL: https://api.dualentry.com
  • URL: https://api.dualentry.com/public/v2/oauth/token/
  • Auth: none declared

Headers

Idempotency-Keystring

Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns 422.

Request body

grant_type'authorization_code' required
codestring required
code_verifierstring required
redirect_uristring required

Response

OK

api_keystring required
organization_idinteger required
user_emailstring required

Changes