---
updatedAt: 2026-06-10T16:33:23.000Z
agentTools:
  projectIndex: https://docs.striga.com/llms.txt
---

# Set travel rule options for a user

Sets per-account Travel Rule options that skip per-address declarations. Intended to be called at account-setup time for integrators who can attest that a user transacts exclusively with their own wallets, but may be called at any time to toggle individual flags.

Provide exactly one of `userId` / `businessId`. At least one flag must be present. Omitting a flag leaves its current value unchanged.

Wallet ownership verification still applies at or above the EUR threshold — the flags only remove the obligation to declare an address before each transaction.


# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "1.0.0",
    "title": "Travel Rule",
    "description": "Travel Rule counterparty declaration, listing, wallet verification, widget sessions, and VASP search.\nRequires Travel Rule to be enabled for the application. Most routes use `api-key` plus\n`Authorization: HMAC <unixTimestampMs>:<hexSignature>`. Widget-facing routes also accept a\nvalid widget session token. HMAC signatures must cover the full request path (as sent to the\nserver), e.g. `/api/v1/travel-rule/counterparty/...` on sandbox.\n"
  },
  "tags": [
    {
      "name": "Counterparty",
      "description": "Travel Rule counterparty declare, list, and wallet verification."
    }
  ],
  "x-tagGroups": [
    {
      "name": "Travel Rule",
      "tags": [
        "Counterparty",
        "Widget",
        "VASP directory"
      ]
    }
  ],
  "servers": [
    {
      "url": "https://sandbox.striga.com/api/v1/travel-rule"
    }
  ],
  "security": [
    {
      "apiKey": [],
      "authorization": []
    }
  ],
  "components": {
    "securitySchemes": {
      "apiKey": {
        "type": "apiKey",
        "in": "header",
        "name": "api-key",
        "description": "Your Striga API key"
      },
      "authorization": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "description": "Your HMAC signature"
      }
    },
    "schemas": {
      "TravelRuleCounterparty400Error": {
        "type": "object",
        "description": "Malformed request, failed body validation, or missing application id. Matches the\n`BadRequestError`, `RequestValidationError`, and `InvalidApplicationIdError` shapes used\nacross Striga APIs; use `errorCode` to branch client-side (`00013`, `00002`, `00000`).\n",
        "required": [
          "message",
          "errorCode",
          "errorDetails"
        ],
        "properties": {
          "message": {
            "type": "string"
          },
          "errorCode": {
            "type": "string"
          },
          "errorDetails": {
            "description": "String for `00013` (bad request) and `00000` (invalid application id); array of\n`{msg, param, location?}` objects for `00002` (field validation).\n"
          }
        }
      },
      "TravelRuleCounterpartyError": {
        "type": "object",
        "description": "Travel Rule counterparty failures typically use `errorCode` 42005 (42xxx class).\nHTTP status distinguishes cases (409 duplicate, 422 validation, etc.).\nA few responses may use an empty `errorCode` string for legacy messages.\n",
        "required": [
          "message",
          "errorCode",
          "errorDetails"
        ],
        "properties": {
          "message": {
            "type": "string"
          },
          "errorCode": {
            "type": "string"
          },
          "errorDetails": {
            "type": "object"
          }
        }
      },
      "AuthError": {
        "type": "object",
        "description": "Invalid authentication header",
        "required": [
          "message",
          "errorCode",
          "errorDetails"
        ],
        "properties": {
          "message": {
            "type": "string",
            "enum": [
              "Invalid authentication header"
            ]
          },
          "errorCode": {
            "type": "string",
            "enum": [
              "30014"
            ]
          },
          "errorDetails": {
            "type": "string"
          }
        }
      },
      "TfrOptionsRequest": {
        "type": "object",
        "description": "Set per-account Travel Rule options. Provide exactly one of `userId` / `businessId`. At least one flag must be included.",
        "properties": {
          "userId": {
            "type": "string",
            "format": "uuid",
            "description": "Owner user id. Provide exactly one of userId / businessId."
          },
          "businessId": {
            "type": "string",
            "format": "uuid",
            "description": "Owner business id. Provide exactly one of userId / businessId."
          },
          "onChainDepositsFromOwnWalletsOnly": {
            "type": "boolean",
            "description": "When `true`, on-chain deposits for this account are treated as coming from a wallet the user owns — no per-deposit address declaration required. Wallet ownership verification still applies at or above the EUR threshold."
          },
          "lightningDepositsFromOwnWalletsOnly": {
            "type": "boolean",
            "description": "When `true`, Lightning deposits for this account are treated as coming from a wallet the user owns — no per-payment declaration required."
          },
          "onChainWithdrawalsToOwnWalletsOnly": {
            "type": "boolean",
            "description": "When `true`, on-chain withdrawals for this account are treated as going to a wallet the user owns — no per-withdrawal address declaration required. Wallet ownership verification still applies at or above the EUR threshold."
          },
          "lightningWithdrawalsToOwnWalletsOnly": {
            "type": "boolean",
            "description": "When `true`, Lightning withdrawals for this account are treated as going to a wallet the user owns — no per-payment declaration required."
          }
        }
      },
      "TfrOptionsResponse": {
        "type": "object",
        "required": [
          "tfrOptions"
        ],
        "properties": {
          "tfrOptions": {
            "type": "object",
            "description": "Echoes only the flags included in the request. Previously set flags that were omitted are unchanged but not returned.",
            "properties": {
              "onChainDepositsFromOwnWalletsOnly": {
                "type": "boolean"
              },
              "lightningDepositsFromOwnWalletsOnly": {
                "type": "boolean"
              },
              "onChainWithdrawalsToOwnWalletsOnly": {
                "type": "boolean"
              },
              "lightningWithdrawalsToOwnWalletsOnly": {
                "type": "boolean"
              }
            }
          }
        },
        "example": {
          "tfrOptions": {
            "onChainDepositsFromOwnWalletsOnly": true,
            "lightningDepositsFromOwnWalletsOnly": true
          }
        }
      }
    }
  },
  "paths": {
    "/travel-rule-options": {
      "post": {
        "summary": "Set travel rule options for a user",
        "description": "Sets per-account Travel Rule options that skip per-address declarations. Intended to be called at account-setup time for integrators who can attest that a user transacts exclusively with their own wallets, but may be called at any time to toggle individual flags.\n\nProvide exactly one of `userId` / `businessId`. At least one flag must be present. Omitting a flag leaves its current value unchanged.\n\nWallet ownership verification still applies at or above the EUR threshold — the flags only remove the obligation to declare an address before each transaction.\n",
        "tags": [
          "Counterparty"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TfrOptionsRequest"
              },
              "example": {
                "userId": "f714f7e8-6ba1-4802-81cc-12040113ff5b",
                "onChainDepositsFromOwnWalletsOnly": true,
                "lightningDepositsFromOwnWalletsOnly": true,
                "onChainWithdrawalsToOwnWalletsOnly": true,
                "lightningWithdrawalsToOwnWalletsOnly": true
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Options updated. Returns only the flags that were set in this request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TfrOptionsResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad request — no flags provided, or field validation failed.",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "type": "object",
                      "description": "No options provided",
                      "required": [
                        "message"
                      ],
                      "properties": {
                        "message": {
                          "type": "string"
                        }
                      }
                    },
                    {
                      "$ref": "#/components/schemas/TravelRuleCounterparty400Error"
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Invalid authentication header",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthError"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TravelRuleCounterpartyError"
                }
              }
            }
          }
        },
        "operationId": "set-travel-rule-options",
        "x-readme": {
          "code-samples": [
            {
              "language": "curl",
              "code": "curl --location --request POST 'https://sandbox.striga.com/api/v1/travel-rule/travel-rule-options' \\\n--header 'api-key: <YOUR_API_KEY>' \\\n--header 'Authorization: HMAC <unixTimestampMs>:<hexSignature>' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\n  \"userId\": \"f714f7e8-6ba1-4802-81cc-12040113ff5b\",\n  \"onChainDepositsFromOwnWalletsOnly\": true,\n  \"lightningDepositsFromOwnWalletsOnly\": true\n}'"
            }
          ],
          "samples-languages": [
            "curl"
          ]
        }
      }
    }
  }
}
```