variables

Create an Agent Variable

Changed on

Creates a new template variable. Variables follow the DG_<VARIABLE_NAME> naming format and can substitute any JSON value in an agent configuration.

post/v1/projects/{project_id}/agent-variables

Request

  • Base URL
    https://api.deepgram.com
  • Auth
    API key in header Authorization

Path parameters

project_idstring required

The unique identifier of the project

Request body

keystring required

The variable name, following the DG_<VARIABLE_NAME> format

valueunknown required
api_versioninteger

API version. Defaults to 1

Response

Agent variable created successfully

variable_idstring required

The unique identifier of the variable

keystring required

The variable name, following the DG_<VARIABLE_NAME> format

valueunknown required
created_atstring date-time

Timestamp when the variable was created

updated_atstring date-time

Timestamp when the variable was last updated

Changes