Enterprise Sign up - POST users
curl --location 'rapidpaceAPI/enterprises/sign_up \
--header 'x-api-key: #App API KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
"app_id": "XYZ",
"users": [
{
"email": "jane@mailinator.com",
"first_name": "Jane",
"last_name": "Doe"
}
]
}'
Enterprise Sign in - POST sign_in
curl --location 'rapidpaceAPI/enterprises/sign_in' \
--header 'x-api-key: #App API KEY \
--header 'Content-Type: application/json' \
--data '{
"app_id": "a3qc0lwq",
"user_id": "a3qc0lwq"
}'
Enterprise Redirect URL:
https://yourdomain.com/redirect?token=YOUR_TOKEN_FROM_SIGN_IN_API
Sending Emails:
curl --location 'https://papi.urm.app/api/send_email' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'x-api-key: **comms_api_key**' \
--data-raw '{
"app_id": "**app_id**",
"channel_id": "**channel_id**",
"profile_id": "**playerId**",
"to_addresses": [
{"email": "**abx@xyz.net**", "name": "**John Doe**"}
],
"reply_to": "**reply_to**",
"reply_to_name": "**reply_to_name**",
"from_email": "**from_email**",
"from_name": "**from_namel**",
"subject": "**subject**",
"html_body": **html_body**",
"text_body": "**text_body**"
}'
app_id: is already in AMG’s Back office
comms_api_key: this needs to be added to the back office, this is different to the event api key
channel_id: This one also needs to be added to the back office
playerId: the same playerId you send to the CRM with the events.
