Provision an agent
Trillet OEM API: Gives one of your customers a working, tested agent from a single request.
Gives one of your customers a working agent from a single request. The tenant is found by
tenant.externalId, or created when no live tenant has it. A job then builds one agent per
language from the business details and your template, calls it with test callers, fixes
what they find and calls again.
Answers 202 at once. Follow the job with GET /partner/v1/jobs/{jobId} or the
provision.* events. A build takes about 6 to 10 minutes.
Needs tenants:write and resources:write. Idempotency-Key is required.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Header Parameters
1 to 255 printable ASCII characters, no spaces. A retry with the same key and request
returns the stored response for 24 hours instead of running again. Failed responses are
stored too, except 5xx, 401, 403, 409 and 429: after fixing the cause of a 4xx
such as 402 insufficient_funds, retry with a new key.
>= 1, <= 255Body
tenantobjectrequiredThe customer. A live tenant with this externalId is used as it is; otherwise one is
created from these fields.
tenant.externalIdstringrequired>= 1, <= 128tenant.namestringDefaults to business.name.
>= 1, <= 100tenant.region"us" | "au""us" | "au"tenant.packagestring | null>= 1, <= 64tenant.industrystring | null>= 1, <= 64tenant.externalRefsobject | nulltenant.metadataobjecttenant.limitsobjectbusinessobjectrequiredWhat you know about the business. Anything you send wins over what its website says.
business.namestringrequired>= 1, <= 120business.websitestringRead to fill in what you did not send.
<= 300business.aboutstringA few lines about the business.
<= 4000business.industrystring<= 120business.timezonestringAn IANA timezone, such as Europe/Zurich.
<= 60business.factsobjectbusiness.openingHoursarray<object><= 14 elementsbusiness.rulesarray<string><= 12 elementsbusiness.urgentMeansstringWhat counts as urgent for this business.
<= 200business.captureFieldsarray<object><= 6 elementsbusiness.scriptstringThe business's own call script
<= 20000templateanyYour template for this kind of customer: the text of your template file, or an object with the text and any parts you want applied exactly. Used for this build and kept on the receptionist as sent.
languagesarray<"en" | "de" | "fr" | "it" | "es">One agent per language. The first is the one callers reach. Defaults to the language of the website, or English.
<= 4 elementsvoicesobjectA voice ID per language code. A local voice is chosen when left out.
transferNumberstringWhere calls are transferred to a person. Leave out for a message-taking agent.
<= 40bookingLinkUrlstringAn https booking page the agent can text to callers.
<= 500notificationsobjectnotifications.emailstringWhere the business receives call summaries and alerts.
<= 200notifications.summarybooleanEmail a summary after each call.
truenotifications.urgentbooleanAdd a workflow that emails urgent calls at once.
falsenotifications.callbacksbooleanAdd a workflow that emails call-back requests.
falsetestsobjecttests.skipbooleanBuild without test calls.
falsetests.passRatenumberThe share of test calls that must pass for the receptionist to be ready.
x >= 0, x <= 10.8goLive"auto" | "approval"approval holds a passing receptionist as needs_review until you approve it.
"auto" | "approval""auto"Response
The job was queued.
objectstringrequiredtenantCreatedbooleanrequiredWhether this request created the tenant.
jobobjectrequiredjob.objectstringrequiredjob.idstringrequired^[a-fA-F0-9]{24}$job.type"provision"required"provision"job.status"queued" | "running" | "succeeded" | "failed"required"queued" | "running" | "succeeded" | "failed"job.stage"reading" | "building" | "testing" | "finishing" | nullWhere a running job is. null otherwise.
"reading" | "building" | "testing" | "finishing" | nulljob.tenantIdstring | nulljob.attemptsintegerjob.resultobject | nullSet when a provisioning job succeeds.
job.errorobject | nulljob.createdAtstring | null<date-time>job.startedAtstring | null<date-time>job.finishedAtstring | null<date-time>tenantobjectrequiredtenant.objectstringrequiredtenant.idstringrequiredUse it in paths and as x-workspace-id on standard endpoints.
^[a-fA-F0-9]{24}$tenant.externalIdstringrequiredYour ID for this customer.
tenant.namestringrequiredtenant.status"active" | "suspended" | "deleted" | "provisioning_failed"required"active" | "suspended" | "deleted" | "provisioning_failed"tenant.region"us" | "au"required"us" | "au"tenant.packagestring | nullYour own label for the plan or package this customer is on.
tenant.industrystring | nullYour own label for the customer's industry.
tenant.externalRefsobjectFurther IDs of your own for this customer, by name. Not unique. Names are not constructor, prototype or __proto__.
tenant.metadataobjectrequiredtenant.limitsobjectrequiredtenant.suspendedAtstring | null<date-time>tenant.suspendedReasonstring | nulltenant.deletedAtstring | null<date-time>tenant.createdAtstring<date-time>requiredreceptionistobjectrequiredreceptionist.objectstringrequiredreceptionist.tenantIdstringrequired^[a-fA-F0-9]{24}$receptionist.businessNamestring | nullreceptionist.status"building" | "ready" | "needs_review" | "failed"required"building" | "ready" | "needs_review" | "failed"receptionist.reviewReason"tests_failed" | "tests_unavailable" | "approval_required" | null"tests_failed" | "tests_unavailable" | "approval_required" | nullreceptionist.goLive"auto" | "approval""auto" | "approval"receptionist.frontDoorAgentIdstring | nullThe agent callers reach first. Assign the customer's number to this one.
receptionist.agentsarray<object>requiredreceptionist.testsobjectrequiredreceptionist.openQuestionsarray<object>Things the test calls could not settle from what was provided.
receptionist.workflowsarray<object>receptionist.templateobject | nullThe template sent with the request, as sent.
receptionist.jobIdstring | nullreceptionist.approvedAtstring | null<date-time>receptionist.createdAtstring | null<date-time>receptionist.updatedAtstring | null<date-time>Last updated on