Provisioning
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:
In the portal, one account at a time. See Provision an account in the portal.
Through the provisioning API, when you want to create accounts from your own ordering or onboarding system. See Provision an account with the API.
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.
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.
You hold the
Client.Createright ("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:
| What | Detail |
|---|---|
| First user | A portal user for your customer, created from the email address you give. You can choose to send them a welcome email. |
| Retention | A copy of your parent account's default retention group. |
| Account settings | A copy of your parent account's settings, with the exceptions listed below. |
| API service user | A service user and API key for the new account, so you can integrate with it straight away. |
| Encryption keys | The 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#
Sign in to the Focus portal with your partner account.
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.
Select Create new account, shown at the top of the list as Provision a new child account.
Fill in the form:
Field What to enter Account name Your customer's name. It must be unique across Focus. Telephony guid The 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 address The email address of the customer's first user. This is what they sign in with. Send welcome email Tick this to email the first user as soon as the account is created. 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.
Select Manage child accounts.
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:
Microsoft Teams. The Teams setup wizard links the customer's Microsoft tenant to the account for you.
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#
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | The account name. Must be unique across Focus. |
telephonyGuid | string (GUID) | Yes | The unique identifier for the account. Generate a new GUID for each customer and keep it. |
newUserRequests | array | Yes | The users to create in the new account. Send at least the customer's first user. |
newUserRequests[].username | string | Yes | The user's email address. They sign in with it. |
newUserRequests[].password | string | Yes | The user's initial password. |
newUserRequests[].sendWelcomeEmail | boolean | No | Set to true to email the user when the account is created. |
metadata | object | No | Your own reference data to store against the account, for example an order or customer number. |
Example#
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
{
"clientId": 1234,
"serviceUserApiKey": "<api key>"
}| Field | Description |
|---|---|
clientId | The numeric ID of the new account. Use it with the account's API key to authenticate as that account. |
serviceUserApiKey | The 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#
| Status | When |
|---|---|
400 Bad Request | The body is not valid, or the name already exists with a different telephonyGuid, or the telephonyGuid already exists with a different name. |
401 Unauthorized | The bearer token is missing or has expired. |
403 Forbidden | The 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:
Connect their platform. For Microsoft Teams, see Link a Microsoft Teams tenant.
Tell Focus who to record. See Add subscribers and endpoints.
Related pages#
Users and Permissions, for adding more users to a child account.
Link a Microsoft Teams tenant and Add subscribers and endpoints, the next steps for a new account.
Recorders, for connecting the customer's platform.
Focus API overview, for everything else you can do with the API once an account exists.