Linked apps for Vault and TT
Hand-off, board meetings, instant calls and events for Lavisho partner apps.
1. Credentials
An organisation admin creates a linked app in Admin → Integrations → Linked apps and receives, once: client_id (lvc_…), the signing secret (lvs_…) and an API key (miq_…).
Base URL https://meetiq.xyz/api/public/v1. Header Authorization: Bearer $MEETIQ_API_KEY. Errors: {
"error": {
"code": 400,
"message": "Invalid input"
}
}. Limit 600 requests/min per key (429 + Retry-After).
2. Signed hand-off: https://meetiq.xyz/connect?token=…
HS256 JWT signed with your signing secret, lifetime 60 seconds, single-use jti. Members (or auto-provisioned plain members) are signed in and taken to the meeting; others get a meeting-scoped pass. Board meetings still require MFA. role is a hint and never grants more than member.
Claims
{
"client_id": "lvc_3f9c…",
"email": "director@lavisho.com",
"name": "Nadia Islam",
"external_user_id": "v-23",
"role": "director",
"target": {
"kind": "meeting",
"id": "5b0c7c4e-2f7a-4c55-9d1e-0a7f3f1b9c21"
},
"jti": "b7e0c2d4-1f3a-4c8e-9a61-5d2f7e8b0c13",
"iat": 1793208600,
"exp": 1793208660
}TypeScript (Deno / Node 18+): sign and redirect
// Deno or Node 18+ (Web Crypto). No dependencies.
const b64url = (b: ArrayBuffer | Uint8Array | string) =>
btoa(typeof b === 'string' ? b : String.fromCharCode(...new Uint8Array(b as ArrayBuffer)))
.replace(/=+$/, '').replace(/\+/g, '-').replace(/\//g, '_');
export async function signHandoff(secret: string, clientId: string, user: {
email: string; name: string; externalUserId: string; role?: string;
}, target: { kind: 'meeting' | 'call'; id: string }) {
const now = Math.floor(Date.now() / 1000);
const header = b64url(JSON.stringify({ alg: 'HS256', typ: 'JWT' }));
const payload = b64url(JSON.stringify({
client_id: clientId, email: user.email, name: user.name,
external_user_id: user.externalUserId, role: user.role, target,
jti: crypto.randomUUID(), iat: now, exp: now + 60,
}));
const key = await crypto.subtle.importKey('raw', new TextEncoder().encode(secret),
{ name: 'HMAC', hash: 'SHA-256' }, false, ['sign']);
const sig = await crypto.subtle.sign('HMAC', key, new TextEncoder().encode(`${header}.${payload}`));
return `${header}.${payload}.${b64url(sig)}`;
}
// Redirect the signed-in user (never pre-generate; the token lives 60s):
const token = await signHandoff(Deno.env.get('MEETIQ_SIGNING_SECRET')!, 'lvc_…',
{ email: 'director@lavisho.com', name: 'Nadia Islam', externalUserId: 'v-23', role: 'director' },
{ kind: 'meeting', id: '5b0c7c4e-2f7a-4c55-9d1e-0a7f3f1b9c21' });
return Response.redirect(`https://meetiq.xyz/connect?token=${token}`, 302);| HTTP | Message | Meaning |
|---|---|---|
| 400 | Token has no client_id | Payload is missing client_id or is not a JWT. |
| 401 | Unknown or revoked linked app | client_id not found or the linked app was revoked. |
| 401 | Invalid token signature | HS256 signature does not match the signing secret. |
| 401 | Invalid token | Header is not HS256/JWT, or claims fail validation. |
| 401 | Token client mismatch | Signed by one app but claims another client_id. |
| 401 | Token expired | exp is in the past. |
| 401 | Token lifetime invalid | exp - iat exceeds 120s or iat is in the future. |
| 401 | Token already used | The jti has been redeemed before (one-time use). |
| 403 | Membership is not active | The email belongs to a disabled member of the organisation. |
| 404 | Meeting not found / Call not found | Target does not exist in the linked app organisation. |
| 410 | Meeting has ended | Target meeting is ended or cancelled. |
| 429 | Too many attempts | 30 hand-offs per IP per 10 minutes. |
| 503 | Could not start session | Temporary failure; mint a fresh token and retry. |
3. Vault: board meetings (scope board:write)
POST is idempotent on external_ref (returns "deduplicated": true). Papers stay in Vault; external_pack_url shows an "Open board pack in Vault" button. agenda replaces the agenda; attendees adds missing attendees.
POST /board-meetings
curl -X POST "https://meetiq.xyz/api/public/v1/board-meetings" \
-H "Authorization: Bearer $MEETIQ_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"title": "Q4 Board Meeting",
"description": "Quarterly review",
"scheduled_at": "2026-11-12T04:00:00Z",
"timezone": "Asia/Dhaka",
"external_ref": "vault-mtg-1042",
"external_pack_url": "https://vault.lavisho.com/meetings/1042/pack",
"agenda": [
"Approve previous minutes",
"Q3 financials",
"AOB"
],
"attendees": [
{
"email": "chair@lavisho.com",
"name": "Rahim Chowdhury",
"external_user_id": "v-17"
},
{
"email": "director@lavisho.com",
"name": "Nadia Islam",
"external_user_id": "v-23"
}
]
}'200 response
{
"data": {
"id": "5b0c7c4e-2f7a-4c55-9d1e-0a7f3f1b9c21",
"title": "Q4 Board Meeting",
"type": "board_meeting",
"status": "scheduled",
"scheduled_at": "2026-11-12T04:00:00+00:00",
"timezone": "Asia/Dhaka",
"external_ref": "vault-mtg-1042",
"external_pack_url": "https://vault.lavisho.com/meetings/1042/pack",
"join_url": "https://meetiq.xyz/meetings/5b0c7c4e-2f7a-4c55-9d1e-0a7f3f1b9c21"
}
}PATCH /board-meetings/{id}
curl -X PATCH "https://meetiq.xyz/api/public/v1/board-meetings/<id>" \
-H "Authorization: Bearer $MEETIQ_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"scheduled_at": "2026-11-13T04:00:00Z",
"agenda": [
"Approve previous minutes",
"Q3 financials",
"Dividend proposal",
"AOB"
]
}'POST /board-meetings/{id}/cancel
curl -X POST "https://meetiq.xyz/api/public/v1/board-meetings/<id>/cancel" \
-H "Authorization: Bearer $MEETIQ_API_KEY"
{
"data": {
"id": "5b0c7c4e-2f7a-4c55-9d1e-0a7f3f1b9c21",
"status": "cancelled"
}
}4. TT: instant calls (scopes calls:write, calls:read)
The caller must be an active member. Each invitee gets a personal join URL. Rings 45 seconds, then becomes missed. States: ringing → answered | declined | missed → ended, or cancelled.
POST /calls
curl -X POST "https://meetiq.xyz/api/public/v1/calls" \
-H "Authorization: Bearer $MEETIQ_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"caller": {
"email": "ops@lavisho.com",
"name": "Karim Ahmed",
"external_user_id": "tt-5"
},
"invitees": [
{
"email": "sales@lavisho.com",
"name": "Tania Akter",
"external_user_id": "tt-9"
}
],
"external_ref": "tt-call-88213"
}'200 response
{
"data": {
"id": "9e2d1a64-7b3f-4e0a-8c55-3d6f2b1a7e90",
"status": "ringing",
"external_ref": "tt-call-88213",
"caller_email": "ops@lavisho.com",
"caller_name": "Karim Ahmed",
"ring_expires_at": "2026-10-28T17:30:45Z",
"answered_at": null,
"ended_at": null,
"created_at": "2026-10-28T17:30:00Z",
"meeting_id": "5b0c7c4e-2f7a-4c55-9d1e-0a7f3f1b9c21",
"invitees": [
{
"email": "sales@lavisho.com",
"external_user_id": "tt-9",
"status": "ringing",
"responded_at": null
}
],
"join_urls": [
{
"email": "sales@lavisho.com",
"external_user_id": "tt-9",
"join_url": "https://meetiq.xyz/g/<one-time-pass>"
}
],
"caller_join_url": "https://meetiq.xyz/meetings/5b0c7c4e-2f7a-4c55-9d1e-0a7f3f1b9c21"
}
}GET /calls/{id}
curl -X GET "https://meetiq.xyz/api/public/v1/calls/<id>" \
-H "Authorization: Bearer $MEETIQ_API_KEY"
{
"data": {
"id": "9e2d1a64-7b3f-4e0a-8c55-3d6f2b1a7e90",
"status": "answered",
"external_ref": "tt-call-88213",
"caller_email": "ops@lavisho.com",
"caller_name": "Karim Ahmed",
"ring_expires_at": "2026-10-28T17:30:45Z",
"answered_at": "2026-10-28T17:30:12Z",
"ended_at": null,
"created_at": "2026-10-28T17:30:00Z",
"meeting_id": "5b0c7c4e-2f7a-4c55-9d1e-0a7f3f1b9c21",
"invitees": [
{
"email": "sales@lavisho.com",
"external_user_id": "tt-9",
"status": "answered",
"responded_at": "2026-10-28T17:30:12Z"
}
]
}
}POST /calls/{id}/decline (invitee declined in TT)
curl -X POST "https://meetiq.xyz/api/public/v1/calls/<id>/decline" \
-H "Authorization: Bearer $MEETIQ_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"external_user_id": "tt-9",
"reason": "In another meeting"
}'
{
"data": {
"id": "9e2d1a64-7b3f-4e0a-8c55-3d6f2b1a7e90",
"status": "declined",
"external_ref": "tt-call-88213",
"caller_email": "ops@lavisho.com",
"caller_name": "Karim Ahmed",
"ring_expires_at": "2026-10-28T17:30:45Z",
"answered_at": null,
"ended_at": "2026-10-28T17:30:09Z",
"created_at": "2026-10-28T17:30:00Z",
"meeting_id": "5b0c7c4e-2f7a-4c55-9d1e-0a7f3f1b9c21",
"invitees": [
{
"email": "sales@lavisho.com",
"external_user_id": "tt-9",
"status": "declined",
"responded_at": "2026-10-28T17:30:09Z"
}
]
}
}
// Event in /events:
{
"seq": 1040,
"id": "5d2a…",
"event_type": "call.declined",
"target_id": "9e2d1a64-7b3f-4e0a-8c55-3d6f2b1a7e90",
"payload": {
"call_id": "9e2d1a64-7b3f-4e0a-8c55-3d6f2b1a7e90",
"external_ref": "tt-call-88213",
"invitee": {
"email": "sales@lavisho.com",
"external_user_id": "tt-9"
},
"reason": "In another meeting",
"declined_at": "2026-10-28T17:30:09Z",
"call_status": "declined"
},
"created_at": "2026-10-28T17:30:09Z"
}Send exactly one of external_user_id or email. That invitee's join link stops working. 404 if the invitee is not on the call; 409 if they already answered or declined, or the call is finished.
POST /calls/{id}/cancel (409 if already finished)
curl -X POST "https://meetiq.xyz/api/public/v1/calls/<id>/cancel" \
-H "Authorization: Bearer $MEETIQ_API_KEY"
{
"data": {
"id": "9e2d1a64-7b3f-4e0a-8c55-3d6f2b1a7e90",
"status": "cancelled"
}
}5. Events: GET /events?since= (scope events:read)
Types: meeting.endedsummary.readyminutes.draft_readyrecording.readyvote.closedminutes.publishedcall.answeredcall.declinedcall.missedcall.ended. Returns events with seq greater than since, oldest first, up to 50. Save next_cursor and send it as since next time; deduplicate on id. Webhooks also deliver these when your endpoint is allowed.
Request / response
curl -X GET "https://meetiq.xyz/api/public/v1/events?since=1040&limit=50" \
-H "Authorization: Bearer $MEETIQ_API_KEY"
{
"data": [
{
"seq": 1041,
"id": "0c1f…",
"event_type": "call.missed",
"target_id": "9e2d1a64-7b3f-4e0a-8c55-3d6f2b1a7e90",
"payload": {
"call_id": "9e2d1a64-7b3f-4e0a-8c55-3d6f2b1a7e90",
"external_ref": "tt-call-88213",
"reason": "ring_timeout"
},
"created_at": "2026-10-28T17:30:46Z"
},
{
"seq": 1042,
"id": "7a9e…",
"event_type": "call.ended",
"target_id": "9e2d1a64-7b3f-4e0a-8c55-3d6f2b1a7e90",
"payload": {
"call_id": "9e2d1a64-7b3f-4e0a-8c55-3d6f2b1a7e90",
"external_ref": "tt-call-88213",
"started_at": "2026-10-28T17:30:12Z",
"ended_at": "2026-10-28T17:42:03Z",
"duration_seconds": 711,
"participants": 2
},
"created_at": "2026-10-28T17:42:03Z"
}
],
"next_cursor": 1042
}TypeScript polling loop
// Poll every 10–30 s. Persist the cursor only after your handler succeeds.
let cursor = Number(await store.get('meetiq_cursor') ?? 0);
while (true) {
const r = await fetch(`https://meetiq.xyz/api/public/v1/events?since=${cursor}&limit=50`, {
headers: { Authorization: `Bearer ${Deno.env.get('MEETIQ_API_KEY')}` },
});
if (r.status === 429) { await sleep(Number(r.headers.get('Retry-After') ?? 5) * 1000); continue; }
if (!r.ok) throw new Error(`MeetIQ events ${r.status}`);
const { data, next_cursor } = await r.json();
for (const ev of data) await handle(ev); // idempotent on ev.id
cursor = next_cursor;
await store.set('meetiq_cursor', String(cursor));
if (data.length < 50) await sleep(15_000); // caught up
}6. Meeting outputs for meetings your app created
Summary and draft-minutes event payload.data and both read responses declare format: "markdown". Render summary (summary) or text (minutes) as Markdown, or use text_plain without Markdown formatting. Draft-minutes events include the content directly as well as the fetch URL. Attendee display names use the supplied name, then the member profile, then a readable email local part; summaries and minutes never print raw email addresses. Machine attendance/email fields are unchanged.
Every meeting output event includes attendance (name, present/online/absent status, UTC join/leave times), timezone, local human-readable date fields, and the complete transcript/lines arrays. Each line is { speaker, text, started_at }, with ISO UTC started_at. line_count and transcript_lines are the actual number of lines, not the number of files. Summary and minutes read responses include these same arrays.
Events about a meeting your app created (meeting.endedsummary.readyminutes.draft_readyrecording.readyvote.closedminutes.published) carry linked_app_id on the event and meeting_id, external_ref, transcript_lines and summary_url/transcript_url/minutes_url in payload.data. summary.ready includes the summary text, key decisions and action items. minutes.draft_ready includes minutes_url, which you fetch with your API key. vote.closed adds the decision and vote counts.
summary.ready event
{
"seq": 1101,
"linked_app_id": "42a4c580-f061-4352-9736-2f83e160e46a",
"event_type": "summary.ready",
"target_id": "51543738-8a8c-4b21-ad30-1e1f1218b59e",
"payload": {
"event": "summary.ready",
"data": {
"id": "51543738-8a8c-4b21-ad30-1e1f1218b59e",
"meeting_id": "51543738-8a8c-4b21-ad30-1e1f1218b59e",
"external_ref": "vault-board-2026-10",
"linked_app_id": "42a4c580-f061-4352-9736-2f83e160e46a",
"transcript_lines": 11,
"summary": "The board reviewed Q3 results and approved the budget.",
"format": "markdown",
"text_plain": "The board reviewed Q3 results and approved the budget.",
"key_decisions": [
"Approve the Q4 budget"
],
"action_items": [
{
"task": "Circulate revised budget",
"due_date": "2026-11-07",
"status": "pending",
"priority": "high",
"assignee_email": "cfo@example.com"
}
],
"generated_at": "2026-10-31T10:05:00Z",
"summary_url": "/api/public/v1/board-meetings/51543738-8a8c-4b21-ad30-1e1f1218b59e/summary",
"transcript_url": "/api/public/v1/board-meetings/51543738-8a8c-4b21-ad30-1e1f1218b59e/transcript",
"minutes_url": "/api/public/v1/board-meetings/51543738-8a8c-4b21-ad30-1e1f1218b59e/minutes"
}
}
}minutes.draft_ready event
{
"seq": 1102,
"linked_app_id": "42a4c580-f061-4352-9736-2f83e160e46a",
"event_type": "minutes.draft_ready",
"target_id": "51543738-8a8c-4b21-ad30-1e1f1218b59e",
"payload": {
"event": "minutes.draft_ready",
"data": {
"id": "51543738-8a8c-4b21-ad30-1e1f1218b59e",
"meeting_id": "51543738-8a8c-4b21-ad30-1e1f1218b59e",
"external_ref": "vault-board-2026-10",
"linked_app_id": "42a4c580-f061-4352-9736-2f83e160e46a",
"transcript_lines": 11,
"minutes_status": "draft",
"text": "## Draft minutes\nThe board reviewed Q3 results.",
"format": "markdown",
"text_plain": "Draft minutes\nThe board reviewed Q3 results.",
"summary_url": "/api/public/v1/board-meetings/51543738-8a8c-4b21-ad30-1e1f1218b59e/summary",
"transcript_url": "/api/public/v1/board-meetings/51543738-8a8c-4b21-ad30-1e1f1218b59e/transcript",
"minutes_url": "/api/public/v1/board-meetings/51543738-8a8c-4b21-ad30-1e1f1218b59e/minutes"
}
}
}Read endpoints (scope board:read; the creating app's board:write key also works). Only meetings your app created; others return 404.
GET /board-meetings/{id}/summary (404 until ready)
curl -X GET "https://meetiq.xyz/api/public/v1/board-meetings/<id>/summary" \
-H "Authorization: Bearer $MEETIQ_API_KEY"
{
"data": {
"meeting_id": "51543738-8a8c-4b21-ad30-1e1f1218b59e",
"external_ref": "vault-board-2026-10",
"summary": "The board reviewed Q3 results and approved the budget.",
"format": "markdown",
"text_plain": "The board reviewed Q3 results and approved the budget.",
"key_decisions": [
"Approve the Q4 budget"
],
"action_items": [
{
"task": "Circulate revised budget",
"due_date": "2026-11-07",
"status": "pending",
"priority": "high",
"assignee_email": "cfo@example.com"
}
],
"generated_at": "2026-10-31T10:05:00Z",
"transcript_lines": 11
}
}GET /board-meetings/{id}/transcript
curl -X GET "https://meetiq.xyz/api/public/v1/board-meetings/<id>/transcript" \
-H "Authorization: Bearer $MEETIQ_API_KEY"
{
"data": {
"meeting_id": "51543738-8a8c-4b21-ad30-1e1f1218b59e",
"external_ref": "vault-board-2026-10",
"line_count": 2,
"timezone": "Asia/Dhaka",
"lines": [
{
"speaker": "Chair",
"text": "Let us begin.",
"started_at": "2026-10-31T09:00:05Z"
},
{
"speaker": "CFO",
"text": "Q3 revenue rose 8%.",
"started_at": "2026-10-31T09:00:20Z"
}
],
"text": "Chair: Let us begin.\nCFO: Q3 revenue rose 8%."
}
}GET /board-meetings/{id}/minutes (status draft or approved)
curl -X GET "https://meetiq.xyz/api/public/v1/board-meetings/<id>/minutes" \
-H "Authorization: Bearer $MEETIQ_API_KEY"
{
"data": {
"meeting_id": "51543738-8a8c-4b21-ad30-1e1f1218b59e",
"external_ref": "vault-board-2026-10",
"status": "draft",
"approved_at": null,
"transcript_lines": 11,
"text": "DRAFT MINUTES: Management Review\nDate: 31 Oct 2026, 01:26 Asia/Dhaka\n\nAttendees\n1. Chair — present\n...",
"format": "markdown",
"text_plain": "DRAFT MINUTES: Management Review\nDate: 31 Oct 2026, 01:26 Asia/Dhaka\n\nAttendees\n1. Chair — present\n..."
}
}