APIs to onboard and manage users.
curl -i -X PUT \
https://apis.spotnana.com/v2/users/4974a66b-7493-4f41-908c-58ba81093947/notification-preferences \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"preferences": [
{
"notificationType": "FLIGHT_NOTIFICATION",
"emailPreference": {
"enabled": true,
"ccEmails": [
"user@example.com"
]
}
}
]
}'
curl -i -X GET \
https://apis.spotnana.com/v2/users/4974a66b-7493-4f41-908c-58ba81093947/travel-arrangers \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
{ "travelArrangers": [ { … } ] }
curl -i -X GET \
'https://apis.spotnana.com/v2/users/4974a66b-7493-4f41-908c-58ba81093947/external-id?includeInactive=true' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
{ "externalId": "user-1" }