Buildadocs
⌘K
GuidesAPI ReferenceIntegrationsChangelog

REST API

All endpoints are prefixed with `/api/v1/`.

REST API

Endpoints Overview

All endpoints are prefixed with /api/v1/.

Products

MethodEndpointDescription
GET/productsList all products
GET/products/{id}Get a product
POST/productsCreate a product
PUT/products/{id}Update a product
DELETE/products/{id}Delete a product
GET/products/{id}/stepsGet product configuration steps

Components

MethodEndpointDescription
GET/componentsList all components
GET/components/{id}Get a component
POST/componentsCreate a component
PUT/components/{id}Update a component
DELETE/components/{id}Delete a component

Customisations

MethodEndpointDescription
GET/customisationsList all customisations
POST/customisationsCreate a customisation
PUT/customisations/{id}Update a customisation
DELETE/customisations/{id}Delete a customisation

Users

MethodEndpointDescription
GET/usersList users (admin)
POST/registerCreate a user
GET/profileGet current user profile

Typography

MethodEndpointDescription
GET/typographyList all typographies (paginated, filterable)
GET/typography/{id}Get a single typography with characters and character sets
POST/typographyCreate a typography (Custom Font or Web Font)
PATCH/typography/{id}Update a typography
DELETE/typography/{id}Delete a typography
DELETE/typography/mass-deleteDelete multiple typographies

Typography Characters

MethodEndpointDescription
GET/typography/{id}/characterList characters for a typography
GET/typography/{id}/character/{characterId}Get a single character
POST/typography/{id}/characterAdd characters (supports batch creation)
PATCH/typography/{id}/characterUpdate multiple characters
DELETE/typography/{id}/character/{characterId}Delete a character
DELETE/typography/{id}/character/mass-deleteDelete multiple characters

Typography Character Sets

MethodEndpointDescription
GET/typography/{id}/character-setList character sets for a typography
GET/typography/{id}/character-set/{setId}Get a single character set
POST/typography/{id}/character-setAdd character sets (supports batch creation)
PATCH/typography/{id}/character-setUpdate multiple character sets
DELETE/typography/{id}/character-set/{setId}Delete a character set
DELETE/typography/{id}/character-set/mass-deleteDelete multiple character sets

Sync

MethodEndpointDescription
POST/sync/productsTrigger product sync
GET/sync/statusGet sync status

Filtering & Sorting

Builda uses Spatie Query Builder conventions:

GET /api/v1/products?filter[name]=watch&sort=-created_at&include=steps
ParameterExampleDescription
filter[field]filter[name]=watchFilter by field value
sortsort=-created_atSort (prefix - for descending)
includeinclude=steps,componentsEager load relations

Pagination

List endpoints return paginated results:

{
  "data": [...],
  "meta": {
    "current_page": 1,
    "last_page": 5,
    "per_page": 15,
    "total": 72
  }
}

Use ?page=2&per_page=25 to control pagination.