Skip to main content
PATCH
/
agents
/
{id}
Update agent
curl --request PATCH \
  --url https://app.relyable.ai/api/agents/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "provider": "VAPI",
  "type": "INBOUND",
  "promptType": "SINGLE",
  "name": "<string>",
  "apiKey": "<string>",
  "assistantId": "<string>",
  "language": "<string>",
  "phoneNumber": "<string>",
  "prompt": "<string>",
  "callMonitoring": true,
  "isUsingDefaultApiKey": true,
  "webhookUrl": "<string>",
  "phoneNumberId": "<string>",
  "webhookSecret": "<string>"
}
'
{
  "message": "<string>",
  "data": {
    "provider": "VAPI",
    "type": "INBOUND",
    "promptType": "SINGLE",
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "name": "<string>",
    "created_at": "<string>",
    "updated_at": "<string>",
    "apiKey": "<string>",
    "assistantId": "<string>",
    "createdByUserId": "<string>",
    "deletedAt": "<string>",
    "language": "<string>",
    "phoneNumber": "<string>",
    "prompt": "<string>",
    "workspaceId": "<string>",
    "callMonitoring": true,
    "isUsingDefaultApiKey": true,
    "webhookUrl": "<string>",
    "phoneNumberId": "<string>",
    "webhookSecret": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required
Minimum string length: 1

Body

application/json
provider
enum<string>
Available options:
VAPI,
RETELL,
TIXAE,
ELEVENLABS
type
enum<string> | null
Available options:
INBOUND,
OUTBOUND,
promptType
enum<string> | null
Available options:
SINGLE,
MULTIPLE,
name
string | null
apiKey
string
assistantId
string
language
string | null
phoneNumber
string | null
prompt
string | null
callMonitoring
boolean
isUsingDefaultApiKey
boolean
webhookUrl
string | null
phoneNumberId
string | null
webhookSecret
string

Response

Successful response

message
string
required
data
object
required
{key}
any