Endpoint Reference
This is the per‑endpoint reference for the read‑only surface of the Native Focus REST API. Every call below requires a bearer token from POST /authWithApiKey — see Getting Started → Authentication.
All paths are relative to your tenant's {{baseUrl}} (see Base URLs). All authenticated calls require:
Authorization: Bearer YOUR.BEARER.TOKEN
Content-Type: application/jsonAuthentication#
Authenticate with API key {#authwithapikey}#
POST /authWithApiKey · Try it live
Exchange an API key for a short‑lived bearer JWT.
Body
{
"clientId": 1234567,
"apiKey": "YOUR-API-KEY-XYZ",
"username": "YOUR-INTEGRATION-USERNAME"
}| Field | Type | Required | Notes |
|---|---|---|---|
clientId | integer | yes | Your Focus account id. |
apiKey | string | yes | API key generated in the admin portal. |
username | string | yes | Auto‑generated integration username shown next to the API key in admin. The token inherits this user's roles & rights. |
Response
{
"token": "eyJhbGciOi...",
"refreshToken": "eyJhbGciOi..."
}When token expires, call this endpoint again with the same body to get a fresh one.
Recordings#
The "recording" resource represents a single communication — a phone call, Teams meeting, SMS message, etc. Most endpoints accept either the numeric interactionId (a.k.a. recordingId) or the source‑system thirdPartyId depending on what they do.
Search recordings {#recordingsearch}#
POST /client/recording.search · Try it live
Search and filter recordings. This is the workhorse endpoint for any integration that needs to find calls.
Required right: Recording.View
Body — every field is optional; combine them to narrow your result set.
| Field | Type | Notes |
|---|---|---|
recordingIds | { include?: number[], exclude?: number[] } | Filter by internal ids. |
thirdPartyIds | { include?: string[], exclude?: string[] } | Filter by source ids. |
attributes | { [key]: string | number | boolean } | Exact‑match filter on the recording's attributes bag — including scenarioId, the Event ID shared by every recording in a conversation. |
endpointIds | { include?, exclude? } | Filter by endpoint (phone/email/Teams id) record. |
personIds | { include?, exclude? } | Filter by person record. |
userIds | { include?, exclude? } | Calls owned by these Focus users. |
dateTimeRange | { from: ISO8601, to: ISO8601 } | Most common filter; use a tight window when paging. |
durationRangeInSeconds | { min?: number, max?: number } | |
timeRanges | { include?, exclude? } | Time‑of‑day filters. |
communicationsBetween | object | Filter to interactions between two specific endpoint sets. |
freeText | string | Searches transcript / metadata. |
communicationTypes | { include?: string[], exclude?: string[] } | e.g. phone, teams, sms. |
direction | "In" | "Out" | |
tagIds | { include?, exclude? } | |
isPrivate | boolean | |
hasComments | boolean | |
legalHoldId | integer | Restrict to a legal hold. |
playlistId | integer | Restrict to a playlist. |
startTimeDirection | "ASC" | "DESC" | Sort direction. |
page, pageSize | number | Pagination. |
Example request
curl -X POST "$BASE_URL/client/recording.search" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"dateTimeRange": { "from": "2026-05-12T00:00:00Z", "to": "2026-05-13T00:00:00Z" },
"communicationTypes": { "include": ["phone", "teams"] },
"direction": "In",
"startTimeDirection": "DESC",
"page": 1,
"pageSize": 100
}'Example response (abridged)
{
"recordings": [
{
"interactionId": 9876543,
"thirdPartyId": "6414aa9f-ZZZAAABBB",
"startDatetimeUTC": "2026-05-12T10:30:00.000Z",
"endDatetimeUTC": "2026-05-12T10:34:21.482Z",
"durationInSeconds": 261.482,
"type": "phone",
"endpoints": [
{ "endpoint": { "id": 81, "type": "phone", "endpoint": "447896423595" } }
]
}
],
"total": 4321,
"page": 1,
"pageSize": 100
}Find a communication by Event ID {#event-id-search}#
POST /client/recording.search · Try it live
An Event ID identifies every communication that belongs to the same conversation. A Microsoft Teams meeting recorded for four participants produces four separate recordings in Focus, all sharing one Event ID — so searching on it is how you retrieve a whole conversation rather than a single leg of it.
The same identifier appears under three names:
| Where you see it | Name |
|---|---|
Focus UI, and the ?eventId= deep link | Event ID |
Focus REST API, and the attributes bag on a recording | scenarioId |
| Microsoft Teams | Call Chain ID |
They are the same value. The API uses scenarioId.
Required right: Recording.View
Example request
curl -X POST "$BASE_URL/client/recording.search" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"attributes": { "scenarioId": "cc0da036-2f1e-4b7a-9d33-8a1c5e0f4b62" }
}'Example response (abridged)
{
"recordings": [
{
"interactionId": 4815162,
"thirdPartyId": "REC-00123",
"startDatetimeUTC": "2026-09-08T14:02:11Z",
"durationInSeconds": 742,
"attributes": {
"scenarioId": "cc0da036-2f1e-4b7a-9d33-8a1c5e0f4b62",
"platform": "teams"
}
}
],
"total": 4,
"page": 1,
"pageSize": 50
}attributes is omitted entirely when a recording has none — read it defensively.
Combining keys
Keys are ANDed, so a second attribute narrows the same search further — here, the Teams leg(s) of that conversation only:
curl -X POST "$BASE_URL/client/recording.search" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"attributes": {
"scenarioId": "cc0da036-2f1e-4b7a-9d33-8a1c5e0f4b62",
"platform": "teams"
}
}'How attribute matching behaves#
Exact match only — no partial or prefix matching.
Multiple keys are ANDed.
Types are preserved — numeric
3does not match string"3".One value per key — to search several Event IDs, issue one request each.
Ten keys maximum.
Arrays, objects and null return 400 rather than being quietly ignored, as does an eleventh key. An empty string is a real filter, so {"scenarioId": ""} matches nothing rather than everything.
Opening the same conversation in the UI#
Paste the Event ID into the Focus portal as a deep link to see the same set of recordings a user would:
https://uk.focus.subphonic.ai/communications?eventId=cc0da036-2f1e-4b7a-9d33-8a1c5e0f4b62Get recording detail {#recording-detail-get}#
POST /client/recording.detail.get · Try it live
Fetch the full detail blob for one or more recordings (metadata, endpoints, owners, retention info, encryption metadata).
Required right: Recording.View
Body
{ "interactionIds": [9876543, 9876544] }Returns an array of detail objects keyed on interactionId. Each entry carries the underlying metadata, audio waveForm summary and encryptionDetail blocks for the recording. Use this after recording.search when you need raw metadata that isn't included in the search projection.
Get transcription {#recording-transcription-get}#
POST /client/recording.transcription.get · Try it live
Fetch transcription segments for one or more recordings.
Required right: Recording.Transcription.View
Body
{ "interactionIds": [9876543] }The response is an array of { interactionId, analysis } objects. The analysis field is the raw output written by the transcription engine for that interaction — typically a transcript containing time‑aligned segments plus a detected language. An empty or null analysis means transcription is disabled, hasn't run yet, or isn't available for that media type.
Get SMS message {#recording-sms-message-get}#
POST /client/recording.sms-message.get · Try it live
Fetch the message body for SMS interactions.
Required right: Recording.View
Body
{ "interactionIds": [9876543] }Use this for type: "sms" interactions where the "audio" is actually a text payload. The response projects the SMS body and any underlying provider message ids out of the recording's metadata.
Download audio {#recording-playback}#
POST /client/recording.playBackByThirdPartyId · Try it live
Stream or download the audio (or video) for a recording. Returns a binary stream — pipe to a file.
This is both the playback and the download path — there is no separate download endpoint. The response body is the media itself, returned with Content-Disposition: attachment, so write it to a file rather than expecting a URL. Because the call is a POST carrying a bearer token it cannot be used as a shareable download link; to share a recording with another Focus user, use a Playlist.
Required right: Recording.Play
Body
| Field | Type | Required | Notes |
|---|---|---|---|
thirdPartyId | string | yes | Source‑system id taken from a recording.search result. |
format | string | no | Output format — see Formats below. Always set this explicitly. |
streamThrough | boolean | no | Stream as the file is decrypted instead of buffering. |
comment | string | conditional | Required when the account has forced comments enabled. |
Formats {#playback-formats}#
format | Output | Channels |
|---|---|---|
mp3-mono | MP3 | 1 (downmixed) |
wav-mono | WAV | 1 (downmixed) |
wav | WAV, pcm_s16le | As recorded |
raw | WAV container, codec copy — no transcode | As recorded |
mp4 | AAC 128 kbps in a fragmented MP4, audio only — no video track | As recorded |
mp3 | Default. Does not currently return MP3 — see the warning below | 2 |
The two mono formats perform a true downmix, not a channel drop. Compliance recordings are typically two‑channel with one party per channel; asking for mp3-mono or wav-mono mixes both parties into the single channel, so neither side of the conversation is lost. Pick a mono format when you want a smaller file or when the system consuming the audio expects one channel; pick wav or raw when you need the parties kept on separate channels, for example for diarisation or per‑party analysis.
raw is the fastest and the only lossless option, because the audio is copied rather than re‑encoded.
Example
Download a single‑channel MP3 with both parties mixed together:
curl -X POST "$BASE_URL/client/recording.playBackByThirdPartyId" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{ "thirdPartyId": "abc-123-call-id", "format": "mp3-mono" }' \
--output recording.mp3Returns 404 if the thirdPartyId is unknown or not visible to the calling user.
Get recording audit log {#recording-audit}#
POST /client/recording/audit · Try it live
Read the access audit log for a single recording — every play, download or detail view, with user and timestamp.
Required right: Recording.Audit.View
Body
{ "recordingId": 9876543, "page": 1, "pageSize": 100 }Use this to evidence who has accessed a particular interaction (e.g. for a regulator request). The response is an array of audit rows; each row describes one HTTP call against this recording.
See Assemble an evidence pack for a compliance request for the full flow — scoping, the access trail, and what belongs in the pack.
People & Endpoints#
A person is an individual tracked in your Focus tenant; an endpoint is one of their addressable identities (a phone number, email or Teams user id). Endpoints are owned by people, and recordings are linked to endpoints.
Search people {#people-search}#
POST /client/people.search · Try it live
Search people with rich filters.
Required right: People.View
For a worked use of these filters, see Reconcile people and endpoints.
Body
| Field | Type | Notes |
|---|---|---|
freeText | string | Free‑text match across name / metadata. |
personType | "staff" | "external" | |
personIds | number[] | Restrict to specific people. |
thirdPartyIds | string[] | Restrict by source id. |
emails | string[] | Restrict by email endpoint. |
groupAssignment | array | Filter by auto‑group rules. |
retentionGroupId | number | null | Filter by retention group; null means "no group". |
byoStorageAccountId | number | null | Filter by BYO storage account. |
includeInteractions | boolean | If true, include recent interaction stats per person. |
onlyReturnNonAssociated | boolean | Only people without an associated user. |
isActive | boolean | |
page, pageSize | number |
Search people by name {#people-search-by-name}#
POST /client/people.searchByName · Try it live
Lightweight prefix search — useful for type‑ahead UIs.
Required right: People.View
Body
{ "prefix": "smi", "personType": "staff", "isActive": true, "page": 1, "pageSize": 25 }personType is required; prefix is matched against full name.
Get people by id {#people-get}#
POST /client/people.get · Try it live
Fetch full person records by id.
Required right: People.View
Body — a JSON array of ids (numeric or string thirdPartyId):
[1, 2, 3]Response (abridged)
[
{ "id": 1, "fullName": "Jane Smith", "personType": "staff" }
]Search endpoints {#endpoint-search}#
POST /client/people/endpoint/search · Try it live
Find endpoints (phone numbers, emails, Teams user ids) and the people that own them.
Required right: Endpoints.View
Body
| Field | Type | Notes |
|---|---|---|
type | "phone" | "email" | "teamsUserId" | |
endpointSearch | string | Exact / partial match on the endpoint value. |
freeText | string | Free‑text match. |
isRecorded | boolean | Endpoint has ever been recorded. |
isCurrentlyRecorded | boolean | Recording is currently active. |
onlyReturnOwned / onlyReturnNonOwned | boolean | |
page, pageSize | number |
Example
curl -X POST "$BASE_URL/client/people/endpoint/search" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{ "type": "phone", "endpointSearch": "447896" }'Get endpoints by value {#endpoint-get}#
POST /client/people/endpoint/get · Try it live
Fetch endpoint records by exact value.
Required right: People.View
Body — an array of { type, endpoint } objects:
[
{ "type": "phone", "endpoint": "447896423595" },
{ "type": "email", "endpoint": "jane.smith@example.com" }
]Returns the matching endpoint records including the owning person id and recording flags. The response is a plain JSON array — entries are returned in the order they're found, not necessarily the order requested.
Users#
Search users {#user-search}#
POST /client/user/search · Try it live
Search Focus portal users.
Required right: Users.View
Body — all fields optional:
| Field | Type | Notes |
|---|---|---|
userId | integer | Single‑user lookup. |
username | string | Exact username match. |
freeText | string | Free‑text match across user fields. |
rolesAndRights | string[] | Filter to users with these rights. |
isActive, isLocked | boolean | |
onlyReturnNonAssociated | boolean | Users with no person record. |
searchOrderProperty | object | Sort options. |
page, pageSize | number |
Example response
[
{ "id": 42, "username": "alice@example.com", "rolesAndRights": ["Admin"] }
]Retention Groups#
List retention groups {#retention-group-list}#
GET /admin/retentionGroup · Try it live
List all retention groups configured on the account, including their default status and assigned people counts.
Required right: RetentionGroup.View
curl -H "Authorization: Bearer $TOKEN" "$BASE_URL/admin/retentionGroup"Comments#
Get comments on a recording {#recording-comment-list}#
GET /client/recording/comment · Try it live
List comments attached to a recording.
Required right: Recording.Comment.View
Query parameters
| Param | Required | Notes |
|---|---|---|
recordingId | yes | Internal recording id. |
bID | no | Optional bookmark id filter. |
cIdf | no | Optional comment‑identifier filter. |
Example
curl -H "Authorization: Bearer $TOKEN" \
"$BASE_URL/client/recording/comment?recordingId=9876543"Comments may include start/end offsets within the recording, a tag and the inserting user.