Skip to main content

πŸ” 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_id and client_secret are 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 the Authorization header 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_secret or 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: Need help? Reach out at support@wellapp.ai