Quickstart: make your first API call
1. Register an OAuth client
In Coffee, open Settings, then Developers > OAuth clients > Create OAuth client. Give it a name and a callback URL, and choose its permissions. Each area can be set to No access, Read, Read & write or Full access.
For a Server integration, the client secret is shown once. Copy it before you leave the screen. A Local client uses PKCE without a client secret. You can rotate a server integration secret later.
You need Developer access on your role. If you do not have it, ask a workspace owner to enable it.
2. Get an access token
Coffee uses the OAuth 2.0 authorization code flow with PKCE (S256). Endpoints are published at:
https://meetcoffee.ai/.well-known/oauth-authorization-server
| Step | Endpoint |
|---|---|
| Authorize | https://meetcoffee.ai/api/v1/oauth/authorize/accept |
| Token | https://meetcoffee.ai/api/v1/oauth/authorize/code |
| Revoke | https://meetcoffee.ai/api/v1/oauth/revoke |
Supported grants: authorization_code and refresh_token. Client authentication: client_secret_basic, client_secret_post, or none for public clients using PKCE.
3. Call the API
Send the access token as a bearer token:
curl -X GET "https://your-workspace.meetcoffee.ai/api/v1/webhook-subscriptions" \
-H "Authorization: Bearer $COFFEE_ACCESS_TOKEN"
Successful responses look like:
{ "success": true, "data": { } }