Search the docs

Pages and API endpoints

Developer dashboard
Docs/Getting Started

Getting Started

Get up and running with the SyncBooks API in under 5 minutes.

1Get Your API Key

Generate an API key from your SyncBooks dashboard. Go to Settings → API Keys → Generate Key.

⚠️

Store your API key securely. It's only shown once — if you lose it, you'll need to generate a new one.

2Make Your First Request

All API requests use the base URL below and require your API key in the Authorization header:

Base URL
https://api.syncbooksapp.com/api/v1

Try fetching your invoices:

cURL
curl https://api.syncbooksapp.com/api/v1/invoices \
  -H "Authorization: Bearer sk_live_your_api_key_here"

3Understand the Response

All responses are JSON. Successful responses have a data field. Errors have an error field.

Success Response
{
  "data": [
    {
      "_id": "65f1a2b3c4d5e6f7a8b9c0d1",
      "invoiceNumber": "INV-06-0001",
      "status": "sent",
      "totalAmount": 2500.00,
      "customer": { "name": "Kwame Enterprises" }
    }
  ],
  "total": 42,
  "page": 1,
  "limit": 20
}
Error Response
{
  "error": "Invalid API key"
}

4Authentication Details

ParameterTypeDescription
AuthorizationrequiredstringBearer token with your API key: Bearer sk_live_...
Content-Typerequiredstringapplication/json for POST/PUT/PATCH requests

You're Ready!

  • API key generated
  • First request successful
  • Response format understood