Link: https://support.brilliantdirectories.com/support/solutions/articles/12000103947
The API allows for creating, reading, updating, deleting, and searching users within the database. Below is a list of available endpoints and their usage.
To search for members by address, enable the setting: Enable All Location Features for "Pretty URL" Search Results Pages (Additional Google Maps API Cost) in the site's Advanced Settings.
For detailed instructions, please refer to the guide here: Set Up Pretty URLs with Google Maps.
Available Endpoints
Below is a list of the available endpoints for managing users:
- https://example.com/api/v2/user/get/{user_id}
- https://example.com/api/v2/user/create
- https://example.com/api/v2/user/update
- https://example.com/api/v2/user/delete
- https://example.com/api/v2/user/search
- https://example.com/api/v2/user/transactions
Get a User
Retrieve details of a single user using their user_id.
Parameter Notes: Use user_id.
Endpoint:
Example Request:
property | The property key (eg., user_id). |
property_value | The value associated with the property. |
Example Response:
Create a User
Add a new user to the database.
Parameter Notes: The user_id will be assigned by the system.
Use the variables shown on the import file: How To Import Members Via CSV File.
Required: email, password.
Endpoint:
Example Request:
Query Parameters:
user_id | The unique identifier for the user. |
first_name | The user's first name. |
last_name | The user's last name. |
The user's email address. | |
password | The user's account password. |
subscription_id | The ID of the user's subscription plan. |
company | The name of the company the user is associated with. |
phone_number | The user's contact phone number. |
address1 | The user's primary address. |
address2 | Additional address details (e.g., apartment, suite). |
city | The city where the user resides. |
zip_code | The user's postal or ZIP code. |
state_code | The state abbreviation. |
state_ln | The full name of the state. |
country_code | The country code. |
country_ln | The full name of the country. |
website | The user's personal or company website URL. |
The user's Twitter / X profile URL. | |
youtube | The user's YouTube profile URL. |
The user's Facebook profile URL. | |
The user's LinkedIn profile URL. | |
The user's Instagram profile URL. | |
The user's Pinterest profile URL. | |
blog | The user's blog URL. |
quote | A personal or professional quote from the user. |
experience | Year Established. |
affiliation | Accepted payment methods. |
awards | Awards and recognitions received by the user. |
about_me | Additional personal or business details. |
featured | Indicates if the user is featured. |
modtime | The last modification timestamp. |
active | The user's account status. |
signup_date | The date and time the user signed up. |
last_login | The date and time of the user's last login. |
position | The user's job position or title. |
credentials | The user's academic or professional credentials. |
profession_id | The ID of the Category |
verified | Indicates if the user is verified. |
listing_type | The type of user listing (e.g., individual, business). |
lat | The user's latitude coordinates. |
lon | The user's longitude coordinates. |
search_description | A short description for search results. |
send_email_notifications | Set to 1 to trigger email sign up email notifications. |
Example Response:
Update a User
Modify an existing user’s data.
Parameter Notes: Use user_id.
Key Considerations | Details |
Adding New Services (Sub & Sub-Sub Categories) | Use create_new_categories = 1. Sub and sub-sub categories must match their parent categories. |
Email & Password Rules | Duplicate emails allowed only if allow_duplicate_member_emails is enabled. Email + password combo must be unique. |
Token Requirements | Must be alphanumeric, 32 characters long, and unique. |
Accepted Field Values | All values must match accepted defaults. Refer to the member import template for guidance. |
Referencing Categories in API | Use single quotes around category names (e.g., '25-30'). |
Subscription & Profession ID Requirements | The subscription_id and profession_id must be created within the site before they can be used or updated via spreadsheet. This means the membership plan and categories must already exist for the API call to work properly. → Finance » Membership Plans Overview → How To Import Categories Via CSV File |
Endpoint:
Example Request:
Example Response:
Delete a User
Remove a user from the database.
Parameter Notes: Use user_id.
Endpoint:
Example Request:
Example Response:
Search Users
Find users based on criteria.
Parameter Notes: Use q, address, pid,tid,ttid.
Endpoint:
Example Request:
Query Parameters:
dynamic | Set to 1 to simulate a Dynamic Category Filter search. |
q | Enter a keyword to search for in member data. |
pid | Enter member Top Level Category ID to search for. Enter a comma-separated list of IDs if the Dynamic Category Filter search is enabled. |
tid | Enter member Sub Level Category ID to search for. Enter a comma-separated list of IDs if the Dynamic Category Filter search is enabled. |
ttid | Enter member Sub-Sub Level Category ID to search for. Enter a comma-separated list of IDs if the Dynamic Category Filter search is enabled. |
address | Enter the location to search for. Example: Los Angeles, California, United States. |
output_type | Enter the type of response to receive. Valid options - html, array. By default the results will show in HTML similar to the search results page on the site. If set to Array the results will show in a JSON array. |
limit | Enter the maximum number of search results to return per page of results. |
sort | Set the Order the data would be displayed. The options here are: reviews, name ASC, name DESC, last_name_asc, last_name_desc |
page | Enter the page number of results to return. For example, enter 2 to return the second page of results. |
Example Response:
Request User Transactions
Retrieve transactions related to a user.
Parameter Notes: Use user_id.
Endpoint:
Example Request:
Example Response: