Create demo business
Creates a new demo business in Layer. Demo businesses are used for testing and demonstration purposes. This endpoint is idempotent using the external_id field as the idempotency key, so subsequent requests with the same external_id will return the existing demo business if it’s not archived.
Rate Limiting
This endpoint has a custom rate limit policy. Rate Limit Details:| Environment | Limit | Refill Period | Initial Size |
|---|---|---|---|
| Sandbox | 10 requests | 1 second | 10 requests |
| Production | 10 requests | 1 second | 10 requests |
- X-RateLimit-Limit: The rate limit bucket capacity
- X-RateLimit-Remaining: The number of tokens remaining in the bucket
- X-RateLimit-Reset: UTC timestamp (in seconds) when the bucket will be refilled
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Content-Type must be set to application/json.
Body
Parameters for creating a new demo business. All fields are optional.
Unique ID of the demo business in your system for linking purposes. This field is optional and can be used as an idempotency key. If provided and a demo business with this external_id already exists, the existing business will be returned instead of creating a new one.
"demo-business-123"
Response
Demo business already exists with the provided external_id.