border.bot
Esc
  • Loading…
↑ ↓ to move↵ to openEsc to close
Docs menu

Your restricted-goods rules

GET https://api.border.bot/v1/restrictions/rules

Requires an access token from an API client (Authorization: Bearer <access_token>).

Rules your restricted-goods checks apply on top of border.bot’s (a compliance team’s own list). Free.

API client scope: settings.

Responses#

  • 200: Your rules. (RestrictionRulesResponse)
  • 401: Missing, invalid or expired access token, or a revoked or expired API client (unauthorized). (Error)
  • 403: The API client doesn’t have the settings scope (forbidden, details.reason: "missing_scope"). (Error)
  • 429: Rate limited (rate_limited). Retry after Retry-After seconds; RateLimit says which limit was hit (r=0, t seconds until its window ends) and RateLimit-Policy its quota. (Error)
  • 500: Unexpected error (internal). (Error)

Example request#

curl -X GET https://api.border.bot/v1/restrictions/rules \
  -H "Authorization: Bearer $BORDERBOT_TOKEN"

Example response (200)#

JSON
{
  "data": [
    {
      "id": "0199c3a2-7b4e-7d21-9f3a-2c5e8b1d4f60",
      "country": "string",
      "direction": "string",
      "ruleType": "string",
      "code": "string",
      "keywords": [
        "string"
      ],
      "origins": [
        "string"
      ],
      "title": "string",
      "summary": "string",
      "createdAt": "string"
    }
  ]
}