דלג לתוכן הראשי
GET
/
labels
curl -g "https://YOUR_PROJECT.texterchat.com/server/api/v2/labels" \
  -H "Authorization: Bearer YOUR_API_TOKEN"
{
  "total": 3,
  "labels": [
    {
      "id": "hp-high-priority",
      "name": "High Priority",
      "color": "#F47373"
    },
    {
      "id": "hot_lead",
      "name": "HOT LEAD",
      "color": "#2CCCE4"
    },
    {
      "id": "VIP",
      "name": "VIP",
      "color": "#dce775"
    }
  ]
}

הרשאות

Authorization
string
header
נדרש

API token generated in Texter: gear icon → Developers → API Tokens. When creating a token, assign it the scopes required by the endpoints you plan to call - each endpoint lists its required scopes.

פרמטרי שאילתה

limit
string

The maximum number of results to return (1-10000)

skip
string

The number of results to skip before starting to return records (0-100000)

תגובה

The labels and total count. Field-by-field reference: The Label object

total
number

Total number of labels

labels
object[]