List Functions
GEThttps://api.bem.ai/v2/functions
List Functions
Request
Query Parameters
limit integer
Possible values: >= 1
and <= 100
Default value:
50
functionIDs string[]
Possible values: >= 1
functionNames string[]
Possible values: >= 1
types FunctionType[]
Possible values: [transform
, route
, split
, join
], >= 1
sortOrder string
Possible values: [asc
, desc
]
Specifies sorting behavior. The two options are asc
and desc
to sort ascending and descending respectively, with default sort being ascending. Paging works in both directions.
Default value:
asc
startingAfter string
A cursor to use in pagination. startingAfter
is a function ID that defines your place in the list.
endingBefore string
A cursor to use in pagination. endingBefore
is a function ID that defines your place in the list.
tags string[]
Possible values: >= 1
Filter functions by tags. Functions must contain all specified tags.
Example: [billing, finance]
Responses
- 200
A list of functions
- application/json
- Schema
- Example (auto)
Schema
functions object[]
totalCountinteger
The total number of results available.
{
"functions": [
{
"functionID": "string",
"functionName": "string",
"type": "transform",
"displayName": "string",
"tags": [
"billing",
"finance",
"automated"
],
"outputSchemaName": "Freight Load Schema",
"outputSchema": {
"type": "object",
"required": [
"tenders"
],
"properties": {
"tenders": {
"type": "array",
"items": {
"type": "object",
"required": [
"loadReference",
"origin",
"destination",
"weightTons",
"loadType",
"desiredDeliveryDate",
"bidSubmissionDeadline",
"submitter"
],
"properties": {
"origin": {
"type": "string",
"description": "The starting point of the shipment."
},
"loadType": {
"type": "string",
"description": "The type of goods being shipped."
},
"submitter": {
"type": "object",
"required": [
"name",
"position",
"contactInfo"
],
"properties": {
"name": {
"type": "string",
"description": "Name of the person submitting the tender."
},
"position": {
"type": "string",
"description": "Position of the submitter within their company."
},
"contactInfo": {
"type": "object",
"required": [
"email"
],
"properties": {
"email": {
"type": "string",
"format": "email",
"description": "Email address of the submitter."
},
"phone": {
"type": "string",
"description": "Phone number of the submitter."
}
}
}
}
},
"weightTons": {
"type": "number",
"description": "The weight of the load in tons."
},
"destination": {
"type": "string",
"description": "The endpoint of the shipment."
},
"loadReference": {
"type": "string",
"description": "Unique identifier for the load tender."
},
"desiredDeliveryDate": {
"type": "string",
"format": "date",
"description": "The preferred date for the shipment to be delivered."
},
"bidSubmissionDeadline": {
"type": "string",
"format": "date",
"description": "The deadline for submitting bids."
}
}
}
}
}
},
"emailAddress": "eml_2c9AXFXHwiaL4vPXDTOS171OJ8T@pipeline.bem.ai",
"independentDocumentProcessingEnabled": false,
"complexTabularTransformEnabled": true
},
{
"functionID": "string",
"functionName": "string",
"type": "transform",
"displayName": "string",
"tags": [
"billing",
"finance",
"automated"
],
"description": "string",
"routes": [
{
"name": "string",
"description": "string",
"origin": {
"email": {
"patterns": [
"string"
]
}
},
"regex": {
"patterns": [
"string"
]
},
"functionID": "string",
"functionName": "string"
}
],
"emailAddress": "eml_2c9AXFXHwiaL4vPXDTOS171OJ8T@actions.bem.ai"
},
{
"functionID": "string",
"functionName": "string",
"type": "transform",
"displayName": "string",
"tags": [
"billing",
"finance",
"automated"
],
"splitType": "print_page",
"printPageSplitConfig": {
"nextFunctionID": "string"
},
"semanticPageSplitConfig": {
"itemClasses": [
{
"name": "string",
"description": "string",
"nextFunctionID": "string",
"nextFunctionName": "string"
}
]
}
},
{
"functionID": "string",
"functionName": "string",
"type": "transform",
"displayName": "string",
"tags": [
"billing",
"finance",
"automated"
],
"description": "string",
"joinType": "standard",
"outputSchemaName": "Freight Load Schema",
"outputSchema": {
"type": "object",
"required": [
"tenders"
],
"properties": {
"tenders": {
"type": "array",
"items": {
"type": "object",
"required": [
"loadReference",
"origin",
"destination",
"weightTons",
"loadType",
"desiredDeliveryDate",
"bidSubmissionDeadline",
"submitter"
],
"properties": {
"origin": {
"type": "string",
"description": "The starting point of the shipment."
},
"loadType": {
"type": "string",
"description": "The type of goods being shipped."
},
"submitter": {
"type": "object",
"required": [
"name",
"position",
"contactInfo"
],
"properties": {
"name": {
"type": "string",
"description": "Name of the person submitting the tender."
},
"position": {
"type": "string",
"description": "Position of the submitter within their company."
},
"contactInfo": {
"type": "object",
"required": [
"email"
],
"properties": {
"email": {
"type": "string",
"format": "email",
"description": "Email address of the submitter."
},
"phone": {
"type": "string",
"description": "Phone number of the submitter."
}
}
}
}
},
"weightTons": {
"type": "number",
"description": "The weight of the load in tons."
},
"destination": {
"type": "string",
"description": "The endpoint of the shipment."
},
"loadReference": {
"type": "string",
"description": "Unique identifier for the load tender."
},
"desiredDeliveryDate": {
"type": "string",
"format": "date",
"description": "The preferred date for the shipment to be delivered."
},
"bidSubmissionDeadline": {
"type": "string",
"format": "date",
"description": "The deadline for submitting bids."
}
}
}
}
}
}
}
],
"totalCount": 0
}
Authorization: x-api-key
name: x-api-keytype: apiKeyin: header
- curl
- python
- go
- nodejs
- java
- CURL
curl -L 'https://api.bem.ai/v2/functions' \
-H 'Accept: application/json' \
-H 'x-api-key: <x-api-key>'
ResponseClear