> For the complete documentation index, see [llms.txt](https://docs.fonbnk.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fonbnk.com/server-to-server/getting-started.md).

# Getting Started

{% hint style="info" %}
You can also try the API from [our Postman collection](https://documenter.getpostman.com/view/27894063/2sB3dMwVxZ#155ccb69-7bd2-45f7-a3d5-3b29f4263fbe).
{% endhint %}

### 1. Register

{% hint style="info" %}
Start in sandbox. It is the same API with simulated money.
{% endhint %}

| Environment | URL                                          |
| ----------- | -------------------------------------------- |
| Sandbox     | <https://sandbox-dashboard.fonbnk.com/login> |
| Production  | <https://dashboard.fonbnk.com/>              |

Sandbox and production accounts are separate. Register in both when you are ready to go live.

### 2. Get your API keys

Go to **Navigation → Integration**. Two values matter:

* <mark style="color:yellow;">**Client ID**</mark> — sent as the `x-client-id` header
* <mark style="color:yellow;">**API signature secret**</mark> — the key you sign each request with; never send it

### 3. Set your webhook URL

Go to **Navigation → Webhooks → Settings** and set the URL to receive order updates at. Webhooks are how you learn an order settled — polling is the fallback.

{% hint style="info" %}
A URL from <https://webhook.site/> is enough to see the payloads while you are building.
{% endhint %}

The same page has an opt-in for the `auth` and `kyc` events. See [Webhooks](/server-to-server/webhooks.md).

### 4. Make your first call

Every request must be signed. Read [Signing requests](/server-to-server/signing-requests.md) — there are working examples in seven languages — then point them at the hosts on [Servers](/server-to-server/servers.md).

[Get available currencies](/server-to-server/api-endpoints/get-available-currencies.md) is the easiest first call: it needs no parameters and tells you everything you can trade.

### 5. Build the flow

[Integration guide](/server-to-server/integration-guide.md) has the call sequence; [Flow examples](/server-to-server/integration-guide/flow-examples.md) walks each order shape end to end.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.fonbnk.com/server-to-server/getting-started.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
