MerchantsRun your business
Developer settings
Create API keys and roll their secrets, set and verify the webhook URL, send a test event, deliver an event again and recover after a suspension.
Developers, under Settings in the menu, is where you create the credentials your server uses and tell Fianto where to send webhooks. Each API key is an application: it has its own app ID, a live secret for mainnet and, once you create one, a test secret for devnet, and at most one webhook endpoint per network. What your server does with them is in Authentication and Webhooks.
The page has three tabs. API keys lists your keys, with each one's name, App ID, secret (only
its last characters), webhook status, status and creation date. Build with an agent gives the
command or the prompt that adds the Fianto skill to a coding agent. Call the API sums up how to
open a checkout, the events Fianto sends (all 22 event types, plus endpoint.) and the
routes your server can call. Docs, in the
header, opens these docs.
Before you start
- Your account is approved. Before approval you can create test keys in Test mode only: see Create a test key for devnet.
- You know your password and, once two-factor sign-in is on, have your authenticator app (or a recovery code): creating a key, rolling a secret, setting the webhook URL and showing the signing secret all ask for them.
- For a webhook: an
https://URL on your server that can answer Fianto's verification request.
Steps
Create an API key
On Developers, click New API key. Enter a Name, so you know which server uses it (1 to 100 characters) and click Continue. A second dialog asks for your Current password and an Authentication code or recovery code; click Confirm.
The dialog then shows Key created, with the app ID (fian_app_…) and the live secret
(fian_sk_live_…), which works only on mainnet: "Copy it now. We keep only its last four characters, so it cannot be shown
again." Store it on your server, never in a browser.
Roll a secret when you need a new one
Each key has its own page, opened from the list. In its Secret card, click Roll secret. Under The old secret, choose when the current secret stops working: "Stop the old one now" (preselected), "Keep the old one for 1 hour" or "Keep the old one for 24 hours". Pick a grace period unless the secret leaked: the preselected choice revokes the old secret at once. Click Continue, confirm with your password and code, and copy the new secret: it is shown once. At most two secrets of each network are valid at a time.
Create a test key for devnet
A key created after approval has a live secret only, and the live secret does not work on devnet. A
key created before approval has a test secret only: once you are approved, open it in Live mode and
click "Create live key" to add its live secret. Choose "Test mode" in the
sidebar's Mode picker, open Developers, then open the key. Click "Create test key", confirm
with your password and code, and copy the test secret (fian_sk_test_…): it is shown once. It works
only on devnet.
In Test mode, "Roll secret" rolls the test secret, with the same choices for the old one. Rolling one network's secret never affects the other's. After approval, creating, renaming and disabling a key happen in Live mode and apply to both networks. Before approval, you create and rename keys in Test mode, where a new key gets a test secret only: it works only in Test mode, and its live secret comes once Fianto approves your business. The dashboard offers no way to disable a key. In Live mode before approval, Developers shows no keys. See Testing on devnet.
Set the webhook URL
In the key's Webhook card, the row URL we post to reads "Not set" until you add one. Click Add (Edit once a URL is set). In the Webhook URL dialog, enter the URL we post to, click Save URL, then confirm with your password and code.
The URL must use https, with no user name, password or # fragment, on port 443 or 1024 and
above, on a public address, and be at most 2,048 characters. Fianto then sends a signed
endpoint. request; your server must answer HTTP 200 with
{"challenge":"…"} (the value it received) within 5 seconds. Your current URL keeps receiving
events until the new one is verified. Once it passes, the status beside the URL reads "Active".
Before approval the Webhook card reads "Webhooks open once Fianto approves your business.", and no URL can be set. The webhook you set here is for mainnet. To receive devnet events, choose "Test mode" in the sidebar's Mode picker and set the key's webhook there: it has its own URL and signing secret. See Testing on devnet.
Get the signing secret
In the same card, click Show signing secret and confirm with your password and code. Put the
whsec_… secret on your server. Roll signing secret works like rolling the API secret, with the
same three choices under The old secret.
Send a test event
While the URL is "Active", the card has Send test event: "Test event queued. It appears in the
log below." A test.event then shows under Deliveries on the key's page.
Deliver an event again, if your server missed it
Under Deliveries, open a delivery that "Succeeded" or "Gave up" and click Deliver again:
"Queued again. It appears at the top of the log." A redelivery carries the same webhook-id, so
your server can still recognise a duplicate. Redelivery is only in the dashboard, and needs the API key
to be active and the URL to be "Active": there is no Deliver again on a "Pending" or "Cancelled" delivery.
Verify again after a suspension
After 5 deliveries in a row fail every attempt, Fianto switches the URL off: "Deliveries to this URL kept failing, so it was switched off. Fix your endpoint, then verify again." New and waiting deliveries are held (up to 10,000), and the card says "Events are being held." with how many. Fix your server, then click Verify again. Once the URL is verified, held events from the last 90 days are sent automatically.
Events sent while no URL is verified are not delivered
Fianto keeps the events it publishes while no URL is verified, but never delivers them. Your server
can read them with GET /v1/events.
Disabling a key is permanent
On the key's page, Disable opens a dialog: "Calls with this key stop working at once, and its webhook stops. A disabled key cannot be turned back on; you would create a new one." Click Disable key to go ahead, or Cancel. Disabling also cancels the key's pending deliveries.
Limits
| Limit | Value |
|---|---|
| Active API keys | 10 |
| API keys in all, disabled ones included | 100 |
| Webhook endpoints per key | 1 |
| Test events per key | 10 an hour, shared with the API's test-event route |
| Redeliveries per key | 60 an hour |
| Verification attempts | 10 an hour per endpoint, 30 an hour per account |
Check it worked
The Webhook card shows the status "Active" beside the URL. After Send test event,
Deliveries lists test.event as "Succeeded".
Troubleshooting
| You see | Why | Fix |
|---|---|---|
| "Application limit reached. Disable an application you no longer use, or contact support." | You have 10 active API keys, or 100 in all. | Disable one you no longer use (this frees an active place only), or write to support@fianto.xyz. |
| "Enter a full URL starting with https://" | The dashboard checked the URL before sending it: it is not a full https URL. | Enter the whole URL, starting with https://. |
| "Enter a full https:// URL on a public host (port 443 or 1024 and above)" | The URL breaks one of the URL rules. | Use an https URL on a public host, on port 443 or 1024 and above. |
| "Your endpoint did not answer within 5 seconds." | The verification request timed out. | Answer the verification request at once, then verify again. |
| "Your endpoint did not echo the challenge back." | The answer did not contain the challenge. | Answer HTTP 200 with the challenge value you received. |
| "Your endpoint answered with a redirect. Redirects are not followed." | The URL redirects. | Enter the final URL. |
| "Too many verification attempts. Try again in an hour." | Too many verification requests for this endpoint or your account. | Wait an hour. |
| "Too many test events or redeliveries for this application this hour. Try again later." | More than 10 test events or 60 redeliveries in an hour. | Try again later. |
| No Deliver again button on a delivery | The delivery is still "Pending" (held ones included) or was "Cancelled", the API key is disabled, or the URL is not "Active". | Wait for it to finish, or verify the URL again. |
See also
Was this page helpful? Tell us
fianto.xyz