List opportunity custom fields
curl --request GET \
--url https://app.eloout.com/api/v1/custom-fields \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.eloout.com/api/v1/custom-fields', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.eloout.com/api/v1/custom-fields"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"ok": true,
"data": {
"customFields": [
{
"id": "3e4f5a6b-7c8d-4e9f-8a1b-2c3d4e5f6a7b",
"name": "Payment term (days)",
"type": "number",
"entity": "opportunity",
"required": false,
"options": []
}
]
}
}{
"ok": false,
"error": {
"code": "UNAUTHENTICATED",
"message": "Invalid or revoked API key"
}
}{
"ok": false,
"error": {
"code": "FORBIDDEN",
"message": "This API key lacks the opportunities:write scope",
"details": {
"requiredScope": "opportunities:write"
}
}
}{
"ok": false,
"error": {
"code": "RATE_LIMITED",
"message": "Too many requests for this API key or its organization"
}
}{
"ok": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}List opportunity custom fields
Requires the custom-fields:read permission.
GET
/
custom-fields
List opportunity custom fields
curl --request GET \
--url https://app.eloout.com/api/v1/custom-fields \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.eloout.com/api/v1/custom-fields', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.eloout.com/api/v1/custom-fields"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"ok": true,
"data": {
"customFields": [
{
"id": "3e4f5a6b-7c8d-4e9f-8a1b-2c3d4e5f6a7b",
"name": "Payment term (days)",
"type": "number",
"entity": "opportunity",
"required": false,
"options": []
}
]
}
}{
"ok": false,
"error": {
"code": "UNAUTHENTICATED",
"message": "Invalid or revoked API key"
}
}{
"ok": false,
"error": {
"code": "FORBIDDEN",
"message": "This API key lacks the opportunities:write scope",
"details": {
"requiredScope": "opportunities:write"
}
}
}{
"ok": false,
"error": {
"code": "RATE_LIMITED",
"message": "Too many requests for this API key or its organization"
}
}{
"ok": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}