Quickstart
This guide will get you all set up and ready to use the GLAPI accounting dimensions API. Follow these steps to make your first API call.
Currently, we provide a test API key for development. In the future, you'll be able to generate your own API keys through the dashboard.
Get your API key
For development and testing, use this API key:
glapi_test_sk_1234567890abcdef
This test key provides full access to the development environment. Keep it secure and don't commit it to version control.
Make your first API call
Use the API key in the X-API-Key
header to authenticate your requests:
curl -X GET https://api.glapi.net/api/v1/customers \
-H "X-API-Key: glapi_test_sk_1234567890abcdef" \
-H "Content-Type: application/json"
Available endpoints
The GLAPI provides endpoints for managing accounting dimensions:
- Customers -
/api/v1/customers
- Vendors -
/api/v1/vendors
- Employees -
/api/v1/employees
- Departments -
/api/v1/departments
- Locations -
/api/v1/locations
- Classes -
/api/v1/classes
- Subsidiaries -
/api/v1/subsidiaries
Each endpoint supports standard CRUD operations (GET, POST, PUT, DELETE).
Create a customer
Let's create your first customer using the API:
curl -X POST https://api.glapi.net/api/v1/customers \
-H "X-API-Key: glapi_test_sk_1234567890abcdef" \
-H "Content-Type: application/json" \
-d '{
"name": "Acme Corporation",
"email": "contact@acme.com",
"phone": "555-0123",
"address": "123 Main St, Anytown, USA"
}'
Download Postman collection
We provide a Postman collection with all API endpoints pre-configured:
The collection includes:
- All GLAPI endpoints
- Pre-configured authentication
- Example requests for each operation
- Environment variables setup
Next steps
Now that you've made your first API call, explore these resources:
- Authentication guide - Learn about API authentication
- API Reference - Complete endpoint documentation
- Error handling - Understanding error responses
- Pagination - Working with large datasets
Remember: The test API key is for development only. When Clerk's API key feature is released, you'll be able to generate production keys from your dashboard.