List integration points
const url = 'https://api.localhost/v1/integration-points';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.localhost/v1/integration-points \ --header 'Authorization: Bearer <token>'Every event type your account can send, built-in and your own, with the ruleset each one
runs in this key’s environment. Add, rename, and delete your own points, and choose which
ruleset each runs, in the console’s Rules page. An event type not listed here runs the
fallback ruleset.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”The integration points.
object
object
What to send as event_type.
True for a point you added; false for a built-in one.
The ruleset this point runs in the key’s environment: its own (named by its event type), a shared one (rs_ key), or other.
Example
{ "integration_points": [ { "event_type": "signup", "name": "Sign-up", "description": "New accounts being created.", "custom": false, "ruleset": "signup" }, { "event_type": "payout", "name": "Payout", "description": "Money leaving: withdrawals, transfers, and refunds.", "custom": false, "ruleset": "rs_money_out" }, { "event_type": "loyalty_redeem", "name": "Loyalty points redeemed", "description": "Points traded for rewards.", "custom": true, "ruleset": "loyalty_redeem" } ], "fallback": "other"}The key is missing, unknown, revoked, or expired (invalid_api_key).
object
object
Stable error code. Branch on this
What went wrong.
What to change.
Example
{ "error": { "code": "invalid_api_key", "message": "the API key is missing, unknown, revoked, expired, or not allowed from this IP", "fix": "send a secret key as 'Authorization: Bearer <key>'; manage keys on the account page" }}The key lacks the scope (scope_not_granted), or its IP allowlist does not include the caller (invalid_api_key).
object
object
Stable error code. Branch on this
What went wrong.
What to change.
Example
{ "error": { "code": "scope_not_granted", "message": "this key does not have the decide scope", "fix": "create a key with the decide scope" }}