Skip to main content
Gets the latest phone deployment for an assistant. Use user-scoped authentication because the operation requires organization and project context.
For setup and authentication options, see the Installation guide and Authentication.

Parameters

connectionConfig
ConnectionConfig
required
Configuration for the client connection.
request
GetAssistantDeploymentRequest
required
Deployment lookup request.

Usage

import {
  ConnectionConfig,
  GetAssistantDeploymentRequest,
  GetAssistantPhoneDeployment,
} from "@rapidaai/react";

const auth = ConnectionConfig.WithDebugger({
  authorization: "AUTHORIZATION_TOKEN_PLACEHOLDER",
  userId: "AUTH_ID_PLACEHOLDER",
  projectId: "PROJECT_ID_PLACEHOLDER",
});
const connectionCfg = ConnectionConfig.DefaultConnectionConfig(auth);

const request = new GetAssistantDeploymentRequest();
request.setAssistantid("ASSISTANT_ID_PLACEHOLDER");

const response = await GetAssistantPhoneDeployment(connectionCfg, request);
console.dir(response.toObject());

Response

code
int32
Numeric status code for the operation.
success
boolean
Indicates whether the operation was successful.
data
AssistantPhoneDeployment
Phone deployment. If no deployment exists, the deployment field may be omitted.
error
Error
Error details when the operation fails.

Errors

CodeMeaning
1010001Unauthenticated request.
1010002Missing authentication scope.
1010003Invalid assistantId.
1010004Unable to get assistant phone deployment.