דלג לתוכן הראשי
GET
/
labels
/
{labelId}
Get Label Data
curl --request GET \
  --url https://{projectID}.texterchat.com/server/api/v2/labels/{labelId} \
  --header 'Authorization: Bearer <token>'
{
  "id": "failed_message",
  "name": "שליחה נכשלה",
  "color": "#e80303"
}

הרשאות

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.

פרמטרי נתיב

labelId
string
נדרש

The unique identifier of the label. You can retrieve all existing labels using the List All Labels endpoint

תגובה

The label object. Field-by-field reference: The Label object

A label defined in Texter

id
string

Unique label ID (1-100 characters)

דוגמה:

"hot_lead"

name
string

Display name (1-100 characters)

דוגמה:

"HOT LEAD"

color
string

Full hex color (#RRGGBB). Defaults to #555555 when omitted at creation

דוגמה:

"#2CCCE4"

system
boolean

Present and true on system labels (defined by Texter, e.g. failed-message). System labels cannot be created or deleted via the API; only their name and color can be updated