Get Swap
curl --request GET \
--url https://20b9-41-90-209-232.ngrok-free.app/v1/swaps/{id} \
--header 'Authorization: Bearer <token>'const url = 'https://20b9-41-90-209-232.ngrok-free.app/v1/swaps/{id}';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));import requests
url = "https://20b9-41-90-209-232.ngrok-free.app/v1/swaps/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://20b9-41-90-209-232.ngrok-free.app/v1/swaps/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"object": "swap",
"id": "14d2759d-c6b1-5e5f-85b2-af84bc650f57",
"status": "completed",
"origin": "keette",
"from": "USD",
"to": "NGN",
"amount_from": 10000,
"amount_to": 1550000,
"scale_from": 2,
"scale_to": 2,
"fx_rate": "155.00",
"quote_id": "e6bd10ee-6e53-4aaa-9cd0-a2bb980cf73e",
"stan": "SWP-2610-ABCDEF12",
"created_at": "2026-10-27T13:00:00Z",
"updated_at": "2026-10-27T13:00:05Z",
"completed_at": "2026-10-27T13:00:05Z"
}{
"error": {
"type": "authentication_error",
"code": "invalid_api_key",
"message": "Invalid API key provided."
}
}{
"error": {
"type": "permission_error",
"code": "api_disabled",
"message": "Public API access is disabled for this workspace."
}
}Swaps
Get Swap
GET
/
swaps
/
{id}
Get Swap
curl --request GET \
--url https://20b9-41-90-209-232.ngrok-free.app/v1/swaps/{id} \
--header 'Authorization: Bearer <token>'const url = 'https://20b9-41-90-209-232.ngrok-free.app/v1/swaps/{id}';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));import requests
url = "https://20b9-41-90-209-232.ngrok-free.app/v1/swaps/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://20b9-41-90-209-232.ngrok-free.app/v1/swaps/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"object": "swap",
"id": "14d2759d-c6b1-5e5f-85b2-af84bc650f57",
"status": "completed",
"origin": "keette",
"from": "USD",
"to": "NGN",
"amount_from": 10000,
"amount_to": 1550000,
"scale_from": 2,
"scale_to": 2,
"fx_rate": "155.00",
"quote_id": "e6bd10ee-6e53-4aaa-9cd0-a2bb980cf73e",
"stan": "SWP-2610-ABCDEF12",
"created_at": "2026-10-27T13:00:00Z",
"updated_at": "2026-10-27T13:00:05Z",
"completed_at": "2026-10-27T13:00:05Z"
}{
"error": {
"type": "authentication_error",
"code": "invalid_api_key",
"message": "Invalid API key provided."
}
}{
"error": {
"type": "permission_error",
"code": "api_disabled",
"message": "Public API access is disabled for this workspace."
}
}Authorizations
Secret API key from Settings → Developers → API keys.
Example: Authorization: Bearer sk_test_…
Path Parameters
Response
Swap
Object type discriminator.
Available options:
swap Swap id.
Lifecycle status of the book-to-book transfer.
Available options:
processing, completed, failed, reversed Debited book currency.
Credited book currency.
Debit amount in Ledger minor units.
Credit amount in Ledger minor units.
System trace / reference shown in statements.
How the swap was initiated (keette for API/dashboard).
Decimal places for from.
Decimal places for to.
Applied rate as a decimal string.
Firm quote that locked the rate.
Failure or reversal reason when applicable.
Creation time (UTC).
Last status change (UTC).
When the swap finished successfully, if completed.