Skip to content

List integration points

GET
/v1/integration-points
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.

The integration points.

Media typeapplication/json
object
integration_points
required
Array<object>
object
event_type
required

What to send as event_type.

string
name
required
string
description
required
string
custom
required

True for a point you added; false for a built-in one.

boolean
ruleset
required

The ruleset this point runs in the key’s environment: its own (named by its event type), a shared one (rs_ key), or other.

string
fallback
required
string
Allowed values: 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).

Media typeapplication/json
object
error
required
object
code
required

Stable error code. Branch on this

string
message
required

What went wrong.

string
fix

What to change.

string

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).

Media typeapplication/json
object
error
required
object
code
required

Stable error code. Branch on this

string
message
required

What went wrong.

string
fix

What to change.

string

Example

{
"error": {
"code": "scope_not_granted",
"message": "this key does not have the decide scope",
"fix": "create a key with the decide scope"
}
}