About & Auth.

An API to deal with the Flexisip server.

The API is available under /api

A content-type and accept HTTP headers are REQUIRED to use the API properly

> GET /api/{endpoint}
> content-type: application/json
> accept: application/json

Restricted endpoints are protected using a DIGEST authentication or an API Key mechanisms.

Access model

The endpoints are accessible using three different models:

  • Public publicly accessible
  • User the endpoint can only be accessed by an authenticated user
  • Admin the endpoint can be only be accessed by an authenticated admin user
  • Super Admin the endpoint can be only be accessed by an authenticated super admin user

Space expiration

Super Admin can configure and expiration date on Spaces (expire_at). If the Space is expired all the authenticated endpoint of the API will return 403.

Localization

You can add an Accept-Language header to your request to translate the responses, and especially errors messages, in a specific language.

Currently supported languages: en, fr

> GET /api/{endpoint}
> Accept-Language: fr
> …

< HTTP 422
< {
<   "message": "Le champ pseudo est obligatoire.",
<   "errors": {
<     "username": [
<       0 => "Le champ pseudo est obligatoire."
<     ]
<   }
< }

Using the API Key

User Admin Super Admin

When the JWT authentication is configured, the API Key auth is not available anymore.

You can retrieve an API Key from your account panel or using the dedicated API endpoint.

When generated by a User account the generated API Key will be restricted to the IP that generates it and will be destroyed if not used after some times.

If you want a stable API Key, to integrate with another server component for example, you can generate one in the Administration Panel.

You can then use your freshly generated key by adding a new x-api-key header to your API requests:

> GET /api/{endpoint}
> x-api-key: {your-api-key}
> …

Using a JWT token

User

You can use a JWT token to authenticate on the API.

To do so you MUST inject it as an Authorization: Bearer header and configure the API with the public key of the token emitter.

> GET /api/{endpoint}
> Authorization: Bearer {your-jwt-token}
> …

The API will then check if the token was signed properly, is still valid and authenticate a user that is actually available in the system.

Using DIGEST

User

When the JWT authentication is configured, the DIGEST auth is not available anymore.

To discover the available hashing algorithm you MUST send an unauthenticated request to one of the restricted endpoints.
Only DIGEST-MD5 and DIGEST-SHA-256 are supported through the authentication layer.

A from (consisting of the user SIP address, prefixed with sip:) header is required to initiate the DIGEST flow.

> GET /api/{restricted-endpoint}
> from: sip:foobar@sip.example.org
> …

< HTTP 401
< content-type: application/json
< www-authenticate: Digest realm=test,qop=auth,algorithm=MD5,nonce="{nonce}",opaque="{opaque}"
< www-authenticate: Digest realm=test,qop=auth,algorithm=SHA-256,nonce="{nonce}",opaque="{opaque}"

You can find more documentation on the related IETF RFC-7616.

Endpoints

Ping

GET /ping

Public

Returns pong

SIP URI Resolving

GET /resolve/{sip}

Admin

Resolve a specific SIP URI in the space. All the resolved object can be reached using direct API endpoints. This endpoint is only there as a shortcut and should be used sparingly.

Will return a JSON message with:

Spaces

Manage the list of allowed spaces. The admin accounts declared with a domain that is a super sip_domain will become Super Admin.

Space object with the related data:

{
    "domain": "sip.example.com",
    "host": "sip.example.com",
    "name": "Example Space",
    "account_proxy_registrar_address": null,
    "assistant_disable_qr_code": false,
    "assistant_hide_create_account": false,
    "assistant_hide_third_party_account": false,
    "carddav_servers": [],
    "carddav_user_credentials": false,
...
    "updated_at": "2026-08-20T09:28:37.000000Z",
    "web_panel": true,
    "digest_authentication_configuration": {
        "realm": "realm_example",
        "default_password_algorithm": "SHA-256"
    },
    "oidc_authentication_configuration": null
}

GET /spaces

Super Admin

Get the list of declared Spaces.

GET /spaces/{domain}

Super Admin

Get a Space.

POST /spaces

Super Admin

Create a new space.

JSON parameters:

PUT /spaces/{domain}

Super Admin

Update an existing sip_domain.

JSON parameters: same as for creation except the complete object need to be re-published. domain and host cannot be changed.

DELETE /spaces/{domain}

Super Admin

Delete a domain, be careful, all the related accounts will also be destroyed.

Spaces CardDav Servers

GET /spaces/{domain}/carddavs

Super Admin

List current CardDavs servers.

GET /spaces/{domain}/carddavs/{id}

Super Admin

Get a specific CardDav server.

POST /spaces/{domain}/carddavs

Super Admin

Create a CardDav server configuration.

JSON parameters:

PUT /spaces/{domain}/carddavs/{id}

Super Admin

Update a CardDav server configuration.

JSON parameters:

DELETE /spaces/{domain}/carddavs/{id}

Super Admin

Delete a specific CardDav server configuration.

Spaces Email Server

GET /spaces/{domain}/email

Super Admin

Get a space email server configuration

POST /spaces/{domain}/email

Super Admin

Update an existing a space email server configuration.

JSON parameters:

DELETE /spaces/{domain}/email

Super Admin

Delete the a space email server configuration.

Account Creation Request Tokens

An account_creation_request_token is a unique token that can be validated and then used to generate a valid account_creation_token.

POST /account_creation_request_tokens

Public

Create and return an account_creation_request_token that should then be validated to be used, often using a browser CAPTCHA.

Account Creation Tokens

An account_creation_token is a unique token that allow the creation or the validation of a unique account.

POST /account_creation_tokens/send-by-push

Public

Create and send an account_creation_token using a push notification to the device. Return 403 if a token was already sent, or if the tokens limit is reached for this device. Return 503 if the token was not successfully sent.

JSON parameters:

POST /account_creation_tokens/using-account-creation-request-token

Public

Create an account_creation_token using an account_creation_request_token. Return an account_creation_token. Return 404 if the account_creation_request_token provided is not valid or expired otherwise.

JSON parameters:

POST /account_creation_tokens/consume

User

Consume an account_creation_token and link it to the authenticated account. Return an account_creation_token.

Return 404 if the account_creation_token provided is not valid.

JSON parameters:

POST /account_creation_tokens

Admin

Create and return an account_creation_token.

Account Recovery Tokens

An account_recovery_token is a unique token that allow the recovery of an account.

It can be used on the following page that also accepts a phone optional parameter to prefil the recovery form:

https://voip.dinf.my/recovery/phone/_the_token_
https://voip.dinf.my/recovery/phone/_the_token_?phone=%2B3312341234

POST /account_recovery_tokens/send-by-push

Public

Create and send an account_recovery_token using a push notification to the device. Return 403 if a token was already sent, or if the tokens limit is reached for this device. Return 503 if the token was not successfully sent.

JSON parameters:

Auth Tokens

POST /accounts/auth_token

Public

Generate an auth_token. To attach the generated token to an account see auth_token attachement endpoint.

Return the auth_token object.

GET /accounts/auth_token/{auth_token}/attach

User

Attach a publicly generated authentication token to the currently authenticated account.

Return 404 if the token is non existing or invalid.

Accounts

POST /accounts/with-account-creation-token

Public

Create an account using an account_creation_token.

Return 422 if the parameters are invalid or if the token is expired.

Return 403 if the max_accounts limit of the corresponding Space is reached.

JSON parameters:

GET /accounts/me/api_key/{auth_token}

Public

Generate and retrieve a fresh API Key from an auth_token. The auth_token must be attached to an existing account, see auth_token attachement endpoint to do so.

Return 404 if the token is invalid or not attached.

GET /accounts/me/api_key

User

Generate and retrieve a fresh API Key.

GET /accounts/me

User

Retrieve the account information.

GET /accounts/me/services/turn

User

If configured, returns valid TURN credentials following the draft-uberti-behave-turn-rest-00 IEFT Draft.

GET /accounts/me/provision

User

Provision the account by generating a fresh provisioning_token.

Return the account object.

DELETE /accounts/me

User

Delete the account.

POST /accounts/me/password

User

Change the account password.

JSON parameters:

POST /accounts

Admin

To create an account directly from the API.

Return 403 if the max_accounts limit of the corresponding Space is reached.

JSON parameters:

PUT /accounts/{id}

Admin

Update an existing account. Ensure to resend all the parameters to not reset them.

JSON parameters:

Using this endpoint you can also set a fresh dictionnary if the parameter is set. The existing dictionary entries will be destroyed.

This endpoint also return the current phone_change_code and email_change_code if they are available.

GET /accounts

Admin

Retrieve all the accounts, paginated.

GET /accounts/{id}

Admin

Retrieve a specific account.

GET /accounts/{sip}/search

Admin

Search for a specific account by sip address.

GET /accounts/{email}/search-by-email

Admin

Search for a specific account by email.

DELETE /accounts/{id}

Admin

Delete a specific account and its related information.

POST /accounts/{id}/activate

Admin

Activate an account.

POST /accounts/{id}/deactivate

Admin

Deactivate an account.

POST /accounts/{id}/block

Admin

Block an account.

POST /accounts/{id}/unblock

Admin

Unblock an account.

GET /accounts/{id}/provision

Admin

Provision an account by generating a fresh provisioning_token.

POST /accounts/{id}/send_provisioning_email

Admin

Send a provisioning email to the account.

POST /accounts/{id}/send_reset_password_email

Admin

Send a password reset email to the account.

Account actions

The following endpoints will return 403 Forbidden if the requested account doesn't have a DTMF protocol configured.

GET /accounts/{id}/actions

Admin

Show an account related actions.

GET /accounts/{id}/actions/{action_id}

Admin

Show an account related action.

POST /accounts/{id}/actions/

Admin

Create an account action.

JSON parameters:

PUT /accounts/{id}/actions/{action_id}

Admin

Create an account action.

JSON parameters:

DELETE /accounts/{id}/actions/{action_id}

Admin

Delete an account related action.

Account CardDav credentials

The following endpoints will return 403 Forbidden if the requested account Space doesn't have carddav_user_credentials set to true.

GET /accounts/{id}/carddavs

Admin

Show an account CardDav servers credentials.

GET /accounts/{id}/carddavs/{carddav_id}

Admin

Show an account CardDav server credentials.

PUT /accounts/{id}/carddavs/{carddav_id}

Admin

Create an account CardDav server credentials.

JSON parameters:

DELETE /accounts/{id}/carddavs/{carddav_id}

Admin

Delete an account related action.

Contacts Lists

GET /contacts_lists

Admin

Show all the contacts lists.

GET /contacts_lists/{id}

Admin

Show a contacts list.

GET /contacts_lists/{id}/contacts

Admin

Show the contacts (accounts) attached to the contacts list.

Optional query parameters:

POST /contacts_lists

Admin

Create a contacts list.

JSON parameters:

PUT /contacts_lists/{id}

Admin

Update a contacts list.

JSON parameters:

DELETE /contacts_lists/{id}

Admin

Delete a contacts list.

POST /contacts_lists/{contacts_list_id}/contacts/{contact_id}

Admin

Add a contact to the contacts list.

DELETE /contacts_lists/{contacts_list_id}/contacts/{contact_id}

Admin

Remove a contact from the contacts list.

GET /accounts/{id}/contacts_lists

Admin

Show the contacts lists attached to the account.

POST /accounts/{id}/contacts_lists/{contacts_list_id}

Admin

Add a contacts list to the account.

DELETE /accounts/{id}/contacts_lists/{contacts_list_id}

Admin

Remove a contacts list from the account.

Account Call Forwardings

When a call_forwarding object is configured to forward to a contact (forward_to: 'contact') the SIP URI of the contact is returned in a contact_sip_uri attributes.

{
  "id": 1,
  "type": "always",
  "forward_to": "contact",
  "sip_uri": null,
  "enabled": true,
  "contact_id": 3,
  "updated_at": "2026-03-12T14:53:22.000000Z",
  "created_at": "2026-03-12T14:53:22.000000Z",
  "contact_sip_uri": "sip:mcclure.kailey@sip.example.com"
}

GET /accounts/{id/me}/call_forwardings

User Admin

Return the user Call Forwardings.

GET /accounts/{id/me}/call_forwardings/{call_forwarding_id}

User Admin

Return a Call Forwarding configuration.

POST /accounts/{id/me}/call_forwardings

User Admin

Create a new Call Forwarding configuration.

JSON parameters:

PUT /accounts/{id/me}/call_forwardings/{call_forwarding_id}

User Admin

Create a new Call Forwarding configuration.

JSON parameters:

DELETE /accounts/{id/me}/call_forwardings/{call_forwarding_id}

User Admin

Remove a Call Forwarding configuration.

Account contacts

GET /accounts/{id/me}/contacts

User Admin

Return the user contacts.

GET /accounts/me/contacts/{sip}

User

Return a user contact.

POST /accounts/{id}/contacts/{contact_id}

Admin

Add a contact to the list.

DELETE /accounts/{id}/contacts/{contact_id}

Admin

Remove a contact from the list.

Account dictionary

GET /accounts/{id}/dictionary

Admin

Get all the account dictionary entries.

DELETE /accounts/{id}/dictionary/clear

Admin

Clear all the account dictionary entries.

GET /accounts/{id}/dictionary/{key}

Admin

Get an account dictionary entry.

POST /accounts/{id}/dictionary/{key}

Admin

Add or update a new entry to the dictionary

JSON parameters:

DELETE /accounts/{id}/dictionary/{key}

Admin

Delete an account dictionary entry.

Accounts email

POST /accounts/me/email/request

User

Request to change the account email. An email will be sent to the new email address to confirm the operation.

Will return 403 if the account doesn't have a validated Account Creation Token attached to it.

JSON parameters:

POST /accounts/me/email

User

Confirm the code received and change the email. Activate the account.

JSON parameters:

Return the updated account.

Account external Account

GET /accounts/{id}/external

Admin

Get the external account.

POST /accounts/{id}/external

Admin

Create or update the external account.

JSON parameters:

DELETE /accounts/{id}/external

Admin

Delete the external account.

Account phone number

POST /accounts/me/phone/request

User

Request a specific code by SMS to change the phone number.

Will return 403 if the account doesn't have a validated Account Creation Token attached to it.

JSON parameters:

POST /accounts/me/phone

User

Confirm the code received and change the phone number. Activate the account.

JSON parameters:

Return the updated account.

Saved devices

Devices are exposed through two complementary lists:

GET /accounts/{id/me}/devices

Admin User

Return the user registered devices (live registrations read from Flexisip). This endpoint is unchanged by the chat history synchronization: it does not return the saved devices nor their is_main, is_trusted and last_sync_* fields.

GET /accounts/me/devices/saved

User

Return the devices saved in the database for the authenticated account. Each device contains:

The internal account_id and metadata attributes are never exposed.

POST /accounts/me/devices

User

Save a device of the authenticated account, or update it if it already exists. The device will be created with a 201 status code, or updated with a 200 status code.

Only one device can be the main one: sending is_main set to true while another main device already exists will return a 409 status code. The current main device must be deleted first. Sending is_main set to false on the current main device does not clear the main flag.

JSON parameters:

GET /accounts/me/devices/main

User

Return the main device saved for the authenticated account, or 404 if none is set.

DELETE /accounts/{id/me}/devices/{uuid}

Admin User

Remove one of the user devices. The live registration and the saved device are both removed. Deleting the main device frees the main device slot.

Return a boolean: true when a live registration or a saved device was removed, false otherwise.

POST /accounts/me/devices/{uuid}/deny

User

Deny the pending chat history synchronization request of a saved device. Only the main device can deny a request, and it identifies itself with the X-Device-Uuid header.

Denying sets sync_denied_at and clears sync_requested_at; the device stays untrusted and cannot download the chat history, but it can request the synchronization again later. Return the updated device, 422 if the target device is the main device itself, and 404 if the device does not belong to the authenticated account.

See Synchronization requests for the complete handshake.

Device identification header

The chat history synchronization endpoints and the device trust/revoke/deny endpoints identify the calling device with an X-Device-Uuid HTTP header containing the uuid of a device saved for the authenticated account. A missing or unknown value is rejected with a 403 status code.

This header is not cryptographically authenticated yet: it is only matched against the saved devices of the account. Any client holding valid account credentials can therefore claim any saved device UUID. Device keypairs and per-device tokens are required to make this binding secure and are not implemented yet.

Deprecated. The legacy /chat-sync endpoints return 410. Use the versioned protocol in /api/accounts/me/chat-sync/v1; see docs/chat-sync/protocol-v1.md and docs/chat-sync/openapi/chat-sync-v1.yaml. The text below documents the removed v0 contract for historical reference only.

Chat history synchronization

The chat history is stored on the server as an append-only list of opaque batches uploaded by the main device. The batches are then downloaded by the other devices of the account once they have been trusted by the main device.

All the endpoints in this section, except GET /accounts/me/chat-sync/status, require the usual account authentication and an additional X-Device-Uuid HTTP header containing the uuid of a device saved for the authenticated account with POST /accounts/me/devices. The status endpoint accepts a missing header and then omits the device object.

A missing or unknown X-Device-Uuid header is rejected with a 403 status code containing a JSON message. The header is not cryptographically authenticated yet: it is only checked against the devices saved for the account, so a client holding valid account credentials can claim any saved device UUID. Device keypairs and per-device tokens are not implemented yet. See Saved devices for the device endpoints and their fields.

The payload is an opaque base64 string. The server never parses or decrypts it and does not enforce the optional encoding field, that can be used by the clients to describe how the payload was prepared (json by default, or aes-gcm for a payload encrypted client-side).

GET /accounts/me/chat-sync/status

User

Return the synchronization state of the authenticated account:

POST /accounts/me/chat-sync/uploads

User

Upload a new opaque chat history batch. Return 201 with the created batch.

Only the main device can upload batches: any other device, as well as a revoked device, gets a 403 status code.

The batches are append-only: every accepted upload consumes the next account sequence. When a client_batch_id is sent, uploading the same batch again returns the existing batch without consuming a new sequence (idempotency).

JSON parameters:

GET /accounts/me/chat-sync/uploads

User

Return the batches with a sequence strictly greater than after, ordered by sequence.

The main device and the trusted non-revoked devices can download the batches. Any other device gets a 403 status code.

Query parameters:

The response contains:

POST /accounts/me/chat-sync/ack

User

Acknowledge the last sequence stored locally by the device. The main device and the trusted non-revoked devices can acknowledge batches.

The device last_sync_sequence is only increased (the highest value between the current one and sequence is kept) and last_sync_at is set to the current date.

JSON parameters:

Return the updated device.

Synchronization requests

A new device does not become able to download the chat history by itself. It first registers as a saved device with POST /accounts/me/devices, then asks the main device for a synchronization by calling POST /accounts/me/chat-sync/requests with its own X-Device-Uuid header.

The request sets sync_requested_at on the device. The main device can then:

Requesting a synchronization is idempotent: calling the endpoint again while a request is already pending refreshes sync_requested_at. Requesting while being the main device, or while being revoked, is rejected with a 403 status code. Requesting while the device is already trusted is a no-op: the device is returned unchanged and sync_requested_at stays null. A device can withdraw its pending request at any time with DELETE /accounts/me/chat-sync/requests.

Trusting a device clears both sync_requested_at and sync_denied_at. Revoking a device also clears both fields, so a revoked device has to request a new synchronization and be trusted again.

POST /accounts/me/chat-sync/requests

User

Ask the main device to trust the calling device. The X-Device-Uuid header is required and identifies the requesting device. Return the updated device with sync_requested_at set, or 403 when the calling device is the main device or has been revoked.

DELETE /accounts/me/chat-sync/requests

User

Withdraw the pending synchronization request of the calling device. The X-Device-Uuid header is required. sync_requested_at is cleared and the other fields are left unchanged. Return the updated device.

POST /accounts/me/devices/{uuid}/deny

User

Deny the synchronization request of a device. Only the main device can deny a request, and it identifies itself with the X-Device-Uuid header. Denying sets sync_denied_at and clears sync_requested_at.

Return the updated device, 422 if the target device is the main device itself, and 404 if the device does not belong to the authenticated account.

Device trust

POST /accounts/me/devices/{uuid}/trust

User

Trust a device so that it can download the chat history and acknowledge batches. Only the main device can trust another device, and it identifies itself with the X-Device-Uuid header. This header is not cryptographically authenticated yet (see Saved devices).

Trusting an already trusted device is idempotent: trusted_at is refreshed and revoked_at is cleared. Trusting also clears any pending synchronization request and denial (sync_requested_at and sync_denied_at are reset to null). Return the updated device, or 404 if the device does not belong to the authenticated account.

POST /accounts/me/devices/{uuid}/revoke

User

Revoke a device: it can no longer download the chat history or acknowledge batches. Only the main device can revoke another device, and it identifies itself with the X-Device-Uuid header.

Revocation sets revoked_at, so is_trusted becomes false until the device is trusted again. Revocation also clears sync_requested_at and sync_denied_at. Return 422 if the target device is the main device itself, and 404 if the device does not belong to the authenticated account.

Chat synchronization errors

Account Types

GET /account_types

Admin

Show all the account types.

GET /account_types/{id}

Admin

Show an account type.

POST /account_types

Admin

Create an account type.

JSON parameters:

PUT /account_types/{id}

Admin

Update an account type.

JSON parameters:

DELETE /account_types/{id}

Admin

Delete an account type.

POST /accounts/{id}/types/{type_id}

Admin

Add a type to the account.

DELETE /accounts/{id}/contacts/{type_id}

Admin

Remove a type from the account.

Account vCards storage

POST /accounts/{id/me}/vcards-storage

Admin User

Store a vCard.

JSON parameters:

PUT /accounts/{id/me}/vcards-storage/{uuid}

Admin User

Update a vCard.

JSON parameters:

GET /accounts/{id/me}/vcards-storage

Admin User

Return the list of stored vCards

GET /accounts/{id/me}/vcards-storage/{uuid}

Admin User

Return a stored vCard

DELETE /accounts/{id/me}/vcards-storage/{uuid}

Admin User

Delete a stored vCard

Voicemails

GET /accounts/me/voicemails

User

Return the currently stored voicemails

GET /accounts/me/voicemails/{uuid}

User

{
    id: '{uuid}',
    sip_from: '{sip_address}',
    get_url: 'https://{the file_url}',
    file_size: 2451400, // the file size, in bytes
    content_type: 'audio/{format}',
    created_at: '2025-10-09T12:59:32Z',
    uploaded_at: '2025-10-09T12:59:40Z'
}

Return a stored voicemail

POST /accounts/{id/me}/voicemails

Admin User

Create a new voicemail slot

JSON parameters:

This endpoint will return the following JSON:

{
    id: '{uuid}',
    sip_from: '{sip_address}',
    upload_url: 'https://{upload_service_unique_url}', // unique URL generated to upload the audio file
    download_url: 'https://{download_service_unique_url}', // unique URL generated to download the audio file, null before upload
    max_upload_size: 3000000, // here 3MB file size limit, in bytes
    content_type: 'audio/{format}',
    created_at: '2025-10-09T12:59:32Z', // time of the slot creation
    uploaded_at: null // time when the slot was filled with the audio file
}

DELETE /accounts/{id/me}/voicemails/{uuid}

Admin User

Delete a stored voicemail, if the file is managed by the platform it will be deleted as well

Wizard Link

POST /wizard

Admin

Checkout the related Wizard documentation.

Generate a one-time wizard link to allow users to connect their Linphone client, initiate a call, and more.

JSON parameters:

This endpoint will return the following JSON:

{
    "token": "abc12345",
    "provisioning_account_id": 42,
    "sip": "john@sip.example.org",
    "linphone_action": "call",
    "linphone_use_sips": false,
    "url": "https://{space_host}/wizard/{token}"
}

Notes:

File Upload

POST /files/{uuid}

Admin

Upload a file to a previously created slot. This endpoint will directly be returned when creating the upload slot in the upload_url parameter.

Related endpoints:

HTTP Form-Data parameters:

Messages

POST /messages

Admin

Send a message over SIP.

JSON parameters:

Push Notifications

POST /push_notification

User

Send a push notification using the Flexisip Pusher.

JSON parameters:

Phone Countries

The phone numbers managed by FlexiAPI are validated against a list of countries that can be managed in the admin web panels.

GET /phone_countries

Public

Return the list of Phone Countries and their current status.

If a country is deactivated all the new submitted phones submitted on the platform will be blocked.

POST /phone_countries/{code}/activate

Super Admin

Activate a Phone Country

POST /phone_countries/{code}/deactivate

Super Admin

Deactivate a Phone Country

Statistics

FlexiAPI can record logs generated by the FlexiSIP server and compile them into statistics.

GET /api/accounts/{id/me}/statistics/calls

Admin User

Retrieve all the calls of an account, ordered by most recent first and paginated with their related devices.

POST /statistics/messages

Admin

Announce the creation of a message.

JSON parameters:

PATCH /statistics/messages/{message_id}/to/{to}/devices/{device_id}

Admin

Complete a message status.

JSON parameters:

POST /statistics/calls

Admin

Announce the beginning of a call.

JSON parameters:

PATCH /statistics/calls/{call_id}/devices/{device_id}

Admin

Complete a call status.

JSON parameters:

PATCH /statistics/calls/{call_id}

Admin

Update a call when ending. JSON parameters:

Non-API Endpoints

The following URLs are not API endpoints they are not returning JSON content and they are not located under /api but directly under the root path.

Contacts list

GET /contacts/vcard

User

Return the authenticated user contacts list, in vCard 4.0 format.

Here is the format of the vCard list returned by the endpoint:

BEGIN:VCARD
VERSION:4.0
KIND:individual
IMPP:sip:schoen.tatyana@sip.linphone.org
FN:schoen.tatyana@sip.linphone.org
X-LINPHONE-ACCOUNT-DTMF-PROTOCOL:sipinfo
X-LINPHONE-ACCOUNT-TYPE:phone
X-LINPHONE-ACCOUNT-ACTION:action_key;123
END:VCARD
BEGIN:VCARD
VERSION:4.0
KIND:individual
IMPP:sip:dhand@sip.linphone.org
FN:dhand@sip.linphone.org
X-LINPHONE-ACCOUNT-DTMF-PROTOCOL:sipinfo
END:VCARD

GET /contacts/vcard/{sip}

User

Return a specific user authenticated contact, in vCard 4.0 format.

vCards Storage

GET /vcards-storage

User

Return the list of stored vCards

GET /vcards-storage/{uuid}

User

Return a stored vCard