Temi RESTful API (1.0.0)

Download OpenAPI specification:

RESTful API for controlling Temi robots in an organization.

Run In Postman

Authenticate every request with an Organization Access Token (OAT) in the x-api-key header. Tokens are scoped; each endpoint requires the permission noted in its description.

OpenAPI control requires a PRO (or PRO free-trial) robot, matching launcher SDK access. GET /robots omits BASIC robots. Robot-scoped endpoints return 403 for BASIC robots. GET /verify is not robot-gated.

Robots are identified by hardware serialNumber in paths and request bodies.

Authentication

Token verification.

Verify access token

Validates the OAT and returns organization, scope, and robot access metadata.

Authorizations:
ApiKeyAuth

Responses

Response samples

Content type
application/json
{
  • "status": "ok",
  • "organizationId": "string",
  • "tokenId": "string",
  • "scopes": [
    ],
  • "robotScope": "all",
  • "serialNumbers": [
    ]
}

Robots

Robot inventory, map locations, and callable contacts.

List robots

Returns PRO robots accessible to this token (identity fields only). BASIC robots are omitted.

Required scope: read:org:info

Authorizations:
ApiKeyAuth

Responses

Response samples

Content type
application/json
{
  • "robots": [
    ]
}

Get robot status

Returns identity, presence, and last-known activity for a single PRO robot. status is online, offline, busy, or privacy. Privacy is reported even though the robot publishes MQTT presence as offline.

Optional movement, sequence, call, and battery come from retained MQTT (same topics Center uses). They are omitted when the broker has no payload.

Polling after play

  1. Play a sequence whose last action is MOVEMENT to home base.
  2. Poll this endpoint until sequence.status is not start (complete, abort, or absent) and movement.type is idle (or go_to with status: complete and location = home base).
  3. Then send the next room.

START_CALL holds the sequence until the call ends. Meanwhile call.status is start (ringing or connected). call.hostId is the meeting host from retained telepresence extra.

Required scope: read:robot:status

Authorizations:
ApiKeyAuth
path Parameters
serialNumber
required
string = 11 characters ^[0-9]{11}$
Example: 00123456789

11-digit hardware serial from GET /robots.

Responses

Response samples

Content type
application/json
{
  • "teminame": "Reception",
  • "serialNumber": "00123456789",
  • "status": "online",
  • "movement": {
    },
  • "sequence": {
    },
  • "call": {
    },
  • "battery": {
    }
}

List robot locations

Returns named map locations for a PRO robot. Use these names as extra.locationName in MOVEMENT actions.

Required scope: read:robot:locations

Authorizations:
ApiKeyAuth
path Parameters
serialNumber
required
string = 11 characters ^[0-9]{11}$
Example: 00123456789

11-digit hardware serial from GET /robots.

Responses

Response samples

Content type
application/json
{
  • "serialNumber": "string",
  • "mapId": "string",
  • "mapName": "string",
  • "locations": [
    ]
}

List robot members (callable contacts)

Returns project members of this robot who can receive a START_CALL. Only root, admin, collaborator, and guest roles with access to this robot are included. Org/robot contacts who are not members do not appear — add them as a member in Center first.

name uses the organization Contacts display name when available, otherwise the member login username.

Each temiId is unique in the list. Use it in START_CALL contactIds.

Required scope: read:robot:contact

Authorizations:
ApiKeyAuth
path Parameters
serialNumber
required
string = 11 characters ^[0-9]{11}$
Example: 00123456789

11-digit hardware serial from GET /robots.

Responses

Response samples

Content type
application/json
{
  • "contacts": [
    ]
}

Sequences

Execute multi-step robot sequences.

Validate a sequence

Validates a sequence request body without persisting or dispatching it. Use this to check action layout, required fields, and resolvable contacts before execution. This endpoint does not check whether the robot is currently online, in Privacy mode, or busy.

Required scope: action:robot:sequence

Authorizations:
ApiKeyAuth
Request Body schema: application/json
required
serialNumber
required
string = 11 characters ^[0-9]{11}$

11-digit hardware serial from GET /robots.

