In the API, a member is called an external user: a member or other person managed by your system. Use this operation to create the record in Cuseum.
The Request
POST https://app.cuseum.com/api/v5/external_users
Authenticate with a Bearer token that includes the
write_external_usersscope.Send the values as URL parameters, not as a JSON body.
URL-encode values such as emails, spaces, plus signs and dates.
Required Parameters
Parameter | Description | Example |
| Identifier of the member in your system. |
|
| Member name. |
|
| Member email address or configured contact identifier. | |
| Membership level to assign. |
|
Optional Parameters
Parameter | Description | Example |
| Membership expiration value. |
|
| Street address. |
|
| City. |
|
| State, province or region. |
|
| Postal or ZIP code. |
|
| Member phone number. |
|
| Member barcode. |
|
| Membership join date. |
|
| Membership number. |
|
| Secondary email address. | |
| Secondary membership number. |
|
| Your own integration-specific value. |
|
cURL Example
curl --request POST \ 'https://app.cuseum.com/api/v5/external_users?external_id=member-12345&name=Example%20Member&email_address=member%40example.com&membership_level=General&expiration=2027-01-01' \ --header 'Authorization: Bearer <access-token>'
A Successful Response
A successful request returns 201 Created and a JSON object for the new member:
{
"id": 123456,
"name": "Example Member",
"address": null,
"city": null,
"state": null,
"postal_code": null,
"phone_number": null,
"email_address": "[email protected]",
"photo": { "url": null, "content_type": null },
"photo_url": null,
"expires_at": "2027-01-01",
"membership_level": "General",
"loyalty_points": 0,
"monthly_loyalty_points": 0,
"monthly_loyalty_actions": 0,
"custom_field": null
}id is the Cuseum ID of the new record. Many fields can be null, so treat them as optional in your application.
If the Request Fails
Check that external_id, name, email_address and membership_level are all present, and that values are URL-encoded. See Handle Errors and Troubleshoot.
