Endpoints overview
GET /regenerateapikey
Generate a fresh API key for your fintech account.Request
Response
string
Your new API key. Copy and store this value immediately - it is only returned once.
string
ISO 8601 timestamp recording when the key was rotated.
POST /setwebhook
Register or update the webhook endpoint that Strails uses to deliver event notifications to your server. You can also attach a signing secret so you can verify each delivery. For details on verifying the HMAC signature included with every webhook delivery, see the HMAC Signatures page.Body parameters
string
required
The publicly reachable HTTPS URL on your server that will receive POST requests for webhook events.
string
A secret string used by Strails to sign outgoing webhook payloads. Include this to enable signature verification on your end.
boolean
required
Set to
true to activate delivery to this URL immediately, or false to register it in a disabled state.array
List of event types to subscribe to. Pass
["all"] to receive every event type. Refer to the Webhook Events page for all available event names.Request
Response
string
The URL that was registered.
boolean
Current delivery status of the webhook.
boolean
true if a signing secret is configured for this webhook.boolean
true if Strails was able to reach and validate the provided URL.string
ISO 8601 timestamp of when the configuration was saved.
POST /togglewebhookstatus
Enable or disable webhook delivery without modifying the registered URL or signing secret. Use this to pause notifications during maintenance windows or re-enable them when you are ready.Body parameters
boolean
required
Set to
true to resume webhook delivery or false to pause it.Request
Response
string
Your registered webhook URL (partially masked for security).
boolean
The new delivery status that was applied.
string
ISO 8601 timestamp of when the status change took effect.
GET /getwebhook
Retrieve your current webhook configuration, including the registered URL (partially masked), delivery status, and whether a signing secret is set.Request
Response
string
Your registered webhook URL, partially masked to protect the full path.
boolean
true if webhook delivery is currently active.boolean
true if a signing secret is attached to this webhook configuration.array
The list of event types currently subscribed. Returns
["all"] if you subscribed to all events.string
ISO 8601 timestamp of the last configuration update.
POST /storepublickey
Register your X25519 public key with Strails. Once stored, Strails uses it to encrypt all response payloads and webhook bodies sent to your integration via libsodiumcrypto_box_seal.
Body parameters
string
required
A 64-character hex X25519 public key, or the AES-encrypted legacy envelope whose decrypted
data is the same 64-hex X25519 public key.Request
Response
string
ISO 8601 timestamp of when the public key was stored.
GET /getplatformpublickey
Retrieve the Strails platform X25519 public key. Use this key to seal request payloads with libsodiumcrypto_box_seal so only Strails can decrypt them.
Request
Response
string
The 64-character hex Strails X25519 public key.
GET /getaeskey
Retrieve your raw, unmasked AES key. This key is used for legacy AES-GCM payload encryption and as a fallback for webhook signature verification when no dedicated webhook secret is configured.Request
Response
string
Your raw AES key.
POST /manageipallowlist
Manage the set of IP addresses permitted to make API requests on behalf of your fintech account. You can list all allowed IPs, add a new address, remove an existing one by address or index, or check whether your current request IP is on the list.In production, all servers originating API requests must have their IP addresses on your allowlist. IP changes propagate to all servers within 30 seconds.
Body parameters
string
required
The operation to perform. Accepted values:
"list", "add", "remove", "check".string
The IP address to add, remove, or check. Required when
action is "add" or when removing by address. Not required for "list" or "check".number
Zero-based index of the IP to remove, as returned by the
"list" action. Use this as an alternative to specifying ipAddress when removing an entry.string
Optional label describing the IP address (e.g.,
"Office network IP"). Used with the "add" action.List all allowed IPs
Add an IP address
Remove an IP address
Check your current IP
POST /updateonrampasset
Update the onramp asset preferences for a specific user on your platform. Use this to configure which token a user receives by default when they fund via onramp, whether to auto-swap on arrival, and the acceptable slippage tolerance.Body parameters
string
required
The unique identifier (hash or UUID) of the user whose preferences you are updating.
string
Asset symbol to set as the user’s preferred onramp target (e.g.,
"USDC", "cNGN").object
Extended asset preference configuration for the user.
Request
Response
string
Unique identifier for this update operation.
string
ISO 8601 timestamp of when the preferences were saved.
boolean
The
autoSwap value that was applied for this user.GET /autosigning/config
Retrieve the auto-approval threshold configuration assigned to your fintech account for cNGN buying. When a transaction amount is at or below this threshold, it is approved automatically without requiring manual signing.Request
Response
boolean
true if auto-signing is active for your fintech account.string
The maximum cNGN amount that qualifies for automatic approval. Transactions above this value require manual signing.
string
The token denomination for the threshold amount. Typically
"CNGN".string
The cumulative daily cap for auto-signed transactions.
boolean
true if auto-signing is scoped to transactions originating from your fintech account only.POST /createsandboxapikey
Create a sandbox-only API key for testing against the mock sandbox environment. This key is separate from your production API key and can only be used with sandbox endpoints.Request
Response
string
The newly created sandbox API key. Store this value securely - it is only returned once.
string
The fintech ID associated with the sandbox key.
string
ISO 8601 timestamp of when the sandbox API key was created.
string
Reminder that this key is valid only for the mock sandbox environment.