Revoke a token
OAuth 2.0 token revocation (RFC 7009). Revoke an access or refresh token the client was issued, for example when an integration is uninstalled or a secret leaks. Answers 200 whether or not the token was valid, so a caller learns nothing about tokens it does not hold. Client credentials go in the form body, like issueToken. At most 10 requests a minute per client_id and 30 per address; past that, 429 with Retry-After.
application/x-www-form-urlencoded- body
token*stringThe access or refresh token to revoke.
password1 <= length <= 4096token_type_hint?stringaccess_token or refresh_token. A hint only: an unknown value is ignored, as RFC 7009 section 2.2.1 requires.
length <= 64client_id*stringThe integration client id.
1 <= length <= 255client_secret*stringThe integration client secret.
password1 <= length <= 512The token is revoked, or was not a valid token. The body is empty.
curl -X POST 'https://api2.launchgood.com/oauth/revoke' \ -H 'Content-Type: application/x-www-form-urlencoded' \ -d 'token=pa%24%24word&client_id=cl_8f3k2j9d&client_secret=pa%24%24word'Get an access token POST
OAuth 2.0 client-credentials grant (RFC 6749 section 4.4), the only grant. Send the request as a form (`application/x-www-form-urlencoded`) or as JSON. Authenticate with HTTP Basic (`Authorization: Basic base64(client_id:client_secret)`, RFC 6749 section 2.3.1) or with `client_id` and `client_secret` in the body, never both and never in a URL. The response carries `Cache-Control: no-store`. The endpoint is behind a feature flag (`api-gateway-oauth-token`, default off): while it is off every request is a 501 and nothing is checked or issued. A 400 or 401 is not a `Problem`: it is the RFC 6749 section 5.2 body, `application/json` with `error` and `error_description`. A bad secret, an unknown client and an inactive client are the same 401 `invalid_client`. Brute-force limits, per minute: 10 attempts per `client_id` that do not authenticate it, after which each address is still given one checked attempt (the right secret gets its token; a wrong one is a 429), and 30 requests per address; past a limit, 429 with `Retry-After`.
Create a campaign for an organization POST
The organization is the one the token scope names (`organization:{organizationId}:admin`, proposed): the body carries no organization id. Send `Idempotency-Key` to make a retry safe: the same key with the same body returns the campaign that was created, and the same key with a different body is a 409. Required scope: `organization:{organizationId}:admin`.