Create Contact

This endpoint creates a new Contact.

Request

To create a Contact please make a POST request to the following URL:

HTTP MethodURL
POSThttps://industrial.api.ubidots.com/api/v2.0/contacts/

Body Parameters

ParameterTypeRequired?Default ValueDescription
nameStringYesN/A (required)Name of the Contact. Max 200 characters
labelStringNoGenerated from nameLabel of the Contact, stored in lowercase. Max 200 characters. Must be unique in the account
descriptionStringNo""Description of the Contact
tagsString ArrayNo[]Tags of the Contact. Duplicates are removed and tags are stored in lowercase
propertiesObjectNo{}Custom properties. Custom keys must be declared in _config, otherwise they are dropped
contact_methodsArrayYesN/A (required)At least one contact method
schedulersArrayNo[]List of schedulers

Scheduler contact_methods refer to the contact method ids, which you can work out before creating the Contact.

Header

ParameterRequired?Description
X-Auth-TokenYesAuthentication Token of account
Content-TypeYesapplication/json
$ curl -X POST 'https://industrial.api.ubidots.com/api/v2.0/contacts/' \
 -H 'X-Auth-Token: oaXBo6ODhIjPsusNRPUGIK4d72bc73' \
 -H 'Content-Type: application/json' \
 -d '{
    "name": "Jane Doe",
    "description": "Maintenance supervisor, plant 1",
    "tags": [
        "maintenance",
        "plant-1"
    ],
    "contact_methods": [
        {
            "type": "email",
            "email": "[email protected]"
        },
        {
            "type": "sms",
            "country": {
                "value": "+57"
            },
            "number": "+573001234567"
        }
    ],
    "schedulers": [
        {
            "timezone": "America/Bogota",
            "days_week": [
                [
                    [
                        "08:00",
                        "18:00"
                    ]
                ],
                [
                    [
                        "08:00",
                        "18:00"
                    ]
                ],
                [
                    [
                        "08:00",
                        "18:00"
                    ]
                ],
                [
                    [
                        "08:00",
                        "18:00"
                    ]
                ],
                [
                    [
                        "08:00",
                        "18:00"
                    ]
                ],
                [],
                []
            ],
            "contact_methods": [
                "sms:+57-+573001234567"
            ]
        }
    ]
}'
{
    "url": "https://industrial.api.ubidots.com/api/v2.0/contacts/6740e1c2f1a3b2000c9d4e51",
    "id": "6740e1c2f1a3b2000c9d4e51",
    "label": "jane-doe",
    "name": "Jane Doe",
    "description": "Maintenance supervisor, plant 1",
    "tags": [
        "maintenance",
        "plant-1"
    ],
    "properties": {
        "_config": null
    },
    "contact_methods": [
        {
            "id": "email:[email protected]",
            "type": "email",
            "is_active": true,
            "email": "[email protected]"
        },
        {
            "id": "sms:+57-+573001234567",
            "type": "sms",
            "is_active": true,
            "country": {
                "id": "CO",
                "label": "Colombia",
                "value": "+57"
            },
            "number": "+573001234567"
        }
    ],
    "schedulers": [
        {
            "timezone": "America/Bogota",
            "days_week": [
                [
                    [
                        "08:00",
                        "18:00"
                    ]
                ],
                [
                    [
                        "08:00",
                        "18:00"
                    ]
                ],
                [
                    [
                        "08:00",
                        "18:00"
                    ]
                ],
                [
                    [
                        "08:00",
                        "18:00"
                    ]
                ],
                [
                    [
                        "08:00",
                        "18:00"
                    ]
                ],
                [],
                []
            ],
            "contact_methods": [
                "sms:+57-+573001234567"
            ]
        }
    ],
    "createdAt": "2026-11-20T14:03:11.512000Z"
}
{
    "code": 400001,
    "message": "Validation Error.",
    "detail": {
        "contact_methods": [
            "This list may not be empty."
        ]
    }
}
{
    "code": 401001,
    "message": "Authentication credentials were not provided.",
    "detail": "Authentication credentials were not provided."
}
{
    "code": 402001,
    "message": "Your current plan does not include this feature."
}
{
    "detail": "You do not have permission to perform this action."
}

Response

Returns the created Contact object.

A contact method with a missing field for its type (for example an email method without email), a phone number that is not in international format, an unknown country code or a days_week without exactly 7 days returns 400 Bad Request.