API, webhooks and SDKs
- Base path
- /api/v1
- Contract
- OpenAPI 3.1.1
- Authentication
- A scoped OAuth client credential or an API key. Used from your server only.
- Event format
- CloudEvents 1.0, JSON. Delivered as signed webhooks.
- SDK languages
- TypeScript, .NET, Python
Documentation map
Each topic has its own page. Pick the row that matches your question.
You are about to send your first request and receive your first event.
REST APIYou need the rules that hold on every endpoint: pagination, Idempotency-Key, ETag and the error format.
WebhooksYou want to know how events are delivered and how the signature is verified.
Event catalogYou want to see which events arrive and which fields each one carries.
Error codes and idempotencyYou are looking up an error code or how to resend a request safely.
SDKsYou work in TypeScript, .NET or Python and want to see what the SDKs cover.
One request, three languages
A request that opens a support ticket is written with the same fields in TypeScript, C# and Python. Switch the language and the response stays the same.
import { BirAsistanClient } from '@birasistan/sdk';const client = new BirAsistanClient({ baseUrl: process.env.BIRASISTAN_API_URL!, credential: () => process.env.BIRASISTAN_API_KEY!,});// The key is derived from a durable job id in your app and kept across retries.const ticket = await client.tickets.create({ subject: 'Late order', description: 'The customer asked for a call back.', priority: 'high', departmentId: departmentId,}, { idempotencyKey: persistedRequestKey });var result = await client.Tickets.CreateAsync( new CreateTicketRequest( Subject: "Late order", Description: "The customer asked for a call back.", Priority: TicketPriority.High, DepartmentId: departmentId), new RequestOptions(IdempotencyKey: persistedRequestKey), cancellationToken);ticket = await client.tickets.create( subject="Late order", description="The customer asked for a call back.", priority="high", department_id=department_id, idempotency_key=persisted_request_key,){ "id": "44444444-4444-4444-8444-444444444444", "tenantId": "11111111-1111-4111-8111-111111111111", "subject": "Late order", "description": "The customer asked for a call back.", "priority": "high", "departmentId": "55555555-5555-4555-8555-555555555555"}The sample shows the SDK interface; details are on the SDK page. Identity and key values are synthetic, and the key stays on your server. On a timeout the request is sent again with the same Idempotency-Key.
Test environment
For the step-by-step setup, go to the quickstart.
- Base address
- You give the SDK client a base address. The samples show the switch to the test environment address explicitly.
- Credentials
- Test environment keys are separate from production keys.
- Data
- Sample data is synthetic. The identifiers, keys and phone numbers in the samples are not real.
Versioning and changes
Deprecation rules are on the REST API page.
- Path version
- The public API lives under /api/v1. The path version is visible in the address.
- SDK version
- SDKs follow SemVer. A breaking method change is a major release, a bug fix is a patch.
- Compatibility
- When the API major version changes, each SDK does not have to move to the same major version on the same day. A compatibility matrix is kept open.
- New fields
- An older SDK tolerates a field added to a response later. Unknown constant values are kept as a readable raw value.