π Authenticate with the Well API
To start using the Well API, you need to generate a Bearer token via the/auth/api_key endpoint using your client_id and client_secret β provided by the Well team.
Endpoint
Request Body
client_idandclient_secretare provided by the Well team when your account is provisioned.- Keep your credentials secure and never expose them in public code or frontend applications.
Example using cURL
Response
A successful response will return a JSON payload containing your bearer token:token: Use this token in theAuthorizationheader for all subsequent API calls.expires_in: Indicates how long the token is valid (in seconds).
Authenticated Requests
Use the bearer token like this:π Security Notes
- Always use HTTPS when calling the API.
- Never expose your
client_secretor token in frontend code. - Tokens are short-lived; you can refresh them by repeating the authentication request.
β Youβre Ready
Now that youβre authenticated, you can start using:- The Documents API
- The Webhooks API
- The Webhook Events Reference