required
Array of objects (SequenceAction) non-empty

Ordered actions for the robot to execute.

name
string

Optional sequence name.

description
string
volume
number [ 1 .. 10 ]
Default: 5

Playback volume from 1 (quietest) to 10 (loudest). Defaults to 5. Out-of-range values are coerced to the nearest bound; fractional values are rounded to the nearest integer.

fixedVolume
boolean

If true, volume is fixed for the sequence duration.

startFromStep
integer >= 1

Step at which playback begins. Defaults to 1. Must be >= 1 and not beyond the last sequence step.

repeatSequence
integer >= -1

Extra times to run the sequence after the first pass. Use -1 for infinite repeat. Defaults to 0.

object (SequenceStopBy)

Conditions that allow a user to interrupt the sequence.

Responses

Request samples

Content type
application/json
{
  • "serialNumber": "00123456789",
  • "actions": [
    ],
  • "name": "string",
  • "description": "string",
  • "volume": 5,
  • "fixedVolume": true,
  • "startFromStep": 1,
  • "repeatSequence": -1,
  • "stopBy": {
    }
}

Response samples

Content type
application/json
{
  • "status": "valid"
}

Play a sequence

Runs a sequence on a robot. A sequence is an ordered list of actions (navigate, speak, place a video call). The request is accepted asynchronously; the robot executes the sequence after delivery.

Recommended flow

  1. GET /robots — select a robot by serialNumber
  2. GET /robots/{serialNumber} — confirm status is online
  3. GET /robots/{serialNumber}/locations — resolve location names for navigation
  4. GET /robots/{serialNumber}/contacts — resolve temiId for calls
  5. POST /sequences/play — submit the sequence with serialNumber
  6. Poll GET /robots/{serialNumber} until the sequence finished and the robot is idle / at home base.

Play is accepted only when the robot is online and not in Privacy mode. Privacy, offline, and busy return 409 with robot_privacy, robot_offline, or robot_busy. Check status before play.

Path parameters and play/validate bodies use hardware serialNumber only.

Supported action types

Type Purpose Required fields
MOVEMENT Navigate to a map location location or extra.locationName
SPEAK Speak text tts or extra.tts; optional language, display (none, text, talk)
START_CALL Start a video call contactIds (unique temiIds); optional per-contact or action-level platform (both, mobile, web, same as Center); occupies a single step

Note: For privacy reasons, this endpoint does not support CAMERA actions. If the request contains a CAMERA action, the endpoint returns 400. To record photos or videos, use a sequence that contains camera steps in Temi Center. To fetch the files, refer to Sequence Media.

Compact requests may use step instead of startStep/endStep. See the minimal example.

Constraints

  • Every action must include type and either step or startStep/endStep.
  • For a single-step action, set startStep and endStep to the same value (or use step).
  • Sequences must include step 1, with a final action on every consecutive step.
  • MOVEMENT and SPEAK may share a step. START_CALL must not share a step with MOVEMENT or SPEAK (overlap is rejected).
  • START_CALL must start and end on the same step. finalInEndStep can be omitted; the server always sets it to true.
  • START_CALL requires contactIds (a non-empty array of unique temiIds after trim). Duplicates are rejected. One id is a 1:1 call; two or more is a group call.
  • Call destination is the same as Center: mobile (temi phone app), web (temi Center), or both (phone and Center, default). Each contact may set its own platform; otherwise the action-level platform applies to every invited person.
  • repeatSequence must be an integer >= -1 (-1 = infinite repeat).
  • startFromStep must be an integer >= 1 and not beyond the last sequence step.
  • Callers should take MOVEMENT location names from GET /robots/{serialNumber}/locations.
  • For SPEAK language: omit or use "" to use the robot's current TTS language. See SpeakExtra.language for supported locales. If the requested locale is unavailable on the robot, speech uses the current system TTS.
  • Play is rejected with 409 when the robot is in Privacy mode, offline, or busy.

Required scope: action:robot:sequence

Authorizations:
ApiKeyAuth
Request Body schema: application/json
required
serialNumber
required
string = 11 characters ^[0-9]{11}$

