API

Response Codes

HTTP-Code

Reason

200

Request was successful

400

The request body or session ID is invalid and/or missing

403

The deployment was blocked or the service account key is no longer valid

404

The deployment was not found

500

Internal server error

503

The service is unavailable

Errors

Example Error

{"error": "Deployment was not found", "code": 404}

Endpoints

Base Endpoint

https://<HOST>

Base Endpoint Variables

Variable

Description

HOST

Required, Host of the Core

Base Endpoint Example

Requests

Retrieving Agents

Request

Request Variables

Variable

Description

BASE_ENDPOINT

Required, Endpoint of the Core

Response Body

Agentarrow-up-right

Example Request

Example Response

Detecting Intents

Request

Request Variables

Variable

Description

BASE_ENDPOINT

Required, Endpoint of the Core

Request Body

DetectIntentRequestarrow-up-right

Response Body

DetectIntentResponsearrow-up-right

Example Request

Note: session field is converted into projects/<Project ID>/agent/sessions/<Session ID>

Example Response

Realtime API

Realtime API implements Secure WebSocketarrow-up-right communication between Core and the clients

Close Codes

Code

Reason

4400

The request body or session ID is invalid and/or missing

4403

The deployment was blocked or the service account key is no longer valid

4404

The deployment was not found

4500

Internal server error

1006

Realtime API unavailable

Errors

Example Error

Endpoints

Base Endpoint

Base Endpoint Variables

Variable

Description

HOST

Required, Host of the Core

Base Endpoint Example

Requests

Detecting Intents

Request

Request Variables

Variable

Description

BASE_ENDPOINT

Required, Endpoint of the Core

Request Body

DetectIntentRequestarrow-up-right

Response Body

DetectIntentResponsearrow-up-right

Example Request

Note: The examples are using NodeJS

Note: session field is converted into projects/<Project ID>/agent/sessions/<Session ID>

Example Response

Last updated