# Alle hendelser

Hver hendelse Telkit sender som webhook og i hendelsesstrømmen: når den kommer, hvilke verdier tilstanden kan ha og feltene i data.

Feltene under står i `data`, både i en levering til [webhooken](https://telkit.no/utviklere/webhooks.md) og i [hendelsesstrømmen](https://telkit.no/utviklere/hendelsesstrom.md).

## `agent.archived` (versjon 2)

En AI-agent er arkivert

| Felt | Type | Om feltet |
| --- | --- | --- |
| `id` | `string` (uuid) | The agent's \`id\`. |
| `name` | `string` | The agent's name after the change. |

## `agent.created` (versjon 2)

En AI-agent er laget

| Felt | Type | Om feltet |
| --- | --- | --- |
| `id` | `string` (uuid) | The agent's \`id\`. |
| `name` | `string` | The agent's name after the change. |

## `agent.updated` (versjon 2)

En AI-agent er endret

| Felt | Type | Om feltet |
| --- | --- | --- |
| `id` | `string` (uuid) | The agent's \`id\`. |
| `name` | `string` | The agent's name after the change. |

## `balance.low` (versjon 2)

Saldoen har falt under et varslingsnivå

| Felt | Type | Om feltet |
| --- | --- | --- |
| `balance` | `object` | The balance right after the move, held money included, excluding VAT. |
| `balance.amount` | `integer` | In the currency's smallest unit: 69 is 0,69 kr. |
| `balance.currency` | `string` | ISO 4217, as \`account.getBalance\` answers it. |
| `line` | `object` | The line the balance fell below, excluding VAT. 1: the balance ran out. |
| `line.amount` | `integer` | In the currency's smallest unit: 69 is 0,69 kr. |
| `line.currency` | `string` | ISO 4217, as \`account.getBalance\` answers it. |

## `call.agent.ended` (versjon 2)

En AI-agent forlot samtalen

| Felt | Type | Om feltet |
| --- | --- | --- |
| `agentId` | `string` (uuid) | The agent, as \`agents.get\` names it. |
| `callId` | `string` (uuid) | The call the agent is on. |
| `id` | `string` (uuid) | The agent's session on the call. |
| `identity` | `object \| null` |  |
| `identity.id` | `string` (uuid) | Telkit's id of the identity. |
| `identity.reference` | `string \| null` | Your own name for the identity; \`null\` when it has none. |
| `minutes` | `integer` | The started minutes the agent was on the call. |
| `price` | `object` | What the session cost; 0 with a test key. |
| `price.amount` | `integer` | In the currency's smallest unit: 69 is 0,69 kr. |
| `price.currency` | `string` | ISO 4217, as \`account.getBalance\` answers it. |
| `reason` | `string` | Én av `brain_ended`, `funded_end`, `call_ended`, `removed`, `cost_ceiling`, `session_lost`, `start_failed`. Why the session ended. |

## `call.agent.started` (versjon 2)

En AI-agent kom inn i samtalen

| Felt | Type | Om feltet |
| --- | --- | --- |
| `agentId` | `string` (uuid) | The agent, as \`agents.get\` names it. |
| `callId` | `string` (uuid) | The call the agent is on. |
| `id` | `string` (uuid) | The agent's session on the call. |
| `identity` | `object \| null` |  |
| `identity.id` | `string` (uuid) | Telkit's id of the identity. |
| `identity.reference` | `string \| null` | Your own name for the identity; \`null\` when it has none. |

## `call.answered` (versjon 2)

Samtalen ble besvart

| Felt | Type | Om feltet |
| --- | --- | --- |
| `id` | `string` (uuid) | The call: read it with \`GET /calls/{id}\`. |
| `identity` | `object \| null` |  |
| `identity.id` | `string` (uuid) | Telkit's id of the identity. |
| `identity.reference` | `string \| null` | Your own name for the identity; \`null\` when it has none. |
| `participantId` | `string` (uuid) | The leg that connected. |
| `to` | `string \| null` |  |

## `call.ended` (versjon 2)

En samtale er avsluttet, med endelig pris

| Felt | Type | Om feltet |
| --- | --- | --- |
| `answered` | `boolean` |  |
| `assignedTo` | `string \| null` | The seller the number belonged to when the call came in; null: nobody's. |
| `endedAt` | `string` (date-time) |  |
| `endReason` | `string` |  |
| `from` | `string \| null` |  |
| `id` | `string` (uuid) | The call: read it with \`GET /calls/{id}\`. |
| `identity` | `object \| null` |  |
| `identity.id` | `string` (uuid) | Telkit's id of the identity. |
| `identity.reference` | `string \| null` | Your own name for the identity; \`null\` when it has none. |
| `minutes` | `integer` | The billed minutes. |
| `price` | `object` | What the call cost, everything settled. |
| `price.amount` | `integer` | In the currency's smallest unit: 69 is 0,69 kr. |
| `price.currency` | `string` | ISO 4217, as \`account.getBalance\` answers it. |
| `reference` | `string \| null` | Your own reference for the call; \`null\` when it has none. |
| `state` | `string` | Én av `queued`, `dialing`, `uncertain`, `ringing`, `answered`, `ended`, `unanswered`, `failed`. |
| `to` | `string \| null` | \`null\` on a call between app users. |

## `call.flow.handoff` (versjon 2)

En samtaleflyt spør systemet ditt hvilken vei samtalen skal gå

| Felt | Type | Om feltet |
| --- | --- | --- |
| `branches` | `string[]` | The branch names your app may pick. |
| `callId` | `string` (uuid) | The call the flow runs on. |
| `decideBy` | `string` (date-time) | Pick a branch before then; after it, the node's timeout branch runs. |
| `id` | `string` (uuid) | The flow's run on the call: pick a branch with \`POST /call-flows/runs/{id}/decide\`. |
| `nodeId` | `string` | The webhook node the run waits at. |

## `call.gather.completed` (versjon 2)

Innringeren har valgt i menyen

| Felt | Type | Om feltet |
| --- | --- | --- |
| `callId` | `string` (uuid) |  |
| `digits` | `string` | The keys pressed; empty when none. |
| `id` | `string` (uuid) | The action \`calls.say\`, \`play\` or \`gather\` queued. |
| `identity` | `object \| null` |  |
| `identity.id` | `string` (uuid) | Telkit's id of the identity. |
| `identity.reference` | `string \| null` | Your own name for the identity; \`null\` when it has none. |
| `outcome` | `string` | Én av `completed`, `timeout`, `stopped`, `failed`. |
| `participantId` | `string \| null` (uuid) |  |
| `speech` | `string \| null` | A spoken answer, the first final line heard; null when none. |

## `call.incoming` (versjon 2)

Noen ringer, og systemet ditt bestemmer

| Felt | Type | Om feltet |
| --- | --- | --- |
| `assignedTo` | `string \| null` | The number's seller when the call arrived; null: nobody's. |
| `decideBy` | `string` (date-time) | Answer, reject or forward the call before then; after it, \`fallback\` runs. |
| `fallback` | `string` | Én av `message`, `forward`. |
| `from` | `string` |  |
| `id` | `string` (uuid) | The call: read it with \`GET /calls/{id}\`. |
| `identity` | `object \| null` |  |
| `identity.id` | `string` (uuid) | Telkit's id of the identity. |
| `identity.reference` | `string \| null` | Your own name for the identity; \`null\` when it has none. |
| `numberId` | `string` (uuid) | Your number the call came in on. |
| `participantId` | `string` (uuid) | The caller's leg. |
| `to` | `string` |  |

## `call.liveTranscript.ready` (versjon 2)

Teksten fra samtalen mens den pågikk er klar

| Felt | Type | Om feltet |
| --- | --- | --- |
| `agentLines` | `integer` | How many of those lines are what the call's AI agent said. |
| `callId` | `string` (uuid) | The call it belongs to; read the transcript and its lines by the call. |
| `id` | `string` (uuid) | The live transcript. |
| `identity` | `object \| null` |  |
| `identity.id` | `string` (uuid) | Telkit's id of the identity. |
| `identity.reference` | `string \| null` | Your own name for the identity; \`null\` when it has none. |
| `lines` | `integer` | Final lines in the stitched transcript, the AI agent's included. |
| `price` | `object` | What the transcript cost: started heard minutes per leg; 0 with a test key. |
| `price.amount` | `integer` | In the currency's smallest unit: 69 is 0,69 kr. |
| `price.currency` | `string` | ISO 4217, as \`account.getBalance\` answers it. |

## `call.machineDetected` (versjon 2)

Vi vet om et menneske eller en telefonsvarer tok telefonen

| Felt | Type | Om feltet |
| --- | --- | --- |
| `id` | `string` (uuid) | The call: read it with \`GET /calls/{id}\`. |
| `identity` | `object \| null` |  |
| `identity.id` | `string` (uuid) | Telkit's id of the identity. |
| `identity.reference` | `string \| null` | Your own name for the identity; \`null\` when it has none. |
| `price` | `object` | What the detection cost, once per answered call; 0 with a test key. |
| `price.amount` | `integer` | In the currency's smallest unit: 69 is 0,69 kr. |
| `price.currency` | `string` | ISO 4217, as \`account.getBalance\` answers it. |
| `reason` | `string` | Én av `short_greeting`, `long_greeting`, `phrase`, `no_speech`, `classifier`, `ended_early`, `listener_failed`. What the verdict rests on. |
| `result` | `string` | Én av `human`, `machine`, `unknown`. Who answered, best effort: a person, a machine, or unknown. |

## `call.missed` (versjon 2)

Ingen tok samtalen

| Felt | Type | Om feltet |
| --- | --- | --- |
| `assignedTo` | `string \| null` | The number's seller when the call arrived; null: nobody's. |
| `from` | `string` |  |
| `id` | `string` (uuid) | The call: read it with \`GET /calls/{id}\`. |
| `identity` | `object \| null` |  |
| `identity.id` | `string` (uuid) | Telkit's id of the identity. |
| `identity.reference` | `string \| null` | Your own name for the identity; \`null\` when it has none. |
| `numberId` | `string` (uuid) | Your number the call came in on. |
| `reason` | `string` | Én av `no_route`, `blocked`, `unfunded`, `fallback`. |
| `to` | `string` |  |

## `call.offer.accepted` (versjon 2)

En medarbeider tok samtalen

| Felt | Type | Om feltet |
| --- | --- | --- |
| `acceptedBy` | `string` | Who took it: the member's id, your app user's id, or the participant id of the phone that answered. |
| `acceptedKind` | `string` | Én av `member`, `app_user`, `phone`. |
| `callId` | `string` (uuid) | The call the offer rang on. |
| `id` | `string` (uuid) | The offer: read it with \`GET /calls/offers/{id}\`. |
| `identity` | `object \| null` |  |
| `identity.id` | `string` (uuid) | Telkit's id of the identity. |
| `identity.reference` | `string \| null` | Your own name for the identity; \`null\` when it has none. |

## `call.offer.expired` (versjon 2)

Ingen tok samtalen i tide

| Felt | Type | Om feltet |
| --- | --- | --- |
| `callId` | `string` (uuid) | The call the offer rang on. |
| `id` | `string` (uuid) | The offer: read it with \`GET /calls/offers/{id}\`. |
| `identity` | `object \| null` |  |
| `identity.id` | `string` (uuid) | Telkit's id of the identity. |
| `identity.reference` | `string \| null` | Your own name for the identity; \`null\` when it has none. |

## `call.participant.moved` (versjon 2)

En deltaker ble flyttet til en annen samtale

| Felt | Type | Om feltet |
| --- | --- | --- |
| `callId` | `string` (uuid) | The call that pays for the leg. |
| `id` | `string` (uuid) | The move: read it with \`GET /calls/{callId}/moves/{id}\`. |
| `meetingId` | `string \| null` (uuid) |  |
| `participantId` | `string` (uuid) | The leg that moved. |
| `target` | `string` | Én av `call`, `meeting_live`. |
| `toCallId` | `string \| null` (uuid) |  |

## `call.participant.updated` (versjon 2)

En deltaker ble dempet eller satt på vent

| Felt | Type | Om feltet |
| --- | --- | --- |
| `id` | `string` (uuid) | The call: read it with \`GET /calls/{id}\`. |
| `participantId` | `string` (uuid) | The leg that moved. |
| `state` | `string` | Én av `queued`, `dialing`, `uncertain`, `ringing`, `answered`, `ended`, `unanswered`, `failed`. |
| `to` | `string \| null` | The number it dialled; \`null\` for an app or bot participant. |

## `call.playback.ended` (versjon 2)

En lyd eller tekst er spilt ferdig

| Felt | Type | Om feltet |
| --- | --- | --- |
| `callId` | `string` (uuid) |  |
| `id` | `string` (uuid) | The action \`calls.say\`, \`play\` or \`gather\` queued. |
| `identity` | `object \| null` |  |
| `identity.id` | `string` (uuid) | Telkit's id of the identity. |
| `identity.reference` | `string \| null` | Your own name for the identity; \`null\` when it has none. |
| `op` | `string` | Én av `play`, `say`. |
| `outcome` | `string` | Én av `completed`, `timeout`, `stopped`, `failed`. |

## `call.queue.abandoned` (versjon 2)

En innringer la på mens den ventet i kø

| Felt | Type | Om feltet |
| --- | --- | --- |
| `abandonedAt` | `string` (date-time) | When the caller hung up. |
| `callbackCreated` | `boolean` | Whether this hang-up created a callback request. False when the queue makes none, the caller's number was hidden, or the call already had one from this queue. |
| `callId` | `string` (uuid) | The call that waited. |
| `flowId` | `string` (uuid) | The call flow the queue is a step of. |
| `id` | `string` (uuid) | The queue entry, as \`GET /queues/entries\` names it. |
| `identity` | `object \| null` |  |
| `identity.id` | `string` (uuid) | Telkit's id of the identity. |
| `identity.reference` | `string \| null` | Your own name for the identity; \`null\` when it has none. |
| `nodeId` | `string` | The queue's node in the flow. |
| `queueId` | `string` (uuid) | The queue, as \`GET /queues/stats\` names it. |
| `waitSeconds` | `integer` | Whole seconds the caller waited before hanging up. |

## `call.recording.failed` (versjon 2)

Opptaket gikk tapt

| Felt | Type | Om feltet |
| --- | --- | --- |
| `callId` | `string` (uuid) |  |
| `failureReason` | `string` | Why no file came; nothing was charged. |
| `id` | `string` (uuid) | The recording. |
| `identity` | `object \| null` |  |
| `identity.id` | `string` (uuid) | Telkit's id of the identity. |
| `identity.reference` | `string \| null` | Your own name for the identity; \`null\` when it has none. |

## `call.recording.ready` (versjon 2)

Opptaket er lagret

| Felt | Type | Om feltet |
| --- | --- | --- |
| `callId` | `string` (uuid) |  |
| `id` | `string` (uuid) | The recording: read it with \`GET /calls/recordings/{id}\` for a link. |
| `identity` | `object \| null` |  |
| `identity.id` | `string` (uuid) | Telkit's id of the identity. |
| `identity.reference` | `string \| null` | Your own name for the identity; \`null\` when it has none. |
| `price` | `object` | What the recording cost; 0 with a test key. |
| `price.amount` | `integer` | In the currency's smallest unit: 69 is 0,69 kr. |
| `price.currency` | `string` | ISO 4217, as \`account.getBalance\` answers it. |
| `seconds` | `integer` | The recorded length in whole seconds. |

## `call.stopped` (versjon 2)

En samtale er lagt på

| Felt | Type | Om feltet |
| --- | --- | --- |
| `answered` | `boolean` | Whether the call was answered. |
| `assignedTo` | `string \| null` | The seller the number belonged to when the call came in; null: nobody's. |
| `endedAt` | `string` (date-time) | When the last leg closed. |
| `endReason` | `string` | Why the call stopped. |
| `from` | `string \| null` | The number the call came from. |
| `id` | `string` (uuid) | The call: read it with \`GET /calls/{id}\`. |
| `identity` | `object \| null` |  |
| `identity.id` | `string` (uuid) | Telkit's id of the identity. |
| `identity.reference` | `string \| null` | Your own name for the identity; \`null\` when it has none. |
| `minutes` | `integer` | The minutes of the legs that have closed; the final count is on \`call.ended\`. |
| `reference` | `string \| null` | Your own reference for the call; \`null\` when it has none. |
| `state` | `string` | Én av `queued`, `dialing`, `uncertain`, `ringing`, `answered`, `ended`, `unanswered`, `failed`. The state the call's own leg ended in. |
| `to` | `string \| null` | The number the call went to; \`null\` on a call between app users. |

## `call.summary.ready` (versjon 2)

Sammendraget er klart

| Felt | Type | Om feltet |
| --- | --- | --- |
| `callId` | `string` (uuid) |  |
| `id` | `string` (uuid) | The summary: \`GET /calls/{callId}/summary\` reads it again. |
| `price` | `object` | What the summary cost; 0 with a test key. |
| `price.amount` | `integer` | In the currency's smallest unit: 69 is 0,69 kr. |
| `price.currency` | `string` | ISO 4217, as \`account.getBalance\` answers it. |
| `text` | `string` |  |

## `call.transfer.updated` (versjon 2)

En overføring av samtalen har gått videre

| Felt | Type | Om feltet |
| --- | --- | --- |
| `callId` | `string` (uuid) | The call being transferred. |
| `id` | `string` (uuid) | The transfer: read it with \`GET /calls/{callId}/transfers/{id}\`. |
| `identity` | `object \| null` |  |
| `identity.id` | `string` (uuid) | Telkit's id of the identity. |
| `identity.reference` | `string \| null` | Your own name for the identity; \`null\` when it has none. |
| `state` | `string` | Én av `dialing`, `consulting`, `completed`, `cancelled`, `failed`. The state the transfer reached. |
| `targetId` | `string` (uuid) | The participant dialled to take the call. |
| `to` | `string` | The number the transfer dials. |
| `transferorId` | `string` (uuid) | The participant that transfers the call. |

## `campaign.completed` (versjon 2)

En kampanje er ferdig, avbrutt eller avvist

| Felt | Type | Om feltet |
| --- | --- | --- |
| `at` | `string` (date-time) |  |
| `channel` | `string` | Én av `sms`, `email`. |
| `ending` | `string` | Én av `completed`, `cancelled`. |
| `id` | `string` (uuid) | The campaign's \`id\`. |
| `identity` | `object \| null` |  |
| `identity.id` | `string` (uuid) | Telkit's id of the identity. |
| `identity.reference` | `string \| null` | Your own name for the identity; \`null\` when it has none. |
| `recipients` | `integer` |  |
| `sent` | `integer` |  |
| `skipped` | `integer` |  |
| `uncertain` | `integer` |  |

## `email.domain.changed` (versjon 2)

Et e-postdomene har endret tilstand

| Felt | Type | Om feltet |
| --- | --- | --- |
| `change` | `string` | Én av `ready`, `check_failed`, `sending_lost`, `provider_refused`, `receiving_lost`. What happened to the domain. |
| `domain` | `string` |  |
| `domainId` | `string` (uuid) | Telkit's id of the domain's DNS setup, the same for every application that sends from the domain. |
| `id` | `string` (uuid) | The domain: read it with \`GET /email/domains/{id}\`. |
| `identity` | `object \| null` |  |
| `identity.id` | `string` (uuid) |  |
| `reason` | `string \| null` |  |
| `receivingReady` | `boolean` |  |
| `sending` | `boolean` | \`true\` once the records are verified for sending. |

## `email.optedIn` (versjon 2)

En adresse kan få e-post igjen

| Felt | Type | Om feltet |
| --- | --- | --- |
| `address` | `string` |  |
| `allIdentities` | `boolean` | true: it concerns the email of every identity of the application. |
| `at` | `string` (date-time) |  |
| `identity` | `object \| null` |  |
| `identity.id` | `string` (uuid) | Telkit's id of the identity. |
| `identity.reference` | `string \| null` | Your own name for the identity; \`null\` when it has none. |
| `source` | `string` | Én av `unsubscribe_link`, `api`, `dashboard`. How the change was made: unsubscribe_link (the recipient used a campaign's unsubscribe link), api (an API key) or dashboard (a signed-in person). |

## `email.optedOut` (versjon 2)

En adresse er meldt av e-post

| Felt | Type | Om feltet |
| --- | --- | --- |
| `address` | `string` |  |
| `allIdentities` | `boolean` | true: it concerns the email of every identity of the application. |
| `at` | `string` (date-time) |  |
| `identity` | `object \| null` |  |
| `identity.id` | `string` (uuid) | Telkit's id of the identity. |
| `identity.reference` | `string \| null` | Your own name for the identity; \`null\` when it has none. |
| `source` | `string` | Én av `unsubscribe_link`, `api`, `dashboard`. How the change was made: unsubscribe_link (the recipient used a campaign's unsubscribe link), api (an API key) or dashboard (a signed-in person). |

## `email.received` (versjon 3)

En e-post kom inn

| Felt | Type | Om feltet |
| --- | --- | --- |
| `addresses` | `object[]` | Each address of \`to\`, split into its local part, its \`+\` tag and its domain. |
| `addresses[].address` | `string` | The whole address, in lower case. |
| `addresses[].domain` | `string` | The part after \`@\`. |
| `addresses[].localPart` | `string` | The part before \`@\`, without the \`+\` tag. |
| `addresses[].tag` | `string \| null` | The part after the first \`+\` of the local part; null when the address has none. |
| `at` | `string` (date-time) | When Telkit stored the email. |
| `attachmentCount` | `integer \| null` |  |
| `cc` | `string[]` | The copy recipients the email names. |
| `from` | `string` | The sender's address. |
| `fromName` | `string \| null` | The sender's name; null when none. |
| `id` | `string` (uuid) | The email: read it with \`GET /email/{id}\`. |
| `identity` | `object \| null` |  |
| `identity.id` | `string` (uuid) |  |
| `inReplyTo` | `object \| null` |  |
| `inReplyTo.id` | `string` (uuid) |  |
| `inReplyTo.reference` | `string \| null` |  |
| `kind` | `string \| null` | Én av `person`, `automatic`, `delivery_report`. |
| `replyTo` | `string[]` | The email's \`Reply-To\` addresses. |
| `senderChecks` | `object \| null` |  |
| `senderChecks.dkim` | `string` | Én av `pass`, `fail`, `inconclusive`, `error`, `unknown`. \`pass\`, \`fail\`, \`inconclusive\` (the check could not decide), \`error\` (the check itself failed) or \`unknown\` (not checked). |
| `senderChecks.dmarc` | `string` | Én av `pass`, `fail`, `inconclusive`, `error`, `unknown`. \`pass\`, \`fail\`, \`inconclusive\` (the check could not decide), \`error\` (the check itself failed) or \`unknown\` (not checked). |
| `senderChecks.spf` | `string` | Én av `pass`, `fail`, `inconclusive`, `error`, `unknown`. \`pass\`, \`fail\`, \`inconclusive\` (the check could not decide), \`error\` (the check itself failed) or \`unknown\` (not checked). |
| `subject` | `string` | The subject line. |
| `threadId` | `string \| null` (uuid) |  |
| `to` | `string[]` | The addresses of the profile the email came to. |
| `via` | `string \| null` | Én av `saved_sender`, `catch_all`. |

## `email.status` (versjon 2)

En e-post er sendt, levert, avvist eller feilet

| Felt | Type | Om feltet |
| --- | --- | --- |
| `at` | `string` (date-time) | When Telkit saw the state. |
| `attachments` | `object[] \| null` |  |
| `attachments[].filename` | `string` | The file's name. |
| `attachments[].sha256` | `string` | The hex SHA-256 of the bytes the email vendor got. |
| `bounceKind` | `string \| null` | Én av `hard`, `soft`, `suppressed`, `unknown`. |
| `id` | `string` (uuid) | The email: read it with \`GET /email/{id}\`. |
| `identity` | `object \| null` |  |
| `identity.id` | `string` (uuid) | Telkit's id of the identity. |
| `identity.reference` | `string \| null` | Your own name for the identity; \`null\` when it has none. |
| `reference` | `string \| null` |  |
| `simulated` | `boolean` | A test key's email: nothing was sent and nothing was charged. |
| `state` | `string` | Én av `scheduled`, `queued`, `in_flight`, `uncertain`, `sent`, `delivered`, `bounced`, `complained`, `failed`, `cancelled`, `held_for_balance`, `received`, `blocked`. |
| `to` | `string[]` |  |
| `vendorAt` | `string \| null` (date-time) |  |
| `vendorReason` | `string \| null` | The email vendor's own explanation of the bounce or suppression, as it gave it (often the receiving mail server's answer), at most 1000 characters; null when it gave none and on every other state. |
| `vendorSentAt` | `string \| null` (date-time) |  |

## `identity.changed` (versjon 2)

En identitet er sendt inn, avgjort, flyttet eller fjernet

| Felt | Type | Om feltet |
| --- | --- | --- |
| `change` | `string` | Én av `submitted`, `withdrawn`, `approved`, `rejected`, `suspended`, `id_document_requested`, `archived`, `moved`. What happened to the identity. |
| `displayName` | `string` | The name your customers see. |
| `id` | `string` (uuid) | The identity: read it with \`GET /identities/{id}\`. |
| `reason` | `string \| null` | Why Telkit rejected or suspended it. |
| `registrationNumber` | `string` |  |
| `state` | `string` | Én av `draft`, `submitted`, `approved`, `rejected`, `suspended`. |

## `letter.account.changed` (versjon 2)

Digipost-kontoen til en identitet er koblet til eller koblet fra

| Felt | Type | Om feltet |
| --- | --- | --- |
| `connectedAt` | `string \| null` (date-time) |  |
| `identity` | `object \| null` |  |
| `identity.id` | `string` (uuid) |  |
| `state` | `string` | Én av `none`, `pending`, `connected`. \`connected\`: live letters in the business's name go with its own Digipost account from now on. \`none\`: the account was taken away, and its live letters are refused until it is connected again. |

## `letter.sender.changed` (versjon 2)

Avsenderen for brev har endret tilstand

| Felt | Type | Om feltet |
| --- | --- | --- |
| `decision` | `string` | Én av `approved`, `rejected`. |
| `id` | `string` (uuid) | The letter sender. |
| `identity` | `object \| null` |  |
| `identity.id` | `string` (uuid) |  |
| `name` | `string` |  |
| `reason` | `string \| null` |  |
| `revision` | `integer` | Which version of the letterhead was decided: each change is reviewed again. |
| `state` | `string` | Én av `pending`, `active`, `ended`, `rejected`, `withdrawn`. |

## `letter.status` (versjon 2)

Et brev er behandlet, postlagt, levert eller feilet

| Felt | Type | Om feltet |
| --- | --- | --- |
| `at` | `string` (date-time) | When Telkit saw the state. |
| `deliveredAs` | `string \| null` | Én av `digital`, `paper`. |
| `delivery` | `string` | Én av `digital_or_paper`, `digital_only`, `paper_only`. Where the letter may go: digital_or_paper (a Digipost mailbox, else paper), digital_only or paper_only. |
| `documentSha256` | `string \| null` | The hex SHA-256 of the PDF Telkit handed on for this letter (the same bytes on every state), as documentSha256 on the letter's read; null on letters and events from before Telkit kept the hash. |
| `id` | `string` (uuid) | The letter: read it with \`GET /letters/{id}\`. |
| `identity` | `object \| null` |  |
| `identity.id` | `string` (uuid) | Telkit's id of the identity. |
| `identity.reference` | `string \| null` | Your own name for the identity; \`null\` when it has none. |
| `nationalIdMasked` | `string \| null` | The recipient's national id masked (the birth-date part and \*\*\*\*\*); null unless the letter names one. The full number is never answered. |
| `recipientKind` | `string` | Én av `name_and_address`, `national_id`, `organization_number`. How the letter names its recipient: name_and_address, national_id or organization_number. |
| `reference` | `string \| null` |  |
| `registrationNumber` | `string \| null` | The business the letter was sent to by its registration number; null otherwise. |
| `senderId` | `string \| null` (uuid) |  |
| `senderName` | `string \| null` | The sender's name as the letter carries it; null on events from before the status carried it. |
| `state` | `string` | Én av `queued`, `in_flight`, `uncertain`, `printing`, `delivered`, `posted`, `failed`. |
| `vendorAt` | `string \| null` (date-time) |  |

## `meeting.ended` (versjon 2)

Et møte er avsluttet

| Felt | Type | Om feltet |
| --- | --- | --- |
| `id` | `string` (uuid) | The meeting: one sitting of the room. |
| `roomId` | `string` (uuid) | The meeting room, as \`meetingRooms.list\` names it. |
| `seconds` | `integer` | Whole seconds from the first join to the last leave. |

## `meeting.started` (versjon 2)

Et møte har startet

| Felt | Type | Om feltet |
| --- | --- | --- |
| `id` | `string` (uuid) | The meeting: one sitting of the room. |
| `roomId` | `string` (uuid) | The meeting room, as \`meetingRooms.list\` names it. |

## `number.changed` (versjon 2)

Et telefonnummer eller en bestilling av det har endret tilstand

| Felt | Type | Om feltet |
| --- | --- | --- |
| `area` | `string \| null` | The area it was ordered in (after the country code); \`null\` when the order named none or the event does not say. |
| `change` | `string` | Én av `approved`, `ordered`, `active`, `rejected`, `released`. What happened to the number. |
| `country` | `string \| null` | Én av `AT`, `BE`, `BG`, `HR`, `CY`, `CZ`, `DK`, `EE`, `FI`, `FR`, `DE`, `GR`, `HU`, `IE`, `IT`, `LV`, `LT`, `LU`, `MT`, `NL`, `PL`, `PT`, `RO`, `SK`, `SI`, `ES`, `SE`, `NO`, `IS`, `LI`, `CH`, `GB`, `US`. |
| `id` | `string` (uuid) | The number: read it with \`GET /numbers/{id}\`. Before delivery, its order's id. |
| `identity` | `object \| null` |  |
| `identity.id` | `string` (uuid) |  |
| `number` | `string \| null` | The number in E.164; \`null\` until Telkit has delivered it. |
| `reason` | `string \| null` | Why it was refused or ended. |
| `state` | `string` | Én av `pending`, `active`, `rejected`, `ended`. |
| `waitingOn` | `string \| null` | Én av `telkit_review`, `fee_payment`, `number_routing`, `address_check`, `vendor_review`, `own_mobile_code`, `own_mobile_takeover`, `dns_check`. |

## `sms.optedIn` (versjon 2)

Et nummer kan få SMS igjen

| Felt | Type | Om feltet |
| --- | --- | --- |
| `allIdentities` | `boolean` | true: it concerns the SMS of every identity of the application. |
| `at` | `string` (date-time) |  |
| `identity` | `object \| null` |  |
| `identity.id` | `string` (uuid) | Telkit's id of the identity. |
| `identity.reference` | `string \| null` | Your own name for the identity; \`null\` when it has none. |
| `number` | `string` |  |
| `source` | `string` | Én av `reply_word`, `unsubscribe_link`, `api`, `dashboard`. How the change was made: reply_word (the recipient answered by SMS), unsubscribe_link, api (an API key) or dashboard (a signed-in person). |

## `sms.optedOut` (versjon 2)

Et nummer er meldt av SMS

| Felt | Type | Om feltet |
| --- | --- | --- |
| `allIdentities` | `boolean` | true: it concerns the SMS of every identity of the application. |
| `at` | `string` (date-time) |  |
| `identity` | `object \| null` |  |
| `identity.id` | `string` (uuid) | Telkit's id of the identity. |
| `identity.reference` | `string \| null` | Your own name for the identity; \`null\` when it has none. |
| `number` | `string` |  |
| `source` | `string` | Én av `reply_word`, `unsubscribe_link`, `api`, `dashboard`. How the change was made: reply_word (the recipient answered by SMS), unsubscribe_link, api (an API key) or dashboard (a signed-in person). |

## `sms.received` (versjon 2)

En SMS kom inn

| Felt | Type | Om feltet |
| --- | --- | --- |
| `at` | `string` (date-time) | When Telkit stored it. |
| `from` | `string` |  |
| `id` | `string` (uuid) | The SMS: read it with \`GET /sms/{id}\`. |
| `identity` | `object \| null` |  |
| `identity.id` | `string` (uuid) | Telkit's id of the identity. |
| `identity.reference` | `string \| null` | Your own name for the identity; \`null\` when it has none. |
| `inReplyTo` | `string \| null` (uuid) |  |
| `segments` | `integer \| null` |  |
| `text` | `string` |  |
| `to` | `string \| null` | The number of yours it came to; \`null\` when it answered an SMS from Telkit's shared reply number. |

## `sms.sender.changed` (versjon 2)

En avsender for SMS har endret tilstand

| Felt | Type | Om feltet |
| --- | --- | --- |
| `approvedUntil` | `string \| null` (date-time) |  |
| `change` | `string` | Én av `approved`, `rejected`, `activated`, `fee_failed`, `released`, `revoked`, `expiring`, `expired`, `withdrawn`. What happened to the sender. |
| `id` | `string` (uuid) | The sender: read it with \`GET /sms/senders/{id}\`. |
| `identity` | `object \| null` |  |
| `identity.id` | `string` (uuid) |  |
| `reason` | `string \| null` |  |
| `state` | `string` | Én av `pending`, `active`, `ended`, `rejected`, `withdrawn`. |
| `type` | `string` | Én av `name`, `mobile`, `sms_number`, `number`, `email_domain`, `letter_sender`. |
| `value` | `string` | The name, or the number in E.164, or the domain. |
| `waitingOn` | `string \| null` | Én av `telkit_review`, `fee_payment`, `number_routing`, `address_check`, `vendor_review`, `own_mobile_code`, `own_mobile_takeover`, `dns_check`. |

## `sms.sender.registration.changed` (versjon 2)

En registrering av avsender har gått videre

| Felt | Type | Om feltet |
| --- | --- | --- |
| `countries` | `string[]` | Where it registers the sender, ISO 3166-1 alpha-2. |
| `id` | `string` (uuid) | The registration's \`id\`. |
| `identity` | `object \| null` |  |
| `identity.id` | `string` (uuid) |  |
| `kind` | `string` | Én av `name_abroad`, `us_business_text`. What is registered: a sender name abroad, or a US number for business text messages. |
| `reason` | `string \| null` | Why it was refused. |
| `senderId` | `string` (uuid) | The sender it registers. |
| `state` | `string` | Én av `pending`, `active`, `ended`, `rejected`, `withdrawn`. The state the registration reached. |

## `sms.status` (versjon 2)

En SMS er sendt, levert eller feilet

| Felt | Type | Om feltet |
| --- | --- | --- |
| `at` | `string` (date-time) | When Telkit saw the state. |
| `id` | `string` (uuid) | The SMS: read it with \`GET /sms/{id}\`. |
| `identity` | `object \| null` |  |
| `identity.id` | `string` (uuid) | Telkit's id of the identity. |
| `identity.reference` | `string \| null` | Your own name for the identity; \`null\` when it has none. |
| `reference` | `string \| null` |  |
| `segments` | `integer \| null` |  |
| `state` | `string` | Én av `scheduled`, `queued`, `in_flight`, `uncertain`, `sent`, `delivered`, `failed`, `cancelled`, `held_for_balance`, `received`. |
| `to` | `string` |  |

## `stt.completed` (versjon 2)

Tale er gjort om til tekst

| Felt | Type | Om feltet |
| --- | --- | --- |
| `id` | `string` (uuid) | The transcript: read it with \`GET /stt/{id}\` for its text. |
| `identity` | `object \| null` |  |
| `identity.id` | `string` (uuid) | Telkit's id of the identity. |
| `identity.reference` | `string \| null` | Your own name for the identity; \`null\` when it has none. |
| `language` | `string \| null` |  |
| `price` | `object` | What it cost; 0 with a test key. |
| `price.amount` | `integer` | In the currency's smallest unit: 69 is 0,69 kr. |
| `price.currency` | `string` | ISO 4217, as \`account.getBalance\` answers it. |
| `seconds` | `integer` | The billed length in whole seconds. |
| `source` | `object` | A call's recording (\`recordingId\` and \`callId\`); both \`null\` for audio you sent. |
| `source.callId` | `string \| null` (uuid) |  |
| `source.recordingId` | `string \| null` (uuid) |  |

## `stt.failed` (versjon 2)

Tale kunne ikke gjøres om til tekst

| Felt | Type | Om feltet |
| --- | --- | --- |
| `failureReason` | `string` |  |
| `id` | `string` (uuid) | The transcript: nothing was charged. |
| `identity` | `object \| null` |  |
| `identity.id` | `string` (uuid) | Telkit's id of the identity. |
| `identity.reference` | `string \| null` | Your own name for the identity; \`null\` when it has none. |

## `test` (versjon 2)

En testhendelse du sendte selv

| Felt | Type | Om feltet |
| --- | --- | --- |
| `mode` | `string` | Én av `live`, `test`. \`test\` or \`live\`: the mode of the key that sent it. |

## `voicemail.received` (versjon 2)

Noen la igjen en beskjed

| Felt | Type | Om feltet |
| --- | --- | --- |
| `callId` | `string` (uuid) | The call the caller left it on. |
| `from` | `string` | The caller's number. |
| `id` | `string` (uuid) | The voicemail: read it with \`GET /inbox/voicemails/{id}\`. |
| `identity` | `object \| null` |  |
| `identity.id` | `string` (uuid) | Telkit's id of the identity. |
| `identity.reference` | `string \| null` | Your own name for the identity; \`null\` when it has none. |
| `recordingId` | `string` (uuid) | The message's recording: read it with \`GET /calls/recordings/{id}\` for a link. |
| `seconds` | `integer` | The message's length in whole seconds. |
