Skip to content
Scalekit Docs
Talk to an Engineer Dashboard

Verify the user

POST/api/v1/connected_accounts/user/verify

Confirms that the user who just authorized a connection is the user your app meant, then makes their connected account ACTIVE. When your environment verifies users with a custom verifier, Scalekit sends the user to your user_verify_url after they approve access, with an auth_request_id query parameter. Call this endpoint from your server with that auth_request_id and the identifier of the user signed in to your app, then send the user to post_user_verify_redirect_url. If the identifier doesn't match the one the authorization link was created for, the call returns 403 and the account stays PENDING_VERIFICATION.

Authorization

Authorization: Bearer $TOKEN, an access token from the client credentials grant. See Authentication.

Body

auth_request_idstringrequired
The auth_request_id query parameter from the request Scalekit sent to your user_verify_url. Pass it as it is.
identifierstringrequired
Your app's ID for the user, the same value you used when the user connected. Use a stable internal ID, not an email address.

Response 200

post_user_verify_redirect_urlstring
Where to send the user next, to finish connecting.

Errors

Every error has the same body: code, message and details. See Errors and rate limits.

400Invalid request - missing or malformed fields
401Unauthorized - invalid or missing access token
403Forbidden - identifier mismatch
404Not found - no pending flow for the given auth_request_id or already consumed

Used in