Get list of Contact Fields

GET/services/{serviceUuid}/cds/fields

Get list of Contact Fields

Base URL
https://api-cpaas.sms.es/news/v1
Authentication

OAuth2 — send Authorization: Bearer <access_token>. Token URL: https://accounts-cpaas.sms.es/oauth2/access-token

Request

Path parameters

serviceUuidstringrequired

service (BM Account) UUID

Query parameters

include_allstring

Appends custom fields and returns more detailed information about fields (use value 1 to set it)

Possible values: 1

Request example

cURL · cURL
curl -L -X GET "https://api-cpaas.sms.es/news/v1/services/{serviceUuid}/cds/fields" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer <access_token>"

Responses

List of all fields (when include_all = 1), in the case of 0 or none, simple array of strings is returned

application/json
display_namestringrequired
field_typestringrequired
Possible values: text, varchar, integer, float, double, date, datetime, list
field_namestring
mandatorystringrequired
Possible values: no, yes
order_numintegerrequired
configobject
identifierstringrequired
Possible values: no, yes
Example response
[
  {
    "display_name": "string",
    "field_type": "text",
    "field_name": "string",
    "mandatory": "no",
    "order_num": 0,
    "config": {},
    "identifier": "no"
  }
]