11-digit hardware serial from GET /robots.

required
Array of objects (SequenceAction) non-empty

Ordered actions for the robot to execute.

name
string

Optional sequence name.

description
string
volume
number [ 1 .. 10 ]
Default: 5

Playback volume from 1 (quietest) to 10 (loudest). Defaults to 5. Out-of-range values are coerced to the nearest bound; fractional values are rounded to the nearest integer.

fixedVolume
boolean

If true, volume is fixed for the sequence duration.

startFromStep
integer >= 1

Step at which playback begins. Defaults to 1. Must be >= 1 and not beyond the last sequence step.

repeatSequence
integer >= -1

Extra times to run the sequence after the first pass. Use -1 for infinite repeat. Defaults to 0.

object (SequenceStopBy)

Conditions that allow a user to interrupt the sequence.

Responses

Request samples

Content type
application/json
Example
{
  • "serialNumber": "00123456789",
  • "actions": [
    ]
}

Response samples

Content type
application/json
{
  • "status": "accepted",
  • "sequenceId": "string",
  • "serialNumber": "string"
}

Stop a running sequence

Stops an OpenAPI sequence that is currently running on a robot. Only the same Organization Access Token that called POST /sequences/play may stop that run, using the sequenceId returned from play.

The server confirms the robot is still running that sequence (retained sequence.sequenceId from GET /robots/{serialNumber}) before dispatching MQTT stop. This avoids halting a different sequence that started later.

Required scope: action:robot:sequence

Authorizations:
ApiKeyAuth
Request Body schema: application/json
required
sequenceId
required
string non-empty

Run identifier returned by POST /sequences/play.

Responses

Request samples

Content type
application/json
{
  • "sequenceId": "615b14b41a20f8423a7af06a"
}

Response samples

Content type
application/json
{
  • "status": "accepted",
  • "sequenceId": "string",
  • "serialNumber": "string"
}

Sequence Media

Use these endpoints to fetch the photos and videos that a robot records during camera steps.

Example

A hospital creates a ward-round sequence in Temi Center. The robot visits each bed and takes a photo. Each run includes two rounds.

  1. An operator starts the sequence. The run has a new sequenceRunId.
  2. The robot does the first pass (iteration 1). At each bed, a camera step records a photo.
  3. The robot uploads the photos.
  4. When all the photos of the iteration are uploaded, the iteration is ready.
  5. Your system fetches the photos for iteration 1. For example, it attaches the photos to the patient records.
  6. The robot does the second pass (iteration 2). Steps 2 to 5 occur again for iteration 2.

Note: For privacy reasons, POST /sequences/play does not support CAMERA actions.

Terms

Term Definition
Run (sequenceRunId) One start of a sequence on one robot. If an operator starts the same sequence again, Temi creates a new run.
Iteration (iteration) One pass through the sequence in a run. The first iteration is 1. A sequence that repeats has more than one iteration in the same run.
Camera step (actionRunId) One camera action in an iteration. A camera step can record one or more files.
Media key (mediaKey) The storage key of one photo or video. Copy it from a response. Do not build the key yourself. Use it to request a signed download URL.

How to fetch the files

Webhook events and these endpoints do not include download URLs. Do these steps:

  1. Fetch the file list for an iteration. Each file has a mediaKey.
  2. Send the mediaKey values to request signed download URLs.
  3. Download the files before the URLs expire.

Retention

  • Temi deletes stored files and iteration records approximately 7 days after the upload.
  • Signed download URLs expire 5 minutes after Temi creates them.

Media status

Each iteration has a mediaStatus. Temi calculates the status when it receives your request.

Status Definition Action
pending The robot has not reported its capture count, or the uploads are not complete. Continue to poll.
ready Every file that the robot reported is uploaded. Fetch the file list, then download the files.
partial The robot reported its capture count more than 15 minutes ago. Some files are not uploaded. Download the available files. Continue to poll. The status can change to ready.
unconfirmed The robot has not reported a capture count for more than 30 minutes. Temi starts this timer at the last upload. If there is no upload, Temi starts the timer when it records the iteration. Download the available files. The robot can report the count later.
empty The iteration is complete, and the robot reported zero files. No action is required. There are no files.

