#Get a smart process type
GET /v1/smart-processes/:entityTypeId
Returns a smart process type by entityTypeId.
#Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
entityTypeId (path) |
number | yes | Entity type ID. List: GET /v1/smart-processes |
#Examples
#curl — personal key
curl "https://vibecode.bitrix24.tech/v1/smart-processes/174" \
-H "X-Api-Key: YOUR_API_KEY"
#curl — OAuth app
curl "https://vibecode.bitrix24.tech/v1/smart-processes/174" \
-H "X-Api-Key: YOUR_APP_KEY" \
-H "Authorization: Bearer USER_SESSION_TOKEN"
#JavaScript — personal key
const res = await fetch('https://vibecode.bitrix24.tech/v1/smart-processes/174', {
headers: {
'X-Api-Key': 'YOUR_API_KEY',
},
})
const { success, data } = await res.json()
console.log('Type:', data.title, 'entityTypeId:', data.entityTypeId)
#JavaScript — OAuth app
const res = await fetch('https://vibecode.bitrix24.tech/v1/smart-processes/174', {
headers: {
'X-Api-Key': 'YOUR_APP_KEY',
'Authorization': 'Bearer USER_SESSION_TOKEN',
},
})
const { success, data } = await res.json()
#Response fields
| Field | Type | Description |
|---|---|---|
data |
object | Smart process type. Full field list — see Type fields |
#Response example
{
"success": true,
"data": {
"id": 3,
"entityTypeId": 174,
"title": "Contracts",
"code": null,
"customSectionId": null,
"isCategoriesEnabled": true,
"isStagesEnabled": true,
"isClientEnabled": true,
"isLinkWithProductsEnabled": true,
"isObserversEnabled": true,
"isSourceEnabled": true,
"isAutomationEnabled": true,
"isBizProcEnabled": true,
"isDocumentsEnabled": true,
"isRecyclebinEnabled": true,
"isSetOpenPermissions": true,
"isUseInUserfieldEnabled": true,
"createdBy": 1,
"updatedBy": 1,
"createdTime": "2021-07-20T16:04:10+03:00",
"updatedTime": "2024-07-19T14:27:27+03:00"
}
}
The card returns more fields than the list and
/fields. In addition to the fields above,GET /v1/smart-processes/:entityTypeIdreturnsrelations(an object withparent/childarrays),linkedUserFields(a map) andcustomSections(an array) — these are a pass-through from Bitrix24crm.type.getthat is absent from both the list and/fields.relations/linkedUserFieldsare documented as create/update input fields;customSectionsis card-response only.
id≠ card key. The response has an internalid(e.g. 3), but the card is addressed byentityTypeId(e.g. 174):GET /v1/smart-processes/<entityTypeId>.GET /v1/smart-processes/<id>returns404 ENTITY_NOT_FOUND— do not confuse theidfield with the path key.
#Error response example
404 — type not found:
{
"success": false,
"error": {
"code": "ENTITY_NOT_FOUND",
"message": "Smart process not found"
}
}
#Errors
| HTTP | Code | Description |
|---|---|---|
| 401 | MISSING_API_KEY |
X-Api-Key header not provided |
| 401 | INVALID_API_KEY |
Key not found or revoked |
| 403 | SCOPE_DENIED |
API key lacks the crm scope |
| 401 | TOKEN_MISSING |
API key has no configured tokens |
| 404 | ENTITY_NOT_FOUND |
No type found with this entityTypeId |
| 422 | BITRIX_ERROR |
Error from Bitrix24. Specific cause is in the message field |
Full list of common API errors — Errors.
#See also
- Type list — all types on the portal
- Create type —
POST /v1/smart-processes - Update type — partial update
- Delete type
- Type fields — full field list
- Smart process items — CRUD over items of this type
- Limits and optimization — rate limits