Creating profiles with APIs creating-profiles-api

Creating profiles is performed with a POST request on the profile resource.

If you want to associate an orgUnit to the created profile, you need to extend the profile resource with this field and, after the publication of the extension, perform a POST request on the ProfileAndServicesExt endpoint.
For more on the profile’s resource extension, refer to the Campaign documentation.

Sample request

Sample POST request to create a profile with the email “”.

-X POST<ORGANIZATION>/campaign/profileAndServices/profile \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <ACCESS_TOKEN>' \
-H 'Cache-Control: no-cache' \
-H 'X-Api-Key: <API_KEY>' \
-d '{"email":""}'

It returns the newly created profile, with the “” email address.

    "PKey": "<PKEY>",
    "firstName": "John",
    "birthDate": "1980-10-24",
    "email": "",