Temi sends webhook events only for ready and empty. To see pending, partial, and unconfirmed, please use the polling endpoints GET /sequence-media/runs and GET /sequence-media.

Integration flow

flowchart TD
    A["Get an Organization Access Token"] --> B["GET /verify"]
    B --> E{"Use webhooks?"}

    E -->|Yes| C["POST /webhooks"]
    C --> D["Receive sequence.media.ready"]
    D --> H{"mediaStatus"}

    E -->|No| G["GET /sequence-media/runs"]
    G --> P["Poll GET /sequence-media"]
    P --> Q{"mediaStatus"}
    Q -->|"pending, partial, or unconfirmed"| P
    Q -->|empty| Z["No files"]
    Q -->|ready| I["Read the mediaKey values"]

    H -->|empty| Z
    H -->|ready| I

    I --> J["POST /sequence-media/signed-urls"]
    J --> K["Download the files"]
    K --> M["Optional: DELETE /sequence-media"]

late is a webhook field. The polling responses do not include it.

If you use webhooks

  1. Call GET /verify and confirm that the token has the required scopes.
  2. Register an HTTPS endpoint with POST /webhooks.
  3. Store the signing secret securely. It is shown only once.
  4. When you receive sequence.media.ready, verify X-Temi-Signature.
  5. Send a 2xx status code within 10 seconds.
  6. Fetch the files with GET /sequence-media.
  7. A follow-up event has late: true and a different eventId. Fetch the file list again. Do not ignore that event because sequenceRunId and iteration match the first event.
  8. Webhooks do not report partial or unconfirmed. Poll GET /sequence-media when you need files in those statuses.

If you do not use webhooks

Do these steps:

  1. Send GET /sequence-media/runs to find runs and iterations. You can omit every query parameter.
  2. For each iteration, send GET /sequence-media with sequenceRunId and iteration.
  3. Read mediaStatus in iterations[0].
  4. Repeat steps 2 and 3 approximately every 60 seconds, until mediaStatus is ready or empty.
  5. These responses do not include late. After the first ready, poll again and compare registeredCount. If the number is higher, fetch the file list again.
  6. These endpoints do not limit request rate. They do not return 429 or Retry-After.

List runs

Returns one entry for each recorded iteration on the robots that this token can access. The run appears in the list once per iteration. You can omit every query parameter. Temi then returns the newest iterations for this token, up to the default limit.

If you do not use webhooks, use this endpoint to find sequenceRunId values.

Temi records an iteration when the robot reports it, or when the first file for that iteration is uploaded. This endpoint returns only iterations that Temi has recorded.

Filters

You can filter by these parameters:

  • Robot (serialNumber)
  • Temi Center sequence (sequenceId)
  • Run (sequenceRunId)
  • Time when Temi recorded the iteration (from and to)

The from and to values are inclusive. Use ISO 8601 with a time zone, for example Z or +08:00.

Order and limits

  • If you pass sequenceRunId, Temi sorts by iteration in ascending order. You receive the lowest iteration numbers first.
  • If you omit sequenceRunId, Temi sorts by createdAt in descending order. You receive the newest rows first.
  • The default limit is 100. The maximum limit is 500.
  • This endpoint has no page token. from and to filter createdAt. They are not a cursor.
  • If more rows match than limit, Temi omits the rest. The response does not say that rows were omitted.
  • A run with totalIterations of -1 can contain more than 500 iterations. This endpoint cannot return the rest.

To fetch the status and the files for one iteration, use GET /sequence-media.

Access

If you pass a serialNumber that this token cannot access, the endpoint returns 403.

Required scope: read:sequence:media

Authorizations:
ApiKeyAuth
query Parameters
serialNumber
string = 11 characters ^[0-9]{11}$
Example: serialNumber=00123456789

Returns only the iterations from this robot. If the token cannot access the robot, the endpoint returns 403.

sequenceId
string
Example: sequenceId=c4e8a1d07b2f49e6a3c81590

The Temi Center sequence id. This value matches sequence.sequenceId in webhook events. It is not the sequenceId that POST /sequences/play returns.

sequenceRunId
string
Example: sequenceRunId=run_e4d5c678-9abc-4def-8012-3456789abcde

Returns only the iterations of this run. Temi sorts them by iteration in ascending order.

from
string <date-time>
Example: from=2026-09-01T00:00:00Z

The earliest createdAt to return. This value is inclusive. Use ISO 8601 with a time zone.

to
string <date-time>
Example: to=2026-09-07T23:59:59Z

The latest createdAt to return. This value is inclusive. Use ISO 8601 with a time zone.

limit
integer [ 1 .. 500 ]
Default: 100

The maximum number of entries to return. The default is 100. The maximum is 500. This endpoint does not support pagination.

Responses

Response samples

Content type
application/json
Example

The newest iterations from all robots that the token can access. This run appears two times because it has two iterations.

{
  • "runs": [
    ]
}

List files from one run

Returns the status and the stored photos and videos for one run. Use this endpoint for these tasks:

  • Poll for the status when you do not use webhooks.
  • Fetch the files after you receive a webhook event.

Iterations

  • To fetch a specific iteration, pass iteration.
  • To fetch all recorded iterations, omit iteration.

Response

The response contains these fields:

  • run: A summary of the files in this result. This object does not contain mediaStatus.
  • iterations: The status of each iteration in this result. Each entry contains mediaStatus. Temi sorts the entries by iteration in ascending order.
  • actionRuns: The camera steps that have stored files.
  • items: The stored files.

If you pass iteration, the iterations array contains one entry. Read iterations[0].mediaStatus.

The response does not include late. That field exists only on the sequence.media.ready webhook. After mediaStatus is ready, compare registeredCount with your previous read. If the number is higher, fetch the file list again.

The response does not contain download URLs. To download the files, send the mediaKey values to POST /sequence-media/signed-urls.

For the mediaStatus values and the polling procedure, refer to Sequence Media.

Errors

The endpoint returns 404 in these conditions:

  • The run or the iteration does not exist.
  • The token cannot access the robot that recorded the iteration.

List, delete, and signed URLs return 403 for a robot outside this token. This endpoint returns 404 for that same condition.

Required scope: read:sequence:media

Authorizations:
ApiKeyAuth
query Parameters
sequenceRunId
required
string

The run identifier. Read it from a webhook event, or from GET /sequence-media/runs.

iteration
integer >= 1

The iteration number. The first iteration is 1. Omit this parameter to fetch all recorded iterations of the run.

Responses

Response samples

Content type
application/json
Example

All the files of iteration 2 are available.

{
  • "run": {
    },
  • "iterations": [
    ],
  • "actionRuns": [
    ],
  • "items": [
    ]
}

Delete one captured file

Deletes one stored file before it expires.

Caution: Confirm that the mediaKey is correct. You cannot restore a deleted file.

Send the mediaKey in the JSON request body. Do not put it in the URL.

Note: Some HTTP clients and proxies remove the body from DELETE requests. Confirm that your client sends the body. Also send the header Content-Type: application/json. This endpoint has no other form. A client that removes the body cannot delete the file.

Required scope: delete:sequence:media

Authorizations:
ApiKeyAuth
Request Body schema: application/json
required
mediaKey
required
string non-empty

Responses

Request samples

Content type
application/json
{
  • "mediaKey": "64b0c1d2e3f4a5b6c7d8e9f0/sequence-media/5f1a2b3c4d5e6f708192a3b4/c4e8a1d07b2f49e6a3c81590/photo.jpg"
}

Response samples

Content type
application/json
{
  • "error": "mediaKey is required",
  • "error_code": "validation_error"
}

Get download links

Returns a signed download URL for each mediaKey that you send. You can send a maximum of 100 mediaKey values in one request.

Each URL is valid for 5 minutes. If the URL expires before the download starts, request a new URL. This 5-minute limit is separate from expiresAt. expiresAt is the time when Temi deletes the stored file.

