Exchange Hosted Auth Code
Hosted Auth
Exchange Hosted Auth Code
Exchanges a one-time hosted auth code for a TheFaithApp member bearer token.
POST
Exchange Hosted Auth Code
Exchanges the one-time
code from your redirect URL for a member bearer token. Use this token with X-API-Key to call protected v1 endpoints.
Example request
Request inputs
Client key from
Settings > Developer Access.One-time code received on your redirect URL after hosted sign-in.
The same redirect URL used when creating the hosted auth URL.
Required when the auth flow was started with a PKCE
code_challenge.Response fields
TheFaithApp member bearer token. Store it securely and use it as
Authorization: Bearer ....Token type. Currently
Bearer.The member record associated with the authenticated user and client key.
The church/client the member belongs to.
Example response
Error responses
400: code is invalid, expired, already used, or the redirect URL does not match.403: member does not belong to this client.404:client_keydoes not match a known client.422: request validation failed.