POST
/
agents
curl --request POST \
  --url https://eu-west-1.api.neuphonic.com/agents \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '{
  "name": "<string>",
  "prompt": "<string>",
  "greeting": "<string>"
}'
{
  "data": {
    "message": "<string>",
    "id": "<string>"
  }
}

Authorizations

X-API-KEY
string
header
required

API Key Authentication. Get your API key from the Neuphonic website.

Body

application/json
name
string

The name of the agent.

prompt
string

The prompt for the agent.

greeting
string

The greeting for the agent.

Response

200
application/json
Successful Response
data
object

The data payload for the response.