This guide provides a comprehensive overview of how to get started with the Baack APIs. It covers the essential steps for authentication, making your first API call, and understanding the core functionalities.
1. Authentication
To access the Baack APIs, you'll need to authenticate your requests. Baack APIs use a bearer token, which belongs to an API client.
Getting your bearer token
- Sign up or log in: If you don't already have one, create an account in the Baack console.
- Go to API clients: Once logged in, go to Developers > API clients.
- Create a new API client: Select New API client and follow the prompts. Make sure to copy and store its bearer token securely, as it will not be shown again.
Using your bearer token
Your bearer token should be included in the Authorization header of every request you make to the Baack API.
Example (cURL):
curl -X GET \
'https://api.baack.co/n/v1/companies' \
-H 'Authorization: Bearer YOUR_TOKEN_HERE'
Making your first API call
Once you have your bearer token, you're ready to make your first API call. We'll start with a simple GET request to retrieve a list of available companies.
Endpoint
GET https://api.baack.co/n/v1/companies
Request example
curl -X GET \
'https://api.baack.co/n/v1/companies' \
-H 'Authorization: Bearer YOUR_TOKEN_HERE'
Expected response (JSON)
{
"companies" : [ {
"urn" : "32a90f18-aaa0-4bdc-a63e-4efd2e16c28c",
"url" : "/n/v1/company/32a90f18-aaa0-4bdc-a63e-4efd2e16c28c",
"name" : "Example company name",
"owner" : {
"urn" : "7f8a5363-3a24-4ca1-a9a8-986bbbe7ee56",
"url" : "/n/v1/company/7f8a5363-3a24-4ca1-a9a8-986bbbe7ee56"
},
"organisation" : {
"urn" : "0225cc24-77fc-40fe-88dd-66f358a17d56",
"url" : "/n/v1/organisation/0225cc24-77fc-40fe-88dd-66f358a17d56"
}
} ]
}
Core capability functionality
The Baack APIs offer a wide range of capabilities to streamline your app development and power your products. This guide will briefly touch upon some key areas:
Identity management
- Create an identity: POST /n/v1/identity/
- Associate a name with a person: POST /n/v1/personname/
- Update an address: PUT /n/v1/address/{urn}
- Delete an identity: DELETE /n/v1/identity/{urn}
Company management
- Create a company: POST /n/v1/company/
- Get a company: GET /n/v1/company/{urn}
- Update a company: PUT /n/v1/company/{urn}
- Delete a company: DELETE /n/v1/company/{urn}
- Access your companies: GET /n/v1/companies
Next steps
- Explore the API reference: For detailed information on all available endpoints, request parameters, and response structures, refer to the Baack API reference.
- Review SDKs: available now in the TypeScript client and, for tasks, baack-ts-tasks. The tasks associated with an entity also show in the UI when you're editing it.
- Join the community: Coming soon.