Download each file with HTTP GET on signedUrl. Do not send x-api-key to that URL.

Results

  • Match each URL by mediaKey. Do not use the position in the array.
  • If a mediaKey does not exist, the response omits it. This is not an error.
  • If you send the same mediaKey more than one time, the response contains that key only once.

The response can contain fewer entries than the request.

Access

If any mediaKey belongs to a robot that the token cannot access, the endpoint returns 403. The response contains no URLs.

Required scope: read:sequence:media

Authorizations:
ApiKeyAuth
Request Body schema: application/json
required
mediaKeys
required
Array of strings <= 100 items [ items non-empty ]

Responses

Request samples

Content type
application/json
{
  • "mediaKeys": [
    ]
}

Response samples

Content type
application/json
{}

Webhooks

Use webhooks to receive a notification when an event occurs in your organization. For example, Temi notifies you when the media for an iteration is available.

Register an HTTPS endpoint with POST /webhooks. The required scope is manage:org:webhooks. Temi then sends events to that endpoint, for example sequence.media.ready. Each event is an HTTP POST request with a JSON body. The Temi backend server sends this request. The robot does not call your endpoint.

Endpoint conditions

When you create a webhook, Temi checks the URL text only:

  • The URL uses https.
  • The URL uses port 443 or port 8443. If you omit the port, Temi uses 443.

Temi does not resolve the host at create time. A private address or a DNS failure still returns 201.

Temi resolves the host when it delivers an event:

  • If the address is not public, Temi does not deliver that event and does not retry it.
  • If DNS fails, Temi retries, then drops that event.
  • The webhook stays active in both cases.

Temi does not follow redirects.

Ownership and event scope

  • A webhook belongs to the Organization Access Token that created it. Only that token can list, read, rotate, or delete the webhook.
  • If the token can access all robots, the webhook receives events for all robots in the organization.
  • If the token can access selected robots only, the webhook receives events for those robots only.
  • If the token is revoked, or if the token expires, Temi stops sending events to the webhooks of that token.

To replace a token, do these steps:

  1. Register new webhooks with the new token.
  2. Delete the old webhooks with the old token.
  3. Revoke the old token.

Verify the signature

Temi does not send your API key with webhook events. Verify each request with the X-Temi-Signature header. The header format is t=<timestamp>,v1=<signature>.

  1. Read t and v1 from the header. t is the Unix time in seconds. v1 is lowercase hexadecimal.
  2. Build the message {t}.{raw body}. {raw body} is the request body exactly as you received it. Do not parse the JSON before this step.
  3. Calculate HMAC-SHA256(key = secret, message = "{t}.{raw body}"). secret is the webhook signing secret, encoded as UTF-8.
  4. Encode the result as lowercase hexadecimal.
  5. Compare your result with v1. Use a constant-time comparison.
  6. If the two values are different, reject the request.
  7. Compare t with the current time. If the difference is more than 5 minutes, reject the request. This check prevents replay attacks.

Response

Send a 2xx status code within 10 seconds. Send the status code before you process the event.

Retries

Temi attempts delivery of each event a maximum of 5 times. Each attempt has a new t in X-Temi-Signature. t is the time of that attempt. occurredAt in the body does not change.

Temi tries again when one of these conditions occurs:

  • Your endpoint returns 408, 429, or 5xx.
  • The request times out. Temi waits up to 10 seconds for a response.
  • The connection fails.

The waits between attempts are 1 second, 5 seconds, 25 seconds, and 2 minutes.

Temi does not retry after other 4xx status codes. Temi does not retry after 3xx redirects. After the attempts fail, Temi drops that event. The webhook stays active. The list does not show the failure. Temi can send the same eventId again later.

Duplicate events

Each delivery attempt has a new X-Temi-Delivery value. Retries of one event keep the same eventId. Use eventId to ignore those retries.

A follow-up for the same iteration is a different event. It has late: true and a different eventId. Do not ignore it because sequenceRunId and iteration match the first event.

Disable a webhook

If your endpoint returns 410 Gone, Temi disables the webhook permanently and sets disabledAt. You cannot enable that webhook again. To receive events again, create a new webhook.

A disabled webhook remains in the list. Temi does not send events to it. You can rotate its secret. Rotation does not enable it.

sequence.media.ready Webhook

Temi sends this event when the photos and videos for an iteration are available.

Example

A robot completes iteration 1 of a ward-round sequence. The robot takes 6 photos and uploads them. When all 6 photos are uploaded, the Temi backend server sends this event with mediaStatus: ready and mediaCount: 6. Your system receives the event and fetches the photos.

To fetch the files, call GET /sequence-media with sequence.sequenceRunId and sequence.iteration.

Notes

  • If the robot reports zero files, Temi sends this event with mediaStatus: empty. There are no files to fetch.
  • Temi sends a maximum of two events for each iteration. If more files arrive after the first event, Temi sends one follow-up event with late: true and a different eventId. mediaCount in that event is the new total. Fetch the file list again. Do not ignore the follow-up because sequenceRunId and iteration are unchanged.
  • Temi does not send events for pending, partial, or unconfirmed. Files can already be available in those statuses. Poll GET /sequence-media to see them. If the status changes from partial or unconfirmed to ready, Temi sends the first event at that time.
header Parameters
X-Temi-Event
string
Value: "sequence.media.ready"

The event type. This value matches type in the body.

X-Temi-Delivery
string <uuid>

The identifier of this delivery attempt. It changes on each retry. To detect duplicate events, use eventId.

X-Temi-Signature
string
Example: t=1788761568,v1=5257a869e7ecebeda32affa62cdca3fa51cad7e77a0e56ff536d0ce8e108d8bd

The signature, in the format t=<timestamp>,v1=<signature>. To verify it, refer to Webhooks.

User-Agent
string
Example: Temi-Webhook/1.0
Request Body schema: application/json
eventId
required
string

The identifier of this event. Retries keep this value. A follow-up for the same iteration has a different value and late: true. Do not ignore events by sequenceRunId and iteration.

type
required
string
Value: "sequence.media.ready"
occurredAt
required
string <date-time>

The time when Temi created the event. The value does not change between retries. The signature timestamp t does change on each attempt.

organizationId
required
string

The organization id. This value matches the organization id from GET /verify.

serialNumber
required
string = 11 characters ^[0-9]{11}$

The serial number of the robot that recorded the files.

required
object

The sequence, the run, and the iteration that produced the files.

mediaStatus
required
string
Enum: "ready" "empty"
  • ready: Every file that the robot reported is uploaded.
  • empty: The iteration is complete, and the robot reported zero files.
mediaCount
required
integer >= 0

The number of uploaded files for this iteration at the time of the event. In a follow-up event, this number includes the files from the first event.

capturedCount
required
integer >= 0

The number of files that the robot reported for this iteration.

plannedMediaCount
integer >= 0

The number of files that the sequence is configured to record. Temi omits this field when it does not know the number. The value is not null. Temi does not use this value to calculate the status.

late
required
boolean
  • false: This is the first event for the iteration.
  • true: This is the follow-up event. It has a different eventId. Temi sends it only once, and only if more files arrive after the first event.

Polling responses do not include this field.

Responses

Request samples

Content type
application/json
{
  • "eventId": "wh_media_7f3a9c2e",
  • "type": "sequence.media.ready",
  • "occurredAt": "2026-09-07T06:12:48.000Z",
  • "organizationId": "64b0c1d2e3f4a5b6c7d8e9f0",
  • "serialNumber": "00123456789",
  • "sequence": {
    },
  • "mediaStatus": "ready",
  • "mediaCount": 6,
  • "capturedCount": 6,
  • "plannedMediaCount": 6,
  • "late": false
}

Create a webhook

Registers an HTTPS endpoint that receives webhook events. In events, send the event types that you want to receive. The endpoint receives events only for the robots that this token can access.

Supported event types:

Event type When Temi sends the event
sequence.media.ready The media for an iteration is ready or empty.

Temi can add event types later.

The endpoint must meet the conditions in Webhooks.

