AOP API/Authentication
/auth/tokenExchange a client_id + client_secret for an access token. This is the entry point for every external integration.
https://api.w3builders.com/v1/auth/token| Field | Type |
|---|---|
| access_token | value |
| token_type | value |
| expires_in | value |
| refresh_token | value |
curl -X POST https://api.w3builders.com/v1/auth/token \-H "Content-Type: application/json" \-d '{"client_id": "ck_5f2a...","client_secret": "cs_9d41..."}'
{"access_token": "eyJhbGciOi...","token_type": "Bearer","expires_in": 1800,"refresh_token": "5c2f9e..."}
curl -X POST https://api.w3builders.com/v1/auth/token \-H "Content-Type: application/json" \-d '{"client_id": "ck_5f2a...","client_secret": "cs_9d41..."}'
{"access_token": "eyJhbGciOi...","token_type": "Bearer","expires_in": 1800,"refresh_token": "5c2f9e..."}