Swaps
Get swap
Requires api:read scope. Syncs Relay status before returning.
GET
/
swaps
/
{swapId}
Get swap
curl --request GET \
--url http://localhost:4000/v1/swaps/{swapId} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost:4000/v1/swaps/{swapId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "http://localhost:4000/v1/swaps/{swapId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"status": "error",
"message": "Swap not found"
}Authorizations
API key created in the Remitflex Dashboard at dashboard.remitflex.io (rmf_live_... or rmf_test_...).
Key management endpoints require a dashboard JWT and are not part of this reference.
Path Parameters
RemitFlex swap UUID (id from POST /swaps or GET /swaps).
Response
Swap fetched
⌘I
Get swap
curl --request GET \
--url http://localhost:4000/v1/swaps/{swapId} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost:4000/v1/swaps/{swapId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "http://localhost:4000/v1/swaps/{swapId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"status": "error",
"message": "Swap not found"
}