Limits

Each token can register a maximum of 5 webhooks. Temi does not check that the URL is unique. A second request with the same URL creates a second webhook. Both webhooks receive events.

You cannot change the URL or the event list. Delete the webhook and create a new one.

Temi does not send a test event. The first signed request is a real sequence.media.ready event.

Caution: Store the signing secret securely. It is shown only once, in this response. If you lose the secret, create a new one with POST /webhooks/{webhookId}/rotate-secret.

Required scope: manage:org:webhooks

Authorizations:
ApiKeyAuth
Request Body schema: application/json
required
url
required
string <uri>

The HTTPS endpoint that receives the events. Use port 443 or port 8443.

events
required
Array of strings non-empty unique
Items Value: "sequence.media.ready"

The event types that the webhook receives. For the supported event types, refer to POST /webhooks.

description
string

An optional label for your records.

Responses

Request samples

Content type
application/json
{}

Response samples

Content type
application/json
{
  • "webhookId": "ed71eef4-4c34-46dc-81fe-954e560454fd",
  • "events": [
    ],
  • "description": "string",
  • "secretPrefix": "a1b2c3d4",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "disabledAt": "2019-08-24T14:15:22Z",
  • "secret": "4f9c2a7e1b8d44c0a6e5f3210abc9def4f9c2a7e1b8d44c0a6e5f3210abc9def"
}

List webhooks

Returns the webhooks that this token created, including disabled webhooks. The list omits webhooks that other tokens created. The list does not contain signing secrets, delivery attempts, or the last error.

Required scope: manage:org:webhooks

Authorizations:
ApiKeyAuth

Responses

Response samples

Content type
application/json
{
  • "webhooks": [
    ]
}

Get a webhook

Returns one webhook that this token created. The response does not contain the signing secret.

To identify the active secret, compare secretPrefix with the first 8 characters of your stored secret.

Required scope: manage:org:webhooks

Authorizations:
ApiKeyAuth
path Parameters
webhookId
required
string <uuid>

The webhookId from the response that created the webhook.

Responses

Response samples

Content type
application/json
{
  • "webhookId": "ed71eef4-4c34-46dc-81fe-954e560454fd",
  • "events": [
    ],
  • "description": "string",
  • "secretPrefix": "a1b2c3d4",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "disabledAt": "2019-08-24T14:15:22Z"
}

Delete a webhook

Deletes the webhook. After deletion, Temi does not send events to its URL.

Required scope: manage:org:webhooks

Authorizations:
ApiKeyAuth
path Parameters
webhookId
required
string <uuid>

The webhookId from the response that created the webhook.

Responses

Response samples

Content type
application/json
{
  • "error": "Missing scopes: manage:org:webhooks",
  • "error_code": "missing_scope"
}

Rotate a webhook secret

Creates a new signing secret. After this request succeeds, Temi signs every new event with the new secret. There is no grace period for the old secret.

Caution: Temi signs new events with the new secret immediately. Do the steps below before the next event. If the endpoint still has only the old secret, it rejects valid events.

Do these steps:

  1. Send this request. Store the new secret securely. It is shown only once.
  2. Configure the endpoint to accept the old secret and the new secret.
  3. Wait 4 minutes. A retry that started before the rotation still uses the old secret. Each attempt of that retry has a new t. Those retries end within 4 minutes.
  4. Remove the old secret from the endpoint.

If disabledAt is not null, this request still returns a new secret. It does not enable the webhook.

Required scope: manage:org:webhooks

Authorizations:
ApiKeyAuth
path Parameters
webhookId
required
string <uuid>

The webhookId from the response that created the webhook.

Responses

Response samples

Content type
application/json
{
  • "webhookId": "ed71eef4-4c34-46dc-81fe-954e560454fd",
  • "events": [
    ],
  • "description": "string",
  • "secretPrefix": "a1b2c3d4",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "disabledAt": "2019-08-24T14:15:22Z",
  • "secret": "4f9c2a7e1b8d44c0a6e5f3210abc9def4f9c2a7e1b8d44c0a6e5f3210abc9def"
}