Public API
Overview
The autoGMS Public API gives integration partners programmatic access to your garage data. Use it to connect diagnostics tools, fleet management platforms, custom dashboards, parts catalogs, and mobile apps to your autoGMS account.
Key features:
- Read access to bookings, customers, vehicles, technicians, services, inventory, invoices, estimates, purchase orders, and bays
- Write access to customers, vehicles, bookings, inventory, estimates, and webhooks (invoices, purchase orders, technicians, services, and bays are read only)
- Webhooks -- receive real-time notifications when events happen in your garage
- API key authentication with per-key rate limiting and permission levels
- Garage-scoped -- every request is scoped to a specific garage
- Safe retries -- send an
Idempotency-Keyheader so a retried create never runs twice - Audit logging -- all API activity is logged and shown on the API Access page
- Multi-garage support -- a single key can cover one, several, or all garages in your organisation
Prerequisites
API access is a paid add-on feature. Your organisation must have API Access enabled. If the feature is not enabled, the API Access page in the dashboard will show a notice with instructions to contact support.
Once enabled, the organisation owner and garage owners can create and manage API keys directly from the dashboard -- no need to contact support for key operations. Garage owners manage keys only for their own garages.
Getting Started
Step 1: Create an API Key
- In the dashboard sidebar, navigate to your organisation and click API Access.
- Click Create key in the top-right corner.
- Enter a descriptive name for the key (e.g., "Production backend", "Fleet dashboard", "Staging testing").
- Choose a permission level:
- Read only -- can only access GET endpoints; suitable for dashboards, reporting, and read-only integrations.
- Read & Write -- full access to all endpoints including creating and modifying data.
- Click Create.
- The full API key is displayed once. Copy it immediately and store it securely -- it cannot be retrieved again after this dialog is closed.
A key created by the organisation owner covers every garage in the organisation. A key created by a garage owner covers only that owner's garages.
Your organisation has a maximum number of active keys (shown at the top of the page). The Create button is disabled when you reach the limit.
Step 2: Make Your First Request
Use your API key in the X-API-Key header:
GET https://api.myautogms.com/api/v1/garages
X-API-Key: agms_pk_live_your_key_here
This returns a list of all garages your key has access to.
Step 3: Access Garage Data
All data endpoints require a garage ID in the URL:
GET https://api.myautogms.com/api/v1/garages/{garageId}/bookings
X-API-Key: agms_pk_live_your_key_here
Available Data
The API provides read and write access to all major areas of your garage:
| Resource | Read | Write |
|---|---|---|
| Garages | Location details, contact info | -- |
| Customers | Profiles, booking history, vehicles | Create, update customers and vehicles |
| Vehicles | Vehicle details, VIN decoding | Create, update, delete vehicles |
| Bookings | All bookings with status, technicians, parts, stages | Create, update, change status, delete, assign technicians and parts |
| Booking Stages | Job stages with assigned technicians | Create, update, change status, delete stages |
| Technicians | Team list, performance stats, assigned work | -- |
| Services | Service catalog with pricing | -- |
| Inventory | Stock levels, low-stock alerts, barcode lookup | Create items, update details, adjust stock |
| Invoices | Invoice details, payment status | -- |
| Estimates | Estimate details, approval status, line items | Create, update, send estimates |
| Purchase Orders | PO details, procurement statistics | -- |
| Bays | Bay availability and current assignments | -- |
| Webhooks | List subscriptions, delivery history | Create, update, delete, test webhooks |
Note: Write operations require a
Read & WriteAPI key. Read-only keys can only access GET endpoints.
Common Use Cases
Diagnostics Integration
Connect your diagnostics equipment to look up vehicles and create bookings:
GET /api/v1/garages/{garageId}/vehicles/vin-lookup?vin=JTMHY7AJ5E4012345
POST /api/v1/garages/{garageId}/bookings
Fleet Management Dashboard
Monitor all active jobs, technician workloads, and bay availability:
GET /api/v1/garages/{garageId}/bookings/counts
GET /api/v1/garages/{garageId}/technicians
GET /api/v1/garages/{garageId}/bays
Parts Catalog Integration
Check inventory levels, adjust stock, and get low-stock alerts:
GET /api/v1/garages/{garageId}/inventory?lowStock=true
GET /api/v1/garages/{garageId}/inventory/barcode/6291041500123
POST /api/v1/garages/{garageId}/inventory/{itemId}/adjust
Booking Automation
Create bookings, assign technicians, and manage job stages programmatically:
POST /api/v1/garages/{garageId}/bookings
POST /api/v1/garages/{garageId}/bookings/{bookingId}/status
POST /api/v1/garages/{garageId}/bookings/{bookingId}/technician
POST /api/v1/garages/{garageId}/bookings/{bookingId}/stages
Real-Time Notifications (Webhooks)
Receive instant notifications when events happen in your garage:
POST /api/v1/garages/{garageId}/webhooks
Subscribe to events like booking.completed, inventory.low_stock, invoice.paid, and more. autoGMS sends an HTTP POST to your URL whenever the event occurs. See Webhook Events and Delivery for the payload, signature, and retry rules.
WhatsApp API
autoGMS does not expose a separate WhatsApp API for sending your own WhatsApp messages. For supported garage workflows, autoGMS prepares WhatsApp messages in the dashboard, such as invoices, estimates, purchase orders, MOT reminders, inspections, and service reminders. In most cases you review the prepared message and send it through WhatsApp.
Use the Public API for garage data, bookings, customers, vehicles, inventory, invoices, estimates, purchase orders, and webhooks. If you need a custom WhatsApp integration or direct WhatsApp automation, contact support with the workflow, expected message volume, and whether the messages are transactional or marketing.
Custom Reporting
Pull financial data for external reporting tools:
GET /api/v1/garages/{garageId}/invoices?status=paid&dateFrom=2026-01-01
GET /api/v1/garages/{garageId}/purchase-orders/stats
Fleet Calendar Sync (Recommended Pattern)
For integrations like AssetMinder, use this pattern to avoid scheduling overlaps:
- Read first:
GET /api/v1/garages/{garageId}/bookingsGET /api/v1/garages/{garageId}/bookings/countsGET /api/v1/garages/{garageId}/bays
- Build/refresh external calendar slots from active booking states.
- Optional write-back booking creation with
POST /bookings, sent with anIdempotency-Key. - Place the booking in a time slot with
PATCH /bookings/{bookingId}/schedulewhen the garage uses time slots. - Handle booking guardrails:
GARAGE_CLOSED(409) -- selected date is closed.DATE_AT_CAPACITY(409) -- daily capacity reached.ACTIVE_JOB_EXISTS(409) -- same vehicle already has an active job.
- Use webhooks to keep external calendars near real-time, then reconcile with periodic polling.
API Response Format
All responses use a consistent JSON format.
Successful response:
{
"success": true,
"data": { ... }
}
List response with pagination:
{
"success": true,
"data": [ ... ],
"pagination": {
"page": 1,
"limit": 20,
"total": 156,
"totalPages": 8,
"hasMore": true
}
}
Error response:
{
"success": false,
"error": {
"type": "NotFoundError",
"message": "Booking not found",
"code": "RESOURCE_NOT_FOUND"
}
}
Error Codes
| Code | Status | When |
|---|---|---|
INVALID_API_KEY | 401 | The X-API-Key header is missing or wrong |
API_KEY_REVOKED / API_KEY_EXPIRED | 401 | The key was revoked or has expired |
API_ACCESS_DISABLED | 401 | API access is not enabled for the organisation |
WRITE_NOT_ALLOWED | 403 | A read-only key called a write endpoint |
GARAGE_NOT_IN_SCOPE | 403 | The key does not cover this garage |
GARAGE_NOT_FOUND / RESOURCE_NOT_FOUND | 404 | The garage or record does not exist |
VALIDATION_FAILED | 400 | A required field, a field value, or a filter value is invalid |
DUPLICATE_RESOURCE | 409 | A customer with this phone or email already exists in the garage |
GARAGE_CLOSED | 409 | The booking date is a closed day |
DATE_AT_CAPACITY | 409 | The booking date is fully booked |
ACTIVE_JOB_EXISTS | 409 | The vehicle already has an active job |
STATUS_TRANSITION_BLOCKED | 422 / 409 | A booking cannot move to the requested status yet (422; error.details lists what blocks it), or an estimate is locked by its workflow state (409) |
PART_NOT_ASSIGNED | 422 | Usage was sent for a part that is not assigned to the booking |
PART_USAGE_ALREADY_CONFIRMED | 409 | Usage for this part is already confirmed |
INVENTORY_USAGE_FAILED | 422 | The usage could not be saved; list the booking's parts and try again |
IDEMPOTENCY_KEY_REUSED | 422 | The Idempotency-Key was already used for a different request |
IDEMPOTENCY_IN_PROGRESS | 409 | A request with the same Idempotency-Key is still running |
RATE_LIMIT_EXCEEDED | 429 | The key sent too many requests |
INTERNAL_ERROR | 500 | Something failed on our side; retry later |
What blocks a booking from completing
POST /bookings/{bookingId}/status with completed returns 422 STATUS_TRANSITION_BLOCKED while a garage requirement is open. Each entry in error.details has a code and a message.
| Blocker code | What is missing |
|---|---|
PARTS_ASSIGNMENT_REQUIRED | The garage requires at least one part on the booking. Assign one with POST /bookings/{bookingId}/inventory |
PENDING_INVENTORY | An assigned part has no confirmed usage. Confirm it with POST /bookings/{bookingId}/inventory/usage |
RECEIPT_INSPECTION_REQUIRED | The receipt inspection is not complete |
PRE_INSPECTION_REQUIRED | The pre-inspection is not complete |
VEHICLE_PHOTOS_REQUIRED | The vehicle photos are missing |
PRE_INSPECTION_CHECKLIST_REQUIRED | The pre-inspection checklist is not complete |
QUALITY_CHECK_REQUIRED | The quality check is not complete |
OPEN_STAGES_BLOCK_COMPLETION | A project booking still has open stages |
Booking Time Slots
POST /bookings and PATCH /bookings/{bookingId} set the booking date only. They ignore a timeslot field.
To place a booking in a time slot, call PATCH /garages/{garageId}/bookings/{bookingId}/schedule. The garage must have time slots turned on, and the booking must still be active.
{
"date": "2026-03-04",
"timeslot": "09:00",
"expectedCompletionTime": "11:00",
"source": "calendar_assign"
}
dateusesYYYY-MM-DD.timeslotandexpectedCompletionTimeuseHH:MM.sourceis required:calendar_assignfor a first placement,calendar_moveto move a booking, orcalendar_resizeto change its length.- Errors include
INVALID_SCHEDULE_SOURCE,INVALID_SCHEDULE_DATE,INVALID_TIMESLOT,INVALID_EXPECTED_COMPLETION_TIME,INVALID_SCHEDULE_DURATION(400),TIMESLOTS_DISABLED, andBOOKING_NOT_EDITABLE(409).
To change only the promised completion time, call PATCH /garages/{garageId}/bookings/{bookingId}/intake/expected-completion with expectedCompletionAt (an ISO date-time) and a reason. autoGMS keeps each change in the booking's history.
Safe Retries (Idempotency-Key)
Network errors can leave you unsure whether a create went through. Add an Idempotency-Key header to any POST request, using a unique value such as a UUID, and retry with the same value.
POST https://api.myautogms.com/api/v1/garages/{garageId}/customers
X-API-Key: agms_pk_live_your_key_here
Idempotency-Key: 6f1c2a9e-4b7d-4f0e-9a51-2c8d7e3b1f40
- Same key, same request: autoGMS returns the first response again and adds the header
Idempotent-Replayed: true. Nothing is created twice. - Same key, different body or path:
422 IDEMPOTENCY_KEY_REUSED. - Same key while the first request is still running:
409 IDEMPOTENCY_IN_PROGRESS. Wait a moment and retry. If the first request was interrupted, the key stays held for up to 24 hours, because the record may already exist. Check for it, then use a new key. - Keys are tied to your API key, can be up to 255 characters, and are kept for 24 hours.
- autoGMS stores the first response for a key, including client errors (
4xx) and server errors (5xx), and returns it for every retry. After you fix a rejected request, send it with a new key. - A
5xxcan arrive after the record was saved. Before you send the request again with a new key, check that the first attempt did not create the record, for example by searching for it. 429responses are not stored, so you can retry them with the same key.- Requests without the header are not affected.
Pagination and Filtering
Pagination
These list endpoints support pagination: bookings, customers, customer bookings, vehicles, technician bookings, inventory, invoices, estimates, purchase orders, and webhook deliveries.
| Parameter | Default | Max | Description |
|---|---|---|---|
page | 1 | -- | Page number |
limit | 20 | 100 | Items per page |
Example: GET /api/v1/garages/{garageId}/bookings?page=2&limit=50
Sorting
Bookings, customers, customer bookings, inventory, invoices, estimates, and purchase orders accept a sort parameter. Prefix the field with - for descending order:
sort=-dateon bookings -- newest booking date first (the default)sort=-createdAton invoices, estimates, and purchase orders -- newest first (the default)sort=nameon inventory -- alphabetical (the default)
Date Filtering
These endpoints accept dateFrom and dateTo:
| Endpoint | Filters on |
|---|---|
GET /garages/{gid}/bookings | Booking date |
GET /garages/{gid}/invoices | Created date |
GET /garages/{gid}/estimates | Created date |
GET /garages/{gid}/purchase-orders | Created date |
GET /garages/{gid}/webhooks/{wid}/deliveries | Delivery date |
GET /garages/{gid}/technicians/{tid}/stats | Booking date |
GET /garages/{gid}/inventory/stats | Stock movement date |
dateFrom=2026-01-01-- records from this date onwardsdateTo=2026-01-31-- records up to this date
Rate Limiting
Each API key has a request limit per minute based on its tier:
| Tier | Requests per Minute |
|---|---|
| Standard | 60 |
| Premium | 300 |
| Enterprise | 1,000 |
Every response includes rate limit headers:
RateLimit-Limit: 60
RateLimit-Remaining: 42
RateLimit-Reset: 1706000000
If you exceed the limit, you will receive a 429 Too Many Requests response. Wait until the Retry-After period expires before making more requests.
Managing API Keys
API keys are managed from the API Access page in your organisation dashboard. The organisation owner can manage every key. A garage owner sees and manages only keys that cover their own garages.
API Access Dashboard
The API Access page shows:
- Stats overview -- four summary cards displaying total requests (30 days), error rate, average latency (with p50/p95/p99 percentiles when available), and total data transferred.
- Keys table -- lists all keys (active and revoked) with per-key metrics:
| Column | What it shows |
|---|---|
| Name | Key name and masked prefix |
| Permission | Read only or Read & Write |
| Requests (30d) | Request count for the last 30 days, with HTTP method breakdown |
| Lifetime | Total all-time request count |
| Errors (30d) | Error count with spike detection (flags if 24-hour error rate is double the 30-day rate) |
| Latency | Average response time |
| Data | Total data transferred |
| Activity | First and last request dates |
| Status | Active or Revoked |
Key Actions
Each active key has three actions in the table:
- View usage -- opens a detailed daily usage breakdown and per-endpoint statistics for that specific key.
- Rotate -- generates a new key and invalidates the old one. The new key is shown once -- copy it immediately. Use this if a key may have been compromised.
- Revoke -- permanently disables the key. Revoked keys remain visible in the table (greyed out) for audit purposes but can no longer be used for API requests.
Rotation and revocation are permanent and cannot be undone.
Analytics Cards
Below the keys table, the page shows additional analytics when data is available:
- Method breakdown -- a visual bar showing request distribution across HTTP methods (GET, POST, PUT, PATCH, DELETE)
- Top endpoints (30d) -- the most-called API paths with request counts, error counts, and average latency
- Recent errors (7d) -- error patterns with status codes, error codes, occurrence counts, and sample paths
- Requests by hour (30d) -- a histogram showing request distribution across hours of the day (UTC)
- Response size distribution -- how response payload sizes are distributed
- Top user agents (30d) -- which client libraries or tools are calling the API
- Top IPs (30d) -- which IP addresses generate the most traffic
- Usage by garage -- request distribution per garage with error rates and latency
Complete Endpoint Reference
All endpoints are prefixed with /api/v1. Resource endpoints use /garages/{garageId}/.
Garages
| Endpoint | Description |
|---|---|
GET /garages | List all garages accessible to this key |
GET /garages/{garageId} | Get garage details |
Customers
| Endpoint | Description |
|---|---|
GET /garages/{gid}/customers | List garage customers |
GET /garages/{gid}/customers/search?q=ahmed | Search by name, email, or phone |
POST /garages/{gid}/customers | Create a customer |
PATCH /garages/{gid}/customers/{cid} | Update a customer |
GET /garages/{gid}/customers/{cid} | Get customer with booking stats |
GET /garages/{gid}/customers/{cid}/vehicles | List customer vehicles |
POST /garages/{gid}/customers/{cid}/vehicles | Add a vehicle to a customer |
GET /garages/{gid}/customers/{cid}/bookings | List customer bookings |
Vehicle order: Customer-scoped vehicle results are limited to the garage in the request. The default vehicle is returned first. Remaining vehicles are ordered by most recently updated, then newest created.
GET /garages/{gid}/vehicleswithoutcustomerIdremains ordered by newest created.
Vehicles
| Endpoint | Description |
|---|---|
GET /garages/{gid}/vehicles | List all vehicles |
POST /garages/{gid}/vehicles | Create a vehicle |
PATCH /garages/{gid}/vehicles/{vid} | Update a vehicle |
DELETE /garages/{gid}/vehicles/{vid} | Delete a vehicle |
GET /garages/{gid}/vehicles/{vid} | Get vehicle details |
GET /garages/{gid}/vehicles/vin-lookup?vin=... | Decode a VIN |
Bookings
| Endpoint | Description |
|---|---|
GET /garages/{gid}/bookings | List bookings (filter by status, date, customer, technician) |
POST /garages/{gid}/bookings | Create a booking |
GET /garages/{gid}/bookings/counts | Get counts by status |
GET /garages/{gid}/bookings/{bid} | Get full booking detail |
PATCH /garages/{gid}/bookings/{bid} | Update a booking (date, not time slot) |
PATCH /garages/{gid}/bookings/{bid}/schedule | Place or move a booking in a time slot |
PATCH /garages/{gid}/bookings/{bid}/intake/expected-completion | Change the promised completion time |
DELETE /garages/{gid}/bookings/{bid} | Permanently delete an untouched pending booking with no work, communication, integration, or financial history |
POST /garages/{gid}/bookings/{bid}/status | Change booking status |
POST /garages/{gid}/bookings/{bid}/technician | Assign a technician |
GET /garages/{gid}/bookings/{bid}/inventory | List assigned parts |
POST /garages/{gid}/bookings/{bid}/inventory | Assign parts to a booking |
POST /garages/{gid}/bookings/{bid}/inventory/usage | Confirm how many of each assigned part the job used |
GET /garages/{gid}/bookings/{bid}/parts | List assigned parts (alias) |
GET /garages/{gid}/bookings/{bid}/attachments | List attachments |
GET /garages/{gid}/bookings/{bid}/stages | List project stages |
POST /garages/{gid}/bookings/{bid}/stages | Create a stage |
PATCH /garages/{gid}/bookings/{bid}/stages/{sid} | Update a stage |
POST /garages/{gid}/bookings/{bid}/stages/{sid}/status | Change stage status |
DELETE /garages/{gid}/bookings/{bid}/stages/{sid} | Delete a stage |
Stage lifecycle values commonly used by project workflows are:
draftopenin_progresscompletedinvoicedclosed
Confirm part usage
A booking with assigned parts cannot be completed until the usage of each part is confirmed. Call POST /garages/{garageId}/bookings/{bookingId}/inventory/usage with how many of each assigned part the job used:
{
"items": [
{ "inventoryItemId": "65f0c2a1b2c3d4e5f6a7b8c9", "quantityUsed": 1 }
]
}
quantityUsedis a number from 0 to the quantity assigned. Unused parts go back into stock.- Each part can be confirmed once. A second call for the same part returns
409 PART_USAGE_ALREADY_CONFIRMED. - The response lists the confirmed parts in the same shape as
GET /bookings/{bookingId}/inventory.
Technicians
| Endpoint | Description |
|---|---|
GET /garages/{gid}/technicians | List technicians |
GET /garages/{gid}/technicians/{tid}/stats | Performance statistics |
GET /garages/{gid}/technicians/{tid}/bookings | Assigned bookings |
Services
| Endpoint | Description |
|---|---|
GET /garages/{gid}/services | Service catalog |
GET /garages/{gid}/services/{sid} | Service details |
GET /garages/{gid}/services/{sid}/prices | Pricing by vehicle type |
Inventory
| Endpoint | Description |
|---|---|
GET /garages/{gid}/inventory | List items |
POST /garages/{gid}/inventory | Create an inventory item |
GET /garages/{gid}/inventory/{iid} | Get item |
PATCH /garages/{gid}/inventory/{iid} | Update an item |
POST /garages/{gid}/inventory/{iid}/adjust | Adjust stock (add or subtract) |
GET /garages/{gid}/inventory/low-stock | Items below threshold |
GET /garages/{gid}/inventory/categories | Categories with counts |
GET /garages/{gid}/inventory/stats | Inventory statistics |
GET /garages/{gid}/inventory/barcode/{code} | Barcode lookup |
Invoices
| Endpoint | Description |
|---|---|
GET /garages/{gid}/invoices | List invoices |
GET /garages/{gid}/invoices/{iid} | Get invoice detail |
Estimates
| Endpoint | Description |
|---|---|
GET /garages/{gid}/estimates | List estimates |
POST /garages/{gid}/estimates | Create an estimate |
GET /garages/{gid}/estimates/{eid} | Get estimate detail |
PATCH /garages/{gid}/estimates/{eid} | Update an estimate |
POST /garages/{gid}/estimates/{eid}/send | Send an estimate to the customer. The response and the estimate.sent webhook include shareUrl (the customer's link) and shareToken (the last part of that link) |
Estimate updates, conflicts, and expectedVersion
Public API clients that update estimates should read the estimate first, then send its latest integer expectedVersion with every PATCH. This is the edit token and is separate from the customer-visible estimate revision version. Existing v1 clients may omit it during the migration period, but those requests cannot detect edits made before the request began. A 409 ESTIMATE_EDIT_CONFLICT response means the estimate changed; fetch it again and compare the changes before retrying. A current token does not bypass workflow locks: sent, approved, and superseded estimates return 409 STATUS_TRANSITION_BLOCKED.
Records created through the API
Customers and bookings you create through the API are saved with source: "api", and the API returns that value. In the dashboard, these bookings are labelled API and customer reports count these customers under the API source, so the garage can tell them apart from records its staff created.
An estimate you create or send through the API names your key as its creator. In the estimate detail, createdBy and sentBy return { "id", "name": "API: <key name>", "type": "api_key" }. Staff-made estimates return "type": "user".
Purchase Orders
| Endpoint | Description |
|---|---|
GET /garages/{gid}/purchase-orders | List purchase orders |
GET /garages/{gid}/purchase-orders/{pid} | Get PO detail |
GET /garages/{gid}/purchase-orders/stats | Procurement statistics |
Bays
| Endpoint | Description |
|---|---|
GET /garages/{gid}/bays | List bays with current status |
Webhooks
| Endpoint | Description |
|---|---|
GET /garages/{gid}/webhooks | List your webhook subscriptions |
POST /garages/{gid}/webhooks | Create a webhook subscription |
PATCH /garages/{gid}/webhooks/{wid} | Update a webhook |
DELETE /garages/{gid}/webhooks/{wid} | Delete a webhook |
POST /garages/{gid}/webhooks/{wid}/test | Send a test event |
GET /garages/{gid}/webhooks/{wid}/deliveries | View delivery history |
Webhook Events and Delivery
A webhook subscription sends an HTTP POST to your URL when an event happens in its garage. Events fire for changes made anywhere in autoGMS: the dashboard, the booking page, the customer portal, payments, and the API.
Events
| Event | When |
|---|---|
customer.created | A customer is added |
booking.created | A booking is created |
booking.updated | A booking's details or schedule change |
booking.status_changed | A booking moves to a new status |
booking.completed | A booking is completed |
technician.assigned | A technician is assigned to a booking |
estimate.created | An estimate is created |
estimate.sent | An estimate is sent to the customer |
estimate.approved | The customer approves an estimate |
estimate.declined | The customer declines an estimate |
inventory.low_stock | An item drops below its minimum stock |
invoice.created | An invoice is created |
invoice.paid | An invoice is fully paid |
Subscription rules
- The URL must use HTTPS and point to a public address. autoGMS rejects private and internal addresses and does not follow redirects.
POST /webhooksreturns the subscriptionsecretonce. Store it to verify signatures.- A subscription stops when the API key that created it is revoked, or when API access ends for the organisation.
Payload
{
"event": "booking.completed",
"timestamp": "2026-03-04T10:15:00.000Z",
"garageId": "65f0c2a1b2c3d4e5f6a7b8c9",
"data": { ... }
}
Each request carries these headers:
| Header | Value |
|---|---|
X-Webhook-Signature | Hex HMAC-SHA256 of the raw request body, signed with the subscription secret |
X-Webhook-Event | The event name |
X-Webhook-Delivery | The delivery ID. Use it to ignore duplicates |
POST /webhooks/{wid}/test sends the event webhook.test with X-Webhook-Delivery: test.
Verify the signature
Compute the HMAC over the raw body before you parse it:
const crypto = require('crypto');
function isValidWebhook(rawBody, signatureHeader, secret) {
const expected = crypto.createHmac('sha256', secret).update(rawBody).digest('hex');
const received = Buffer.from(signatureHeader || '', 'hex');
return received.length === expected.length / 2
&& crypto.timingSafeEqual(received, Buffer.from(expected, 'hex'));
}
Retries
Reply with any 2xx status within 10 seconds. If delivery fails, autoGMS tries again: immediately, then after 1 minute, 5 minutes, and 30 minutes. It stops after 4 attempts. Delivery history shows each delivery, its status, and how many attempts it took.
Coming Soon
- OAuth 2.0 -- Third-party authentication for marketplace integrations
Need More Help?
- Enable API access: Email support@myautogms.com to add the API Access add-on to your subscription
- Key management: Use the API Access page in your dashboard to create, rotate, and revoke keys
- General support: Email support@myautogms.com
- Integration scope and technical design review: Email support@myautogms.com and include:
- target garage(s)
- required permissions (
readorread_write) - expected sync direction (pull-only vs push + pull)
- expected volume (requests/minute, bookings/day)
Quick Reference
Base URL: https://api.myautogms.com
| I want to... | Endpoint / Action |
|---|---|
| Get API credentials | API Access page → Create key |
| Authenticate | X-API-Key: agms_pk_live_your_key_here header |
| Retry a create safely | Idempotency-Key: <unique value> header |
| List my garages | GET /api/v1/garages |
| List bookings | GET /api/v1/garages/{garageId}/bookings |
| Create a booking | POST /api/v1/garages/{garageId}/bookings |
| Get booking details | GET /api/v1/garages/{garageId}/bookings/{bookingId} |
| Update a booking | PATCH /api/v1/garages/{garageId}/bookings/{bookingId} |
| Put a booking in a time slot | PATCH /api/v1/garages/{garageId}/bookings/{bookingId}/schedule |
| List customers | GET /api/v1/garages/{garageId}/customers |
| Create a customer | POST /api/v1/garages/{garageId}/customers |
| List services | GET /api/v1/garages/{garageId}/services |
| List invoices | GET /api/v1/garages/{garageId}/invoices |
| Check bay availability | GET /api/v1/garages/{garageId}/bays |
| Subscribe to events | POST /api/v1/garages/{garageId}/webhooks |
| View API docs | API Access page → Docs |