POST
Fields.Get
Alias of Fields.List. Return the customer field settings needed by UI builders and forms.
Permissions
- On a company subdomain (e.g. https://{user_domain}.bull36.com) the user must match that Host — Login and protected APIs reject another company with success=0, error user_not_in_company. On a main brand host (bull36.com, biz1.co.il, mastrocrm.com, …) the company domain gate is skipped.
- Only the organization owner or a manager can manage or list field settings.
Action
- Returns Fields information as JSON for the UI.
Push Service
No push is sent because this function only reads data or returns helper information.
Automation
No automation is run for this function.
Special Instructions
- Send the bearer token on protected calls with Authorization: Bearer YOUR TOKEN.
- On a company subdomain (e.g. https://{user_domain}.bull36.com) the user must match that Host — Login and protected APIs reject another company with success=0, error user_not_in_company. On a main brand host (bull36.com, biz1.co.il, mastrocrm.com, …) the company domain gate is skipped.
- Send parameters as POST body fields exactly as documented.
Required Parameters
No body parameters are required for this function.
Optional Parameters
No optional body parameters are defined for this function.
Authentication
Send the bearer token returned by Login in the request header. The user must be from the same company domain as this Host — a token from another company is rejected (user_not_in_company).
Authorization: Bearer YOUR TOKEN
Sample Request
{
"url": "\/app\/Fields.Get",
"method": "POST",
"headers": {
"Authorization": "Bearer YOUR TOKEN"
},
"body": [],
"url_user": "https:\/\/{user}.bull36.com\/app\/Fields.Get",
"url_domain": "https:\/\/{domain}\/app\/Fields.Get"
}Endpoint
POST /app/Fields.Get
POST https://{user}.bull36.com/app/Fields.Get
POST https://{domain}/app/Fields.GetSample Output
{
"success": 1,
"data": {
"fixed_fields": [
"name",
"phone",
"email"
],
"custom_fields": []
}
}JavaScript Example
const token = 'YOUR TOKEN';
const res = await fetch('/app/Fields.Get', {
method: 'POST',
headers: { Authorization: `Bearer ${token}` }
});
const data = await res.json();
console.log(data);Error Example
{
"success": "0",
"error": "permission_denied",
"message": "Permission denied to list customer fields"
}