Skip to content
Try the demo

API, webhooks and SDKs

You connect your own software to BirAsistan over a REST API and receive events as signed webhooks. This page shows where to start and which page holds which topic.
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

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 });
Response: 201, the created ticket
{  "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.