Skip to main content
POST
/
api
/
public
/
ticket
/
metadata
Update metadata of an active ticket
curl --request POST \
  --url https://api.vambe.me/api/public/ticket/metadata \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <x-api-key>' \
  --data '
{
  "metadata": {
    "order_id": "ORD-12345",
    "priority": "high"
  }
}
'

Overview

Update metadata fields for an active ticket. You can identify the target ticket using one of these fields:
  • ticket_id
  • ai_contact_id (uses the contactโ€™s active ticket)
  • contact_number (finds contact and uses active ticket)
This is useful when your integration does not store ticket IDs but does have the contact phone or AI contact ID.

Authentication

Include your API key in the request headers:
x-api-key: your_api_key_here

Request Body

Send one identifier plus metadata:
{
  "contact_number": "+56912345678",
  "metadata": {
    "order_id": "ORD-12345",
    "priority": "high",
    "refund_reason": "damaged_product"
  }
}

Example Request

curl --request POST \
  'https://api.vambe.ai/api/public/ticket/metadata' \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: your_api_key_here' \
  --data-raw '{
    "ai_contact_id": "df980fc8-b6db-4820-bf22-2969482d106d",
    "metadata": {
      "order_id": "ORD-12345",
      "priority": "high"
    }
  }'

Example Response

{
  "status": "ok"
}

Headers

x-api-key
string
required

API key needed to authorize the request

Body

application/json
metadata
object
required
ticket_id
string<uuid>
ai_contact_id
string<uuid>
contact_number
string

Response

Ticket metadata updated successfully