API reference
Document endpoints, parameters, request examples, and responses with a consistent technical reference layout.
Endpoint
Use ApiEndpoint to introduce an operation. The method receives a semantic color and the path includes a copy control.
/v1/customersCreates a customer in the current workspace. This endpoint requires a server-side API token.
Supported methods are GET, POST, PUT, PATCH, and DELETE.
Parameters
Group related fields with ApiParameters. Each ApiParameter describes its name, type, location, requirement, default value, and purpose.
namestringbodyCustomer name shown in the dashboard and invoices.
emailstringbodyValid email address used for billing notifications.
localestringbodyoptionalLocale used to format customer-facing dates and currency.
en-USRequest example
Use the existing CodeGroup for language-specific requests. API Reference intentionally composes with the code system instead of introducing another request tab implementation.
curl https://api.example.com/v1/customers \
--request POST \
--header "Authorization: Bearer $API_TOKEN" \
--header "Content-Type: application/json" \
--data '{"name":"Ada Lovelace","email":"ada@example.com"}'Responses
Use ApiResponse to identify the status and place a regular syntax-highlighted block inside it.
Complete reference
A useful endpoint reference follows the same reading order every time: operation, authentication or constraints, parameters, request examples, then possible responses. Consistency matters more than placing every available detail above the fold.