Skip to content

Start an ephemeral demo session (no signup).

POST
/v1/demo/start
curl --request POST \
--url https://api.emite.cr/v1/demo/start

Public entry point of the «Probar demo» button. Creates a throwaway demo company with its owner and sample data (contacts, catalog items, a few accepted invoices), pinned to sandbox and on the top self-service plan of its ladder (Puma), and returns a session token scoped to it — also sent in the X-Session-Token header, which the web BFF turns into its session cookie. The company expires at expiresAt (2 hours by default) and is then deleted with all its data. A demo never reaches Hacienda — its documents are signed with a throwaway certificate and their acceptance is simulated — and no email or WhatsApp message leaves it. 429 DEMO_RATE_LIMITED past 3 starts in an hour from the same client IP; 503 DEMO_AT_CAPACITY while 200 demos are active (both limits are defaults).

Media typeapplication/json
object
accessToken
required

Session token (JWT) scoped to the new demo company, to send as Authorization: Bearer <token>. The same token travels in the X-Session-Token header.

string
tokenType
required

Always Bearer.

string
Allowed values: Bearer
expiresIn
required

Remaining life of this JWT, with an explicit unit. Never longer than the demo itself (expiresAt) nor than the platform session cap (SESSION_MAX_AGE).

string
expiresAt
required

When the demo company expires and is deleted with all its data (2 hours after it starts, by default). The token never outlives it.

string format: date-time
tenantId
required

Id of the created demo company.

string format: uuid
Example
{
"tokenType": "Bearer",
"expiresIn": "7200s",
"expiresAt": "2026-06-15T12:00:00.000Z"
}