Skip to content

API reference ​

The Nexlm API is a JSON REST API with a Socket.io channel for realtime updates.

Base URL ​

EnvironmentURL
Localhttp://localhost:4000/api
Productionhttps://<your-api-host>/api

Authentication ​

Most endpoints need a bearer token from register or login:

http
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...

Each endpoint page lists its requirement:

LabelMeaning
PublicNo token needed
UserAny active user
Verified emailemailVerified must be true
TraderVerified email and, when REQUIRE_KYC=true, verified KYC
Adminrole = ADMIN

Requests ​

  • Send JSON with Content-Type: application/json (max 100 KB).
  • Chat messages use multipart/form-data.
  • XLM amounts and NGN rates can be strings or numbers; strings are recommended.

Responses ​

  • Successful responses return the resource directly (no envelope).
  • Decimal fields (xlmAmount, ngnRate, ngnAmount, …) are strings.
  • Timestamps are ISO 8601 UTC strings.
  • Lists are paginated.
  • Errors follow a single error format.

Endpoints ​

AreaEndpoints
Authregister, login, me, verify email, resend verification, forgot/reset/change password
Usersprofile, payout accounts, public profiles
KYCstatus, submit
Walletsummary, deposit, activity, transactions, withdraw
Ordersmarket, my orders, get, create, cancel
Tradeslist, open, get, mark paid, release, cancel, messages
Adminoverview, users, KYC review, trades
RealtimeSocket.io events
Healthliveness

Nexlm is a peer-to-peer facilitator and never holds customer Naira.