Skip to content
Docs

API reference

Base address https://app.backa.ai/api/platform/v1. Every call needs Authorization: Bearer <platform key>. Bodies are JSON. Errors are { "error", "message" }, with a message written for a person.

Add a customer

POST /customers
{ "id": "acme-123", "name": "Acme AB" }

id is your own id for the customer: letters, digits and . _ : @ -, up to 200 characters. Calling again with the same id renames the customer. Answers 201 when created, 200 when it already existed.

List customers

GET /customers?limit=100

Your customers for the key's mode (live or test), newest first.

One customer

GET /customers/acme-123

The customer's connected systems and counts.

Delete a customer

DELETE /customers/acme-123

Deletes the customer's system sign-ins, audit log and workspace, for good.

POST /customers/acme-123/connect-links
{ "system": "hubspot", "return_url": "https://yourapp.com/integrations" }

Answers { "url", "expires_at" }. Send your customer to url. It works once, for 15 minutes. The page shows your name, the customer signs in to the system and approves, and comes back to return_url with:

  • backa_status: connected, cancelled or error
  • backa_system and backa_customer
  • backa_error, when something went wrong

The return address must be one of the return addresses you set in Platform → Settings. System ids are the ones on Systems, such as hubspot, salesforce, notion and jira.

Audit log page

POST /customers/acme-123/journal-pages
{ "user": "anna@acme.se" }

Answers { "url", "expires_at" }: the customer's own audit log, with Rollback, to show in an iframe. See Embedded audit log.