Search the Documentations
Profile Register
The Profile Register API allows you to send information about newly registered profiles to Releva. Unlike the Profile Update API, this API should be called at the time a user completes their registration.
Imporant: If you have a “subscribe to marketing” checkbox on your user registration page, please also call the Profile Subscribe API to mark the newly created users as subscribed.
Request Parameters
You may perform requests to the API using the following curl equivalent:
curl -H 'Content-Type: application/json' -H 'Authorization: Bearer <secretKey>' -XPOST https://releva.ai/api/v0/register -d'{
"email": "info@releva.ai",
"firstName": "Georgi",
"lastName": "Georgiev",
"phoneNumber": "+359....",
"tags": [
"availabe",
"acceptingMessages"
]
}'
The profile Object
Field | Type | Description |
---|---|---|
String | User’s email address. | |
firstName | String (Optional) | User’s first name. |
lastName | String (Optional) | User’s last name. |
phoneNumber | String (Optional) | User’s phones number. Phone numbers must start with “+” followed by a sequence of numbers. Valid phone number: +49875345976. |
tags | Array[String] (Optional) | Tags to apply to the user. |
A successful response will return HTTP Status 202 with an empty response body ({}).
Response Format
An error response will return a HTTP 4xx or 5xx status code and have the following structure:
{
"message": "A description of the error and how to fix it, if it's a client error."
}