Provisioning

Updated 16 Nov 20266 min read

How partners create and manage Focus accounts for their customers, in the portal or through the provisioning API.

As a Subphonic partner you manage Focus on behalf of your own customers. Each customer gets their own Focus account, created underneath yours. Your account is the parent account and each customer's is a child account.

A child account is a complete, separate Focus account. It has its own users, recordings, retention rules and settings, and your customer's users never see your account or any other customer's.

You can provision a child account in two ways:

Both routes do exactly the same thing. The portal calls the same API described on this page.

Before you start#

Two things must be true before you can provision accounts.

  1. Your account is enabled for partner provisioning. Subphonic switches this on for your parent account. There is no setting for it in the portal. If you are a partner and cannot see the option to create an account, contact Subphonic support.

  2. You hold the Client.Create right ("Create client account"). The Partner user and Partner admin user roles both include it. See Permissions for how roles and rights work.

What a new account gets#

When you provision a child account, Focus sets it up ready to use:

WhatDetail
First userA portal user for your customer, created from the email address you give. You can choose to send them a welcome email.
RetentionA copy of your parent account's default retention group.
Account settingsA copy of your parent account's settings, with the exceptions listed below.
API service userA service user and API key for the new account, so you can integrate with it straight away.
Encryption keysThe account's own keys for protecting its recordings.

Some settings are deliberately not copied from the parent, so that a new customer starts from a safe baseline. You switch each one on for the child account when the customer needs it:

  • Transcription is off.

  • Communication review is off.

  • Bring-your-own storage is off.

  • Microsoft Entra ID sync is off and has no tenant or domains configured.

Provision an account in the portal#

  1. Sign in to the Focus portal with your partner account.

  2. At the bottom of the main menu, select Manage child accounts. The Switch to child account panel opens and lists every child account you already have.

  3. Select Create new account, shown at the top of the list as Provision a new child account.

  4. Fill in the form:

    FieldWhat to enter
    Account nameYour customer's name. It must be unique across Focus.
    Telephony guidThe unique identifier for the account. Focus generates one for you. Select Regenerate for a new one, or paste your own if your systems already hold an identifier for this customer. It must be a valid GUID.
    Email addressThe email address of the customer's first user. This is what they sign in with.
    Send welcome emailTick this to email the first user as soon as the account is created.
  5. Select Create account.

When the account has been created you return to the list, filtered to the new account's name.

Work in a child account#

To set a customer's account up, or to support them later, you work inside their account.

  1. Select Manage child accounts.

  2. Use Search to find the account, then select Sign in next to it.

You are now working in the child account, with the menu and data of that account. To go back, select Return to followed by your parent account's name, at the bottom of the main menu.

Signing in to a child account needs the "Access child accounts" right, which the partner roles include. Seeing the list needs "View child accounts".

Set up recording for the new account#

A new account has no recorders connected. Once you are working in the child account, connect the customer's platform in the usual way:

Provision an account with the API#

The provisioning endpoints are part of the Focus REST API. They use the same base URL and the same bearer token as every other endpoint. If you have not used the API before, start with Getting Started, which covers base URLs and authentication.

Authenticate with an API key that belongs to your parent account. The API user must hold the Client.Create right.

Create a child account#

POST {{baseUrl}}/admin/provisioning/account

Request body#

FieldTypeRequiredDescription
namestringYesThe account name. Must be unique across Focus.
telephonyGuidstring (GUID)YesThe unique identifier for the account. Generate a new GUID for each customer and keep it.
newUserRequestsarrayYesThe users to create in the new account. Send at least the customer's first user.
newUserRequests[].usernamestringYesThe user's email address. They sign in with it.
newUserRequests[].passwordstringYesThe user's initial password.
newUserRequests[].sendWelcomeEmailbooleanNoSet to true to email the user when the account is created.
metadataobjectNoYour own reference data to store against the account, for example an order or customer number.

Example#

bash
curl -X POST "$BASE_URL/admin/provisioning/account" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Example Customer Ltd",
    "telephonyGuid": "3f2504e0-4f89-11d3-9a0c-0305e82c3301",
    "newUserRequests": [
      {
        "username": "admin@example-customer.com",
        "password": "<initial password>",
        "sendWelcomeEmail": true
      }
    ],
    "metadata": {
      "orderReference": "ORD-10432"
    }
  }'

Response#

200 OK

json
{
  "clientId": 1234,
  "serviceUserApiKey": "<api key>"
}
FieldDescription
clientIdThe numeric ID of the new account. Use it with the account's API key to authenticate as that account.
serviceUserApiKeyThe API key for the new account's service user. Treat it like a password and store it securely.

Calling it more than once#

The call is safe to repeat. If you send the same name and the same telephonyGuid again, Focus returns the existing account instead of creating a second one. This means you can retry after a timeout without checking first.

The name and the telephonyGuid must always match as a pair. Focus rejects the request if either one already belongs to a different account.

Errors#

StatusWhen
400 Bad RequestThe body is not valid, or the name already exists with a different telephonyGuid, or the telephonyGuid already exists with a different name.
401 UnauthorizedThe bearer token is missing or has expired.
403 ForbiddenThe caller does not hold Client.Create, your account is not enabled for partner provisioning, or the name or GUID belongs to an account that is not one of your child accounts.

What to do next#

Creating the account is the first step. To get a customer recording, you then:

  1. Connect their platform. For Microsoft Teams, see Link a Microsoft Teams tenant.

  2. Tell Focus who to record. See Add subscribers and endpoints.

Was this page helpful?