crul REST API (1.3.0)
Download OpenAPI specification:Download
The crul API allows for programatic access to core crul services and resources. This includes dispatching queries and results retrieval, as well as create, read, update, delete (CRUD) operations on core crul resources such as scheduled queries, credentials, domain policies, and more.
Access to the crul API requires an API key, which can be created from the crul web application. See credentials for more. The API Key should be provided as a Authorization: crul {API KEY}
header.
curl -X 'POST' \
'http://localhost:1968/v1/sirp/query/runner/dispatch' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-H "Authorization: crul {token}" \
-d '{ "query": "devices" }'
Dispatch a query
Parses, validates and starts a query.
Request Body schema: application/json
query required | string The query string. |
cleanup | boolean |
summary | boolean |
minutes | integer >= 0 |
ttl | integer >= 0 |
mode | string Enum: "turbo" "comprehensive" |
metadata | object |
Responses
Request samples
- Payload
{- "query": "string",
- "cleanup": true,
- "summary": true,
- "minutes": 0,
- "ttl": 0,
- "mode": "turbo",
- "metadata": { }
}
Dispatch a query and wait for completion
Parses, validates and dispatches a query. Will return once query is complete.
Request Body schema: application/json
query required | string The query string. |
cleanup | boolean |
summary | boolean |
minutes | integer >= 0 |
ttl | integer >= 0 |
metadata | object |
Responses
Request samples
- Payload
{- "query": "string",
- "cleanup": true,
- "summary": true,
- "minutes": 0,
- "ttl": 0,
- "metadata": { }
}
Evaluate a JavaScript expression
Evaluate a JavaScript expression and return results.
Request Body schema: application/json
expression required | string [ 1 .. 1048576 ] characters A JavaScript expression to evaluate, NOTE: Functions must be in fat-arrow format. |
jquery | boolean Default: false Import jQuery library. Passed to expression function in last argument (ie., (..args, { $ }) => {}). NOTE: When imported into a page it is NOT in the global window scope. |
lodash | boolean Default: false Import lodash library. Passed to expression function in last argument (ie., (..args, { _ }) => {}). NOTE: When imported into a page it is NOT in the global window scope. |
mathjs | boolean Default: false Import mathjs library. Passed to expression function in last argument (ie., (..args, { mathjs }) => {}). NOTE: When imported into a page it is NOT in the global window scope. |
args | Array of strings or numbers or objects or arrays or booleans or null <= 100 items Argument values to pass to an expression. Passed as leading argument or middle arguments if data is passed back to expression (ie., ([data], ...args, [options]) => {}). |
Responses
Request samples
- Payload
{- "expression": "string",
- "jquery": false,
- "lodash": false,
- "mathjs": false,
- "args": [
- "string"
]
}
Capture all external requests
A summary of all external requests made from a url. NOTE: This is a slower operation as all requests are processed.
Request Body schema: application/json
url required | string^https?:// A URL for a webpage. |
expression | string [ 1 .. 1048576 ] characters A JavaScript expression to evaluate, NOTE: Functions must be in fat-arrow format. |
object Cookie data to be set. | |
sessionStorage | object sessionStorage data to be set. |
localStorage | object localStorage data to be set. |
responseText | boolean Default: false Include the response text. NOTE: This can have performance implications. |
session | boolean Default: false Capture the browser cookie, localStorage and sessionStorage object/values. Decorates the return value(s) with localStorage, sessionStorage and cookieStorage. NOTE: See cookieStorage, localStorage and sessionStorage for object serialization structure. |
jquery | boolean Default: false Import jQuery library. Passed to expression function in last argument (ie., (..args, { $ }) => {}). NOTE: When imported into a page it is NOT in the global window scope. |
lodash | boolean Default: false Import lodash library. Passed to expression function in last argument (ie., (..args, { _ }) => {}). NOTE: When imported into a page it is NOT in the global window scope. |
mathjs | boolean Default: false Import mathjs library. Passed to expression function in last argument (ie., (..args, { mathjs }) => {}). NOTE: When imported into a page it is NOT in the global window scope. |
args | Array of strings or numbers or objects or arrays or booleans or null <= 100 items Argument values to pass to an expression. Passed as leading argument or middle arguments if data is passed back to expression (ie., ([data], ...args, [options]) => {}). |
retry | number [ 0 .. 2 ] The number of times to retry a failed browser transaction. NOTE: The total number of attempts is the sum of the first request plus the retry number (ie., retry of 2 will result in three attempts). Hey kid, three strikes you are out of here! |
device | string Default: "iPhone X" Enum: "Desktop" "Blackberry PlayBook" "Blackberry PlayBook landscape" "BlackBerry Z30" "BlackBerry Z30 landscape" "Galaxy Note 3" "Galaxy Note 3 landscape" "Galaxy Note II" "Galaxy Note II landscape" "Galaxy S III" "Galaxy S III landscape" "Galaxy S5" "Galaxy S5 landscape" "Galaxy S8" "Galaxy S8 landscape" "Galaxy S9+" "Galaxy S9+ landscape" "Galaxy Tab S4" "Galaxy Tab S4 landscape" "iPad" "iPad landscape" "iPad (gen 6)" "iPad (gen 6) landscape" "iPad (gen 7)" "iPad (gen 7) landscape" "iPad Mini" "iPad Mini landscape" "iPad Pro" "iPad Pro landscape" "iPad Pro 11" "iPad Pro 11 landscape" "iPhone 4" "iPhone 4 landscape" "iPhone 5" "iPhone 5 landscape" "iPhone 6" "iPhone 6 landscape" "iPhone 6 Plus" "iPhone 6 Plus landscape" "iPhone 7" "iPhone 7 landscape" "iPhone 7 Plus" "iPhone 7 Plus landscape" "iPhone 8" "iPhone 8 landscape" "iPhone 8 Plus" "iPhone 8 Plus landscape" "iPhone SE" "iPhone SE landscape" "iPhone X" "iPhone X landscape" "iPhone XR" "iPhone XR landscape" "iPhone 11" "iPhone 11 landscape" "iPhone 11 Pro" "iPhone 11 Pro landscape" "iPhone 11 Pro Max" "iPhone 11 Pro Max landscape" "iPhone 12" "iPhone 12 landscape" "iPhone 12 Pro" "iPhone 12 Pro landscape" "iPhone 12 Pro Max" "iPhone 12 Pro Max landscape" "iPhone 12 Mini" "iPhone 12 Mini landscape" "iPhone 13" "iPhone 13 landscape" "iPhone 13 Pro" "iPhone 13 Pro landscape" "iPhone 13 Pro Max" "iPhone 13 Pro Max landscape" "iPhone 13 Mini" "iPhone 13 Mini landscape" "JioPhone 2" "JioPhone 2 landscape" "Kindle Fire HDX" "Kindle Fire HDX landscape" "LG Optimus L70" "LG Optimus L70 landscape" "Microsoft Lumia 550" "Microsoft Lumia 950" "Microsoft Lumia 950 landscape" "Nexus 10" "Nexus 10 landscape" "Nexus 4" "Nexus 4 landscape" "Nexus 5" "Nexus 5 landscape" "Nexus 5X" "Nexus 5X landscape" "Nexus 6" "Nexus 6 landscape" "Nexus 6P" "Nexus 6P landscape" "Nexus 7" "Nexus 7 landscape" "Nokia Lumia 520" "Nokia Lumia 520 landscape" "Nokia N9" "Nokia N9 landscape" "Pixel 2" "Pixel 2 landscape" "Pixel 2 XL" "Pixel 2 XL landscape" "Pixel 3" "Pixel 3 landscape" "Pixel 4" "Pixel 4 landscape" "Pixel 4a (5G)" "Pixel 4a (5G) landscape" "Pixel 5" "Pixel 5 landscape" "Moto G4" "Moto G4 landscape" The device to emulate. |
headers | object HTTP headers to set before loading page. |
string or integer or string or string Wait criteria before resolving page load. | |
ready | string Enum: "idle" "net2" "winload" "domload" winload - consider navigation to be finished when the window load event is fired. domload - consider navigation to be finished when the DOMContentLoaded event is fired. idle - consider navigation to be finished when there are no more than 0 network connections for at least 500 ms. net2 - consider navigation to be finished when there are no more than 2 network connections for at least 500 ms. |
visible | boolean Wait for element to be present in DOM and to be visible, i.e. to not have display: none or visibility: hidden CSS properties. Defaults to false. |
hidden | boolean Wait for element to not be found in the DOM or to be hidden, i.e. have display: none or visibility: hidden CSS properties. Defaults to false. |
integer or string An interval at which the wait function/()=> is executed, defaults to raf. If polling is a number, then it is treated as an interval in milliseconds at which the function would be executed. If polling is a string, then it can be one of the following values: raf - to constantly execute function/()=> in requestAnimationFrame callback. This is the tightest polling mode which is suitable to observe styling changes. mutation - to execute function/()=> on every DOM mutation. | |
proxy | string The URI for a http, https, socks(v5), socks5, socks4, or pac proxy. |
Responses
Request samples
- Payload
{- "url": "string",
- "expression": "string",
- "cookieStorage": {
- "property1": {
- "value": "string",
- "domain": "string",
- "path": "string",
- "expires": "string",
- "size": 0,
- "httpOnly": true,
- "secure": true,
- "session": true
}, - "property2": {
- "value": "string",
- "domain": "string",
- "path": "string",
- "expires": "string",
- "size": 0,
- "httpOnly": true,
- "secure": true,
- "session": true
}
}, - "sessionStorage": { },
- "localStorage": { },
- "responseText": false,
- "session": false,
- "jquery": false,
- "lodash": false,
- "mathjs": false,
- "args": [
- "string"
], - "retry": 2,
- "device": "Desktop",
- "headers": { },
- "wait": "idle",
- "ready": "idle",
- "visible": true,
- "hidden": true,
- "polling": 30000,
- "proxy": "string"
}
Execute JavaScript within a page
The general swiss-army knife for execution of arbitrary JavaScript within a given url.
Request Body schema: application/json
url required | string^https?:// A URL for a webpage. |
expression required | string [ 1 .. 1048576 ] characters A JavaScript expression to evaluate, NOTE: Functions must be in fat-arrow format. |
screenshot | boolean Default: false Take full page screenshot. NOTE: This can have performance implications. |
session | boolean Default: false Capture the browser cookie, localStorage and sessionStorage object/values. Decorates the return value(s) with localStorage, sessionStorage and cookieStorage. NOTE: See cookieStorage, localStorage and sessionStorage for object serialization structure. |
type | string Default: "jpeg" Enum: "png" "jpeg" "webp" Specifies the image type. |
quality | number [ 1 .. 100 ] Default: 100 The quality of the image. NOTE: Only applicable to jpg images. |
object Cookie data to be set. | |
sessionStorage | object sessionStorage data to be set. |
localStorage | object localStorage data to be set. |
jquery | boolean Default: false Import jQuery library. Passed to expression function in last argument (ie., (..args, { $ }) => {}). NOTE: When imported into a page it is NOT in the global window scope. |
lodash | boolean Default: false Import lodash library. Passed to expression function in last argument (ie., (..args, { _ }) => {}). NOTE: When imported into a page it is NOT in the global window scope. |
mathjs | boolean Default: false Import mathjs library. Passed to expression function in last argument (ie., (..args, { mathjs }) => {}). NOTE: When imported into a page it is NOT in the global window scope. |
args | Array of strings or numbers or objects or arrays or booleans or null <= 100 items Argument values to pass to an expression. Passed as leading argument or middle arguments if data is passed back to expression (ie., ([data], ...args, [options]) => {}). |
filter | Array of strings <= 1000 items Hostname or path values to glob and block requests against (eg., *.doubleclick.net will block all requests to doubleclick.net). NOTE: Filtering rquests can result in longer page loads and execution time. |
retry | number [ 0 .. 2 ] The number of times to retry a failed browser transaction. NOTE: The total number of attempts is the sum of the first request plus the retry number (ie., retry of 2 will result in three attempts). Hey kid, three strikes you are out of here! |
device | string Default: "iPhone X" Enum: "Desktop" "Blackberry PlayBook" "Blackberry PlayBook landscape" "BlackBerry Z30" "BlackBerry Z30 landscape" "Galaxy Note 3" "Galaxy Note 3 landscape" "Galaxy Note II" "Galaxy Note II landscape" "Galaxy S III" "Galaxy S III landscape" "Galaxy S5" "Galaxy S5 landscape" "Galaxy S8" "Galaxy S8 landscape" "Galaxy S9+" "Galaxy S9+ landscape" "Galaxy Tab S4" "Galaxy Tab S4 landscape" "iPad" "iPad landscape" "iPad (gen 6)" "iPad (gen 6) landscape" "iPad (gen 7)" "iPad (gen 7) landscape" "iPad Mini" "iPad Mini landscape" "iPad Pro" "iPad Pro landscape" "iPad Pro 11" "iPad Pro 11 landscape" "iPhone 4" "iPhone 4 landscape" "iPhone 5" "iPhone 5 landscape" "iPhone 6" "iPhone 6 landscape" "iPhone 6 Plus" "iPhone 6 Plus landscape" "iPhone 7" "iPhone 7 landscape" "iPhone 7 Plus" "iPhone 7 Plus landscape" "iPhone 8" "iPhone 8 landscape" "iPhone 8 Plus" "iPhone 8 Plus landscape" "iPhone SE" "iPhone SE landscape" "iPhone X" "iPhone X landscape" "iPhone XR" "iPhone XR landscape" "iPhone 11" "iPhone 11 landscape" "iPhone 11 Pro" "iPhone 11 Pro landscape" "iPhone 11 Pro Max" "iPhone 11 Pro Max landscape" "iPhone 12" "iPhone 12 landscape" "iPhone 12 Pro" "iPhone 12 Pro landscape" "iPhone 12 Pro Max" "iPhone 12 Pro Max landscape" "iPhone 12 Mini" "iPhone 12 Mini landscape" "iPhone 13" "iPhone 13 landscape" "iPhone 13 Pro" "iPhone 13 Pro landscape" "iPhone 13 Pro Max" "iPhone 13 Pro Max landscape" "iPhone 13 Mini" "iPhone 13 Mini landscape" "JioPhone 2" "JioPhone 2 landscape" "Kindle Fire HDX" "Kindle Fire HDX landscape" "LG Optimus L70" "LG Optimus L70 landscape" "Microsoft Lumia 550" "Microsoft Lumia 950" "Microsoft Lumia 950 landscape" "Nexus 10" "Nexus 10 landscape" "Nexus 4" "Nexus 4 landscape" "Nexus 5" "Nexus 5 landscape" "Nexus 5X" "Nexus 5X landscape" "Nexus 6" "Nexus 6 landscape" "Nexus 6P" "Nexus 6P landscape" "Nexus 7" "Nexus 7 landscape" "Nokia Lumia 520" "Nokia Lumia 520 landscape" "Nokia N9" "Nokia N9 landscape" "Pixel 2" "Pixel 2 landscape" "Pixel 2 XL" "Pixel 2 XL landscape" "Pixel 3" "Pixel 3 landscape" "Pixel 4" "Pixel 4 landscape" "Pixel 4a (5G)" "Pixel 4a (5G) landscape" "Pixel 5" "Pixel 5 landscape" "Moto G4" "Moto G4 landscape" The device to emulate. |
headers | object HTTP headers to set before loading page. |
string or integer or string or string Wait criteria before resolving page load. | |
ready | string Enum: "idle" "net2" "winload" "domload" winload - consider navigation to be finished when the window load event is fired. domload - consider navigation to be finished when the DOMContentLoaded event is fired. idle - consider navigation to be finished when there are no more than 0 network connections for at least 500 ms. net2 - consider navigation to be finished when there are no more than 2 network connections for at least 500 ms. |
visible | boolean Wait for element to be present in DOM and to be visible, i.e. to not have display: none or visibility: hidden CSS properties. Defaults to false. |
hidden | boolean Wait for element to not be found in the DOM or to be hidden, i.e. have display: none or visibility: hidden CSS properties. Defaults to false. |
integer or string An interval at which the wait function/()=> is executed, defaults to raf. If polling is a number, then it is treated as an interval in milliseconds at which the function would be executed. If polling is a string, then it can be one of the following values: raf - to constantly execute function/()=> in requestAnimationFrame callback. This is the tightest polling mode which is suitable to observe styling changes. mutation - to execute function/()=> on every DOM mutation. | |
proxy | string The URI for a http, https, socks(v5), socks5, socks4, or pac proxy. |
Responses
Request samples
- Payload
{- "url": "string",
- "expression": "string",
- "screenshot": false,
- "session": false,
- "type": "png",
- "quality": 100,
- "cookieStorage": {
- "property1": {
- "value": "string",
- "domain": "string",
- "path": "string",
- "expires": "string",
- "size": 0,
- "httpOnly": true,
- "secure": true,
- "session": true
}, - "property2": {
- "value": "string",
- "domain": "string",
- "path": "string",
- "expires": "string",
- "size": 0,
- "httpOnly": true,
- "secure": true,
- "session": true
}
}, - "sessionStorage": { },
- "localStorage": { },
- "jquery": false,
- "lodash": false,
- "mathjs": false,
- "args": [
- "string"
], - "filter": [
- "string"
], - "retry": 2,
- "device": "Desktop",
- "headers": { },
- "wait": "idle",
- "ready": "idle",
- "visible": true,
- "hidden": true,
- "polling": 30000,
- "proxy": "string"
}
Evaluate a CSS selector
Evaluate a CSS selector expression for a given url.
Request Body schema: application/json
url required | string^https?:// A URL for a webpage. |
selector required | string [ 1 .. 1048576 ] characters CSS selector expression. |
screenshot | boolean Default: false Take full page screenshot. NOTE: This can have performance implications. |
session | boolean Default: false Capture the browser cookie, localStorage and sessionStorage object/values. Decorates the return value(s) with localStorage, sessionStorage and cookieStorage. NOTE: See cookieStorage, localStorage and sessionStorage for object serialization structure. |
type | string Default: "jpeg" Enum: "png" "jpeg" "webp" Specifies the image type. |
quality | number [ 1 .. 100 ] Default: 100 The quality of the image. NOTE: Only applicable to jpg images. |
engine | string Enum: "dom" "jquery" The selector engine to use. NOTE: dom uses querySelectorAll. |
expression | string [ 1 .. 1048576 ] characters A JavaScript expression to evaluate, NOTE: Functions must be in fat-arrow format. |
object Cookie data to be set. | |
sessionStorage | object sessionStorage data to be set. |
localStorage | object localStorage data to be set. |
jquery | boolean Default: false Import jQuery library. Passed to expression function in last argument (ie., (..args, { $ }) => {}). NOTE: When imported into a page it is NOT in the global window scope. |
lodash | boolean Default: false Import lodash library. Passed to expression function in last argument (ie., (..args, { _ }) => {}). NOTE: When imported into a page it is NOT in the global window scope. |
mathjs | boolean Default: false Import mathjs library. Passed to expression function in last argument (ie., (..args, { mathjs }) => {}). NOTE: When imported into a page it is NOT in the global window scope. |
html | boolean Default: true Extract innerHTML and outerHTML. NOTE: This can have performance implications. |
hashtml | boolean Default: false Extract innerHTML and outerHTML sha1 hash of respective values. NOTE: This can have performance implications. |
dimension | boolean Default: true Extract DOM position attributes. NOTE: This can have performance implications due to repaints. |
args | Array of strings or numbers or objects or arrays or booleans or null <= 100 items Argument values to pass to an expression. Passed as leading argument or middle arguments if data is passed back to expression (ie., ([data], ...args, [options]) => {}). |
retry | number [ 0 .. 2 ] The number of times to retry a failed browser transaction. NOTE: The total number of attempts is the sum of the first request plus the retry number (ie., retry of 2 will result in three attempts). Hey kid, three strikes you are out of here! |
device | string Default: "iPhone X" Enum: "Desktop" "Blackberry PlayBook" "Blackberry PlayBook landscape" "BlackBerry Z30" "BlackBerry Z30 landscape" "Galaxy Note 3" "Galaxy Note 3 landscape" "Galaxy Note II" "Galaxy Note II landscape" "Galaxy S III" "Galaxy S III landscape" "Galaxy S5" "Galaxy S5 landscape" "Galaxy S8" "Galaxy S8 landscape" "Galaxy S9+" "Galaxy S9+ landscape" "Galaxy Tab S4" "Galaxy Tab S4 landscape" "iPad" "iPad landscape" "iPad (gen 6)" "iPad (gen 6) landscape" "iPad (gen 7)" "iPad (gen 7) landscape" "iPad Mini" "iPad Mini landscape" "iPad Pro" "iPad Pro landscape" "iPad Pro 11" "iPad Pro 11 landscape" "iPhone 4" "iPhone 4 landscape" "iPhone 5" "iPhone 5 landscape" "iPhone 6" "iPhone 6 landscape" "iPhone 6 Plus" "iPhone 6 Plus landscape" "iPhone 7" "iPhone 7 landscape" "iPhone 7 Plus" "iPhone 7 Plus landscape" "iPhone 8" "iPhone 8 landscape" "iPhone 8 Plus" "iPhone 8 Plus landscape" "iPhone SE" "iPhone SE landscape" "iPhone X" "iPhone X landscape" "iPhone XR" "iPhone XR landscape" "iPhone 11" "iPhone 11 landscape" "iPhone 11 Pro" "iPhone 11 Pro landscape" "iPhone 11 Pro Max" "iPhone 11 Pro Max landscape" "iPhone 12" "iPhone 12 landscape" "iPhone 12 Pro" "iPhone 12 Pro landscape" "iPhone 12 Pro Max" "iPhone 12 Pro Max landscape" "iPhone 12 Mini" "iPhone 12 Mini landscape" "iPhone 13" "iPhone 13 landscape" "iPhone 13 Pro" "iPhone 13 Pro landscape" "iPhone 13 Pro Max" "iPhone 13 Pro Max landscape" "iPhone 13 Mini" "iPhone 13 Mini landscape" "JioPhone 2" "JioPhone 2 landscape" "Kindle Fire HDX" "Kindle Fire HDX landscape" "LG Optimus L70" "LG Optimus L70 landscape" "Microsoft Lumia 550" "Microsoft Lumia 950" "Microsoft Lumia 950 landscape" "Nexus 10" "Nexus 10 landscape" "Nexus 4" "Nexus 4 landscape" "Nexus 5" "Nexus 5 landscape" "Nexus 5X" "Nexus 5X landscape" "Nexus 6" "Nexus 6 landscape" "Nexus 6P" "Nexus 6P landscape" "Nexus 7" "Nexus 7 landscape" "Nokia Lumia 520" "Nokia Lumia 520 landscape" "Nokia N9" "Nokia N9 landscape" "Pixel 2" "Pixel 2 landscape" "Pixel 2 XL" "Pixel 2 XL landscape" "Pixel 3" "Pixel 3 landscape" "Pixel 4" "Pixel 4 landscape" "Pixel 4a (5G)" "Pixel 4a (5G) landscape" "Pixel 5" "Pixel 5 landscape" "Moto G4" "Moto G4 landscape" The device to emulate. |
headers | object HTTP headers to set before loading page. |
string or integer or string or string Wait criteria before resolving page load. | |
ready | string Enum: "idle" "net2" "winload" "domload" winload - consider navigation to be finished when the window load event is fired. domload - consider navigation to be finished when the DOMContentLoaded event is fired. idle - consider navigation to be finished when there are no more than 0 network connections for at least 500 ms. net2 - consider navigation to be finished when there are no more than 2 network connections for at least 500 ms. |
visible | boolean Wait for element to be present in DOM and to be visible, i.e. to not have display: none or visibility: hidden CSS properties. Defaults to false. |
hidden | boolean Wait for element to not be found in the DOM or to be hidden, i.e. have display: none or visibility: hidden CSS properties. Defaults to false. |
integer or string An interval at which the wait function/()=> is executed, defaults to raf. If polling is a number, then it is treated as an interval in milliseconds at which the function would be executed. If polling is a string, then it can be one of the following values: raf - to constantly execute function/()=> in requestAnimationFrame callback. This is the tightest polling mode which is suitable to observe styling changes. mutation - to execute function/()=> on every DOM mutation. | |
proxy | string The URI for a http, https, socks(v5), socks5, socks4, or pac proxy. |
Responses
Request samples
- Payload
{- "url": "string",
- "selector": "string",
- "screenshot": false,
- "session": false,
- "type": "png",
- "quality": 100,
- "engine": "dom",
- "expression": "string",
- "cookieStorage": {
- "property1": {
- "value": "string",
- "domain": "string",
- "path": "string",
- "expires": "string",
- "size": 0,
- "httpOnly": true,
- "secure": true,
- "session": true
}, - "property2": {
- "value": "string",
- "domain": "string",
- "path": "string",
- "expires": "string",
- "size": 0,
- "httpOnly": true,
- "secure": true,
- "session": true
}
}, - "sessionStorage": { },
- "localStorage": { },
- "jquery": false,
- "lodash": false,
- "mathjs": false,
- "html": true,
- "hashtml": false,
- "dimension": true,
- "args": [
- "string"
], - "retry": 2,
- "device": "Desktop",
- "headers": { },
- "wait": "idle",
- "ready": "idle",
- "visible": true,
- "hidden": true,
- "polling": 30000,
- "proxy": "string"
}
Capture a screenshot
Capture a screenshot of the first matched element based on a specified css selector.
Request Body schema: application/json
url required | string^https?:// A URL for a webpage. |
selector | string [ 1 .. 1048576 ] characters CSS selector expression. |
type | string Default: "jpeg" Enum: "png" "jpeg" "webp" Specifies the image type. |
viewportWidth | number [ 1 .. 10000 ] The rectangular area that is currently being viewed. |
viewportHeight | number [ 1 .. 10000 ] The rectangular area that is currently being viewed. |
quality | number [ 1 .. 100 ] Default: 100 The quality of the image. NOTE: Only applicable to jpg images. |
background | string Set the body background css style during image rasterization. For transparancy set value to |
engine | string Enum: "dom" "jquery" The selector engine to use. NOTE: dom uses querySelectorAll. |
expression | string [ 1 .. 1048576 ] characters A JavaScript expression to evaluate, NOTE: Functions must be in fat-arrow format. |
object Cookie data to be set. | |
sessionStorage | object sessionStorage data to be set. |
localStorage | object localStorage data to be set. |
session | boolean Default: false Capture the browser cookie, localStorage and sessionStorage object/values. Decorates the return value(s) with localStorage, sessionStorage and cookieStorage. NOTE: See cookieStorage, localStorage and sessionStorage for object serialization structure. |
jquery | boolean Default: false Import jQuery library. Passed to expression function in last argument (ie., (..args, { $ }) => {}). NOTE: When imported into a page it is NOT in the global window scope. |
lodash | boolean Default: false Import lodash library. Passed to expression function in last argument (ie., (..args, { _ }) => {}). NOTE: When imported into a page it is NOT in the global window scope. |
mathjs | boolean Default: false Import mathjs library. Passed to expression function in last argument (ie., (..args, { mathjs }) => {}). NOTE: When imported into a page it is NOT in the global window scope. |
args | Array of strings or numbers or objects or arrays or booleans or null <= 100 items Argument values to pass to an expression. Passed as leading argument or middle arguments if data is passed back to expression (ie., ([data], ...args, [options]) => {}). |
retry | number [ 0 .. 2 ] The number of times to retry a failed browser transaction. NOTE: The total number of attempts is the sum of the first request plus the retry number (ie., retry of 2 will result in three attempts). Hey kid, three strikes you are out of here! |
device | string Default: "iPhone X" Enum: "Desktop" "Blackberry PlayBook" "Blackberry PlayBook landscape" "BlackBerry Z30" "BlackBerry Z30 landscape" "Galaxy Note 3" "Galaxy Note 3 landscape" "Galaxy Note II" "Galaxy Note II landscape" "Galaxy S III" "Galaxy S III landscape" "Galaxy S5" "Galaxy S5 landscape" "Galaxy S8" "Galaxy S8 landscape" "Galaxy S9+" "Galaxy S9+ landscape" "Galaxy Tab S4" "Galaxy Tab S4 landscape" "iPad" "iPad landscape" "iPad (gen 6)" "iPad (gen 6) landscape" "iPad (gen 7)" "iPad (gen 7) landscape" "iPad Mini" "iPad Mini landscape" "iPad Pro" "iPad Pro landscape" "iPad Pro 11" "iPad Pro 11 landscape" "iPhone 4" "iPhone 4 landscape" "iPhone 5" "iPhone 5 landscape" "iPhone 6" "iPhone 6 landscape" "iPhone 6 Plus" "iPhone 6 Plus landscape" "iPhone 7" "iPhone 7 landscape" "iPhone 7 Plus" "iPhone 7 Plus landscape" "iPhone 8" "iPhone 8 landscape" "iPhone 8 Plus" "iPhone 8 Plus landscape" "iPhone SE" "iPhone SE landscape" "iPhone X" "iPhone X landscape" "iPhone XR" "iPhone XR landscape" "iPhone 11" "iPhone 11 landscape" "iPhone 11 Pro" "iPhone 11 Pro landscape" "iPhone 11 Pro Max" "iPhone 11 Pro Max landscape" "iPhone 12" "iPhone 12 landscape" "iPhone 12 Pro" "iPhone 12 Pro landscape" "iPhone 12 Pro Max" "iPhone 12 Pro Max landscape" "iPhone 12 Mini" "iPhone 12 Mini landscape" "iPhone 13" "iPhone 13 landscape" "iPhone 13 Pro" "iPhone 13 Pro landscape" "iPhone 13 Pro Max" "iPhone 13 Pro Max landscape" "iPhone 13 Mini" "iPhone 13 Mini landscape" "JioPhone 2" "JioPhone 2 landscape" "Kindle Fire HDX" "Kindle Fire HDX landscape" "LG Optimus L70" "LG Optimus L70 landscape" "Microsoft Lumia 550" "Microsoft Lumia 950" "Microsoft Lumia 950 landscape" "Nexus 10" "Nexus 10 landscape" "Nexus 4" "Nexus 4 landscape" "Nexus 5" "Nexus 5 landscape" "Nexus 5X" "Nexus 5X landscape" "Nexus 6" "Nexus 6 landscape" "Nexus 6P" "Nexus 6P landscape" "Nexus 7" "Nexus 7 landscape" "Nokia Lumia 520" "Nokia Lumia 520 landscape" "Nokia N9" "Nokia N9 landscape" "Pixel 2" "Pixel 2 landscape" "Pixel 2 XL" "Pixel 2 XL landscape" "Pixel 3" "Pixel 3 landscape" "Pixel 4" "Pixel 4 landscape" "Pixel 4a (5G)" "Pixel 4a (5G) landscape" "Pixel 5" "Pixel 5 landscape" "Moto G4" "Moto G4 landscape" The device to emulate. |
headers | object HTTP headers to set before loading page. |
string or integer or string or string Wait criteria before resolving page load. | |
ready | string Enum: "idle" "net2" "winload" "domload" winload - consider navigation to be finished when the window load event is fired. domload - consider navigation to be finished when the DOMContentLoaded event is fired. idle - consider navigation to be finished when there are no more than 0 network connections for at least 500 ms. net2 - consider navigation to be finished when there are no more than 2 network connections for at least 500 ms. |
visible | boolean Wait for element to be present in DOM and to be visible, i.e. to not have display: none or visibility: hidden CSS properties. Defaults to false. |
hidden | boolean Wait for element to not be found in the DOM or to be hidden, i.e. have display: none or visibility: hidden CSS properties. Defaults to false. |
integer or string An interval at which the wait function/()=> is executed, defaults to raf. If polling is a number, then it is treated as an interval in milliseconds at which the function would be executed. If polling is a string, then it can be one of the following values: raf - to constantly execute function/()=> in requestAnimationFrame callback. This is the tightest polling mode which is suitable to observe styling changes. mutation - to execute function/()=> on every DOM mutation. | |
proxy | string The URI for a http, https, socks(v5), socks5, socks4, or pac proxy. |
Responses
Request samples
- Payload
{- "url": "string",
- "selector": "string",
- "type": "png",
- "viewportWidth": 1,
- "viewportHeight": 1,
- "quality": 100,
- "background": "string",
- "engine": "dom",
- "expression": "string",
- "cookieStorage": {
- "property1": {
- "value": "string",
- "domain": "string",
- "path": "string",
- "expires": "string",
- "size": 0,
- "httpOnly": true,
- "secure": true,
- "session": true
}, - "property2": {
- "value": "string",
- "domain": "string",
- "path": "string",
- "expires": "string",
- "size": 0,
- "httpOnly": true,
- "secure": true,
- "session": true
}
}, - "sessionStorage": { },
- "localStorage": { },
- "session": false,
- "jquery": false,
- "lodash": false,
- "mathjs": false,
- "args": [
- "string"
], - "retry": 2,
- "device": "Desktop",
- "headers": { },
- "wait": "idle",
- "ready": "idle",
- "visible": true,
- "hidden": true,
- "polling": 30000,
- "proxy": "string"
}
Populate and submit a form
Populate a form based on selector/value pairs and invoke a click submit button based on a selector and capture cookieStorage, localStorage, and sessionStorage.
Request Body schema: application/json
url required | string^https?:// A URL for a webpage. |
required | Array of items non-empty [ items = 2 items ] An array of css selector/value pairs for input elements |
submitSelector required | string [ 1 .. 1048576 ] characters CSS selector expression. |
string or integer or string or string Wait criteria before resolving page load. | |
ready | string Enum: "idle" "net2" "winload" "domload" winload - consider navigation to be finished when the window load event is fired. domload - consider navigation to be finished when the DOMContentLoaded event is fired. idle - consider navigation to be finished when there are no more than 0 network connections for at least 500 ms. net2 - consider navigation to be finished when there are no more than 2 network connections for at least 500 ms. |
visible | boolean Wait for element to be present in DOM and to be visible, i.e. to not have display: none or visibility: hidden CSS properties. Defaults to false. |
hidden | boolean Wait for element to not be found in the DOM or to be hidden, i.e. have display: none or visibility: hidden CSS properties. Defaults to false. |
integer or string An interval at which the wait function/()=> is executed, defaults to raf. If polling is a number, then it is treated as an interval in milliseconds at which the function would be executed. If polling is a string, then it can be one of the following values: raf - to constantly execute function/()=> in requestAnimationFrame callback. This is the tightest polling mode which is suitable to observe styling changes. mutation - to execute function/()=> on every DOM mutation. | |
proxy | string The URI for a http, https, socks(v5), socks5, socks4, or pac proxy. |
Responses
Request samples
- Payload
{- "url": "string",
- "selectorValuePairs": [
- [
- "string",
- "string"
]
], - "submitSelector": "string",
- "wait": "idle",
- "ready": "idle",
- "visible": true,
- "hidden": true,
- "polling": 30000,
- "proxy": "string"
}
Capture a screenshot from a selector
Capture an image binary stream of the first matched element based on a specified css selector.
query Parameters
url required | string^https?:// A URL for a webpage. |
selector | string [ 1 .. 1048576 ] characters CSS selector expression. |
viewportWidth | number [ 1 .. 10000 ] The rectangular area that is currently being viewed. |
viewportHeight | number [ 1 .. 10000 ] The rectangular area that is currently being viewed. |
quality | number [ 1 .. 100 ] Default: 100 The quality of the image. NOTE: Only applicable to jpg images. |
background | string Set the body background css style during image rasterization. For transparancy set value to |
engine | string Enum: "dom" "jquery" The selector engine to use. NOTE: dom uses querySelectorAll. |
device | string Default: "iPhone X" Enum: "Desktop" "Blackberry PlayBook" "Blackberry PlayBook landscape" "BlackBerry Z30" "BlackBerry Z30 landscape" "Galaxy Note 3" "Galaxy Note 3 landscape" "Galaxy Note II" "Galaxy Note II landscape" "Galaxy S III" "Galaxy S III landscape" "Galaxy S5" "Galaxy S5 landscape" "Galaxy S8" "Galaxy S8 landscape" "Galaxy S9+" "Galaxy S9+ landscape" "Galaxy Tab S4" "Galaxy Tab S4 landscape" "iPad" "iPad landscape" "iPad (gen 6)" "iPad (gen 6) landscape" "iPad (gen 7)" "iPad (gen 7) landscape" "iPad Mini" "iPad Mini landscape" "iPad Pro" "iPad Pro landscape" "iPad Pro 11" "iPad Pro 11 landscape" "iPhone 4" "iPhone 4 landscape" "iPhone 5" "iPhone 5 landscape" "iPhone 6" "iPhone 6 landscape" "iPhone 6 Plus" "iPhone 6 Plus landscape" "iPhone 7" "iPhone 7 landscape" "iPhone 7 Plus" "iPhone 7 Plus landscape" "iPhone 8" "iPhone 8 landscape" "iPhone 8 Plus" "iPhone 8 Plus landscape" "iPhone SE" "iPhone SE landscape" "iPhone X" "iPhone X landscape" "iPhone XR" "iPhone XR landscape" "iPhone 11" "iPhone 11 landscape" "iPhone 11 Pro" "iPhone 11 Pro landscape" "iPhone 11 Pro Max" "iPhone 11 Pro Max landscape" "iPhone 12" "iPhone 12 landscape" "iPhone 12 Pro" "iPhone 12 Pro landscape" "iPhone 12 Pro Max" "iPhone 12 Pro Max landscape" "iPhone 12 Mini" "iPhone 12 Mini landscape" "iPhone 13" "iPhone 13 landscape" "iPhone 13 Pro" "iPhone 13 Pro landscape" "iPhone 13 Pro Max" "iPhone 13 Pro Max landscape" "iPhone 13 Mini" "iPhone 13 Mini landscape" "JioPhone 2" "JioPhone 2 landscape" "Kindle Fire HDX" "Kindle Fire HDX landscape" "LG Optimus L70" "LG Optimus L70 landscape" "Microsoft Lumia 550" "Microsoft Lumia 950" "Microsoft Lumia 950 landscape" "Nexus 10" "Nexus 10 landscape" "Nexus 4" "Nexus 4 landscape" "Nexus 5" "Nexus 5 landscape" "Nexus 5X" "Nexus 5X landscape" "Nexus 6" "Nexus 6 landscape" "Nexus 6P" "Nexus 6P landscape" "Nexus 7" "Nexus 7 landscape" "Nokia Lumia 520" "Nokia Lumia 520 landscape" "Nokia N9" "Nokia N9 landscape" "Pixel 2" "Pixel 2 landscape" "Pixel 2 XL" "Pixel 2 XL landscape" "Pixel 3" "Pixel 3 landscape" "Pixel 4" "Pixel 4 landscape" "Pixel 4a (5G)" "Pixel 4a (5G) landscape" "Pixel 5" "Pixel 5 landscape" "Moto G4" "Moto G4 landscape" The device to emulate. |
Responses
Check a domain policy
Checks if a domain can be accessed based on the domain and a domain dispatches history.
path Parameters
domain required | string [ 1 .. 1000 ] characters The policy domain reference. |
Request Body schema: application/json
domainDispatches required | Array of arrays Default: [] |
Responses
Request samples
- Payload
{- "domainDispatches": [ ]
}
Create a domain policy
Creates a new domain policy.
Request Body schema: application/json
name required | string [ 1 .. 1000 ] characters The policy name/label reference. |
domain required | string [ 1 .. 1000 ] characters The policy domain reference. |
required | object Policy for number of dispatches allowed to this domain (per second, per ten seconds, and per minute) |
Responses
Request samples
- Payload
{- "name": "string",
- "domain": "string",
- "policy": {
- "perSecond": 100,
- "perTenSeconds": 1000,
- "perMinute": 6000
}
}
Update a domain policy
Updates the provided domain policy.
path Parameters
id required | string <uuid> The unique identifier for my object. (A UUID specified by RFC4122). |
Request Body schema: application/json
name required | string [ 1 .. 1000 ] characters The policy name/label reference. |
domain required | string [ 1 .. 1000 ] characters The policy domain reference. |
required | object Policy for number of dispatches allowed to this domain (per second, per ten seconds, and per minute) |
Responses
Request samples
- Payload
{- "name": "string",
- "domain": "string",
- "policy": {
- "perSecond": 100,
- "perTenSeconds": 1000,
- "perMinute": 6000
}
}
Add a cellar manifest
Add a cellar manifest for stored content.
Request Body schema: application/json
name required | string [ 1 .. 1000 ] characters ^[A-Za-z0-9-_. ]+$ The file name. |
store required | string [ 1 .. 1000 ] characters ^[A-Za-z0-9-_. ]+$ The store name. |
type required | string Enum: "file" "gcpGCS" "awsS3" "azureBlob" "kafka" "splunk" "cribl" "influxdb" "elasticsearch" "gcpPubSub" "gcpBigQuery" "awsKinesis" "http" "awsKinesisFirehose" "awsDynamoDB" "awsSQS" "awsSNS" "azureTable" "azureQueue" "cassandra" "redisPubSub" "sftp" "nats" "pulsar" "mqtt" "sql" "localFile" "timeplus" "graphistry" "snowflake" The store type. |
screenshots | Array of arrays An array of screenshot references to keep alive. |
attributesContext | object An object containing visible attributes and attribute renderers. |
Responses
Request samples
- Payload
{- "name": "string",
- "store": "string",
- "type": "file",
- "screenshots": [ ],
- "attributesContext": { }
}
Add a scheduled query
Parses, validates and schedules a query.
Request Body schema: application/json
query required | string The query string. |
cleanup | boolean |
summary | boolean |
minutes | integer >= 0 |
ttl | integer >= 0 |
metadata | object |
Responses
Request samples
- Payload
{- "query": "string",
- "cleanup": true,
- "summary": true,
- "minutes": 0,
- "ttl": 0,
- "metadata": { }
}
Update a scheduled query
Updates a scheduled query.
Request Body schema: application/json
query required | string The query string. |
cleanup | boolean |
summary | boolean |
minutes | integer >= 0 |
ttl | integer >= 0 |
metadata | object |
Responses
Request samples
- Payload
{- "query": "string",
- "cleanup": true,
- "summary": true,
- "minutes": 0,
- "ttl": 0,
- "metadata": { }
}
Create a new query template
Create a new query template.
Request Body schema: application/json
name required | string [ 1 .. 1000 ] characters The query name/label reference. |
description required | string [ 1 .. 100000 ] characters The query description. |
query required | string [ 1 .. 1048576 ] characters The crul query. |
templateSchema | object The template data schema; underlying inputs including properties and types. |
Responses
Request samples
- Payload
{- "name": "string",
- "description": "string",
- "query": "string",
- "templateSchema": { }
}
Update a query template
Update a query template.
path Parameters
id required | string <uuid> The unique identifier for my object. (A UUID specified by RFC4122). |
Request Body schema: application/json
name | string [ 1 .. 1000 ] characters The query name/label reference. |
description | string [ 1 .. 100000 ] characters The query description. |
query | string [ 1 .. 1048576 ] characters The crul query. |
Responses
Request samples
- Payload
{- "name": "string",
- "description": "string",
- "query": "string"
}
Dispatch a query template and wait for completion
Parses, validates and dispatches a query template.
Request Body schema: application/json
query required | string The query string. |
values | object |
cleanup | boolean |
summary | boolean |
minutes | integer >= 0 |
ttl | integer >= 0 |
metadata | object |
Responses
Request samples
- Payload
{- "query": "string",
- "values": { },
- "cleanup": true,
- "summary": true,
- "minutes": 0,
- "ttl": 0,
- "metadata": { }
}
Create a new checkpoint
Create a new checkpoint.
Request Body schema: application/json
name required | string [ 1 .. 1000 ] characters The checkpoint name. |
checkpoint required | string [ 1 .. 10000 ] characters The checkpoint value. |
Responses
Request samples
- Payload
{- "name": "string",
- "checkpoint": "string"
}
Update a checkpoint
Update a checkpoint.
path Parameters
name required | string [ 1 .. 1000 ] characters The checkpoint name. |
Request Body schema: application/json
checkpoint required | string [ 1 .. 10000 ] characters The checkpoint value. |
Responses
Request samples
- Payload
{- "checkpoint": "string"
}
Create a credential
Creates a new credential.
Request Body schema: application/json
type required | string Enum: "aws4" "oauth" "splunk" "custom" "openai" "pinecone" "okta" "gcp" |
object (aws4) Amazon AWS Signature Version 4 |
Responses
Request samples
- Payload
{- "type": "aws4",
- "config": {
- "credential": {
- "name": "string"
}, - "credentials": {
- "aws4": {
- "accessKeyId": "pa$$word",
- "secretAccessKey": "pa$$word"
}
}
}
}
Update a credential
Updates an existing credential.
path Parameters
name required | string |
Request Body schema: application/json
type required | string Enum: "aws4" "oauth" "splunk" "custom" "openai" "pinecone" "okta" "gcp" |
object (aws4) Amazon AWS Signature Version 4 |
Responses
Request samples
- Payload
{- "type": "aws4",
- "config": {
- "credential": {
- "name": "string"
}, - "credentials": {
- "aws4": {
- "accessKeyId": "pa$$word",
- "secretAccessKey": "pa$$word"
}
}
}
}
Create a new prompt
Create a new prompt.
Request Body schema: application/json
name required | string [ 1 .. 1000 ] characters The prompt name. |
prompt required | string [ 1 .. 10000 ] characters The prompt value. |
Responses
Request samples
- Payload
{- "name": "string",
- "prompt": "string"
}
Create a store
Creates a new store.
Request Body schema: application/json
type required | string Enum: "graphistry" "gcpGCS" "gcpPubSub" "gcpBigQuery" "awsS3" "awsDynamoDB" "awsSNS" "awsSQS" "awsKinesis" "awsKinesisFirehose" "azureBlob" "azureTable" "azureQueue" "kafka" "splunk" "cribl" "influxdb" "elasticsearch" "hdfs" "http" "localFile" "mqtt" "amqp" "sql" "nats" "nsq" "redisPubSub" "cassandra" "pulsar" "sftp" "timeplus" "snowflake" |
object (graphistry) Graphistry Upload |
Responses
Request samples
- Payload
{- "type": "graphistry",
- "config": {
- "store": {
- "name": "string"
}, - "configuration": {
- "throughput": 10
}, - "processors": [ ],
- "credentials": {
- "tls": {
- "enabled": true
}
}
}
}
Update a store
Updates an existing store.
path Parameters
name required | string [ 1 .. 1000 ] characters ^[A-Za-z0-9-_. ]+$ The store name. |
Request Body schema: application/json
type required | string Enum: "graphistry" "gcpGCS" "gcpPubSub" "gcpBigQuery" "awsS3" "awsDynamoDB" "awsSNS" "awsSQS" "awsKinesis" "awsKinesisFirehose" "azureBlob" "azureTable" "azureQueue" "kafka" "splunk" "cribl" "influxdb" "elasticsearch" "hdfs" "http" "localFile" "mqtt" "amqp" "sql" "nats" "nsq" "redisPubSub" "cassandra" "pulsar" "sftp" "timeplus" "snowflake" |
object (graphistry) Graphistry Upload |
Responses
Request samples
- Payload
{- "type": "graphistry",
- "config": {
- "store": {
- "name": "string"
}, - "configuration": {
- "throughput": 10
}, - "processors": [ ],
- "credentials": {
- "tls": {
- "enabled": true
}
}
}
}
Create a new user
Create a new user.
Request Body schema: application/json
required | object | ||||
|
Responses
Request samples
- Payload
{- "credential": {
- "username": "string",
- "password": "strings"
}
}
Update a user
Update a user.
path Parameters
username required | string [ 1 .. 1000 ] characters The username. |
Request Body schema: application/json
required | object | ||||||
|
Responses
Request samples
- Payload
{- "credential": {
- "username": "string",
- "password": "strings",
- "oldpassword": "strings"
}
}
Verify a user
Verify a user credential.
Request Body schema: application/json
required | object | ||||
|
Responses
Request samples
- Payload
{- "credential": {
- "username": "string",
- "password": "strings"
}
}
Create a scheduled query
Creates a new scheduled query.
Request Body schema: application/json
sirpURL | string |
query required | string non-empty |
ttl | integer >= 0 |
metadata | object |
summary | boolean |
cleanup | boolean |
queryId | string |
minutes | integer [ 0 .. 525600 ] |
Responses
Request samples
- Payload
{- "sirpURL": "string",
- "query": "string",
- "ttl": 0,
- "metadata": { },
- "summary": true,
- "cleanup": true,
- "queryId": "string",
- "minutes": 525600
}
Create a scheduled query
Creates a new scheduled query.
Request Body schema: application/json
sirpURL | string |
query required | string non-empty |
ttl | integer >= 0 |
metadata | object |
summary | boolean |
cleanup | boolean |
queryId | string |
minutes | integer [ 0 .. 525600 ] |
Responses
Request samples
- Payload
{- "sirpURL": "string",
- "query": "string",
- "ttl": 0,
- "metadata": { },
- "summary": true,
- "cleanup": true,
- "queryId": "string",
- "minutes": 525600
}
Add a license
Adds a new license.
Request Body schema: application/json
required | object (#fileUploadSchema) | ||||||||
|
Responses
Request samples
- Payload
{- "licenseKey": {
- "fieldname": "string",
- "encoding": "string",
- "filename": "string",
- "mimetype": "string"
}
}
Upload a license
Upload a new license.
Request Body schema: application/json
required | object (#fileUploadSchema) | ||||||||
|
Responses
Request samples
- Payload
{- "licenseKey": {
- "fieldname": "string",
- "encoding": "string",
- "filename": "string",
- "mimetype": "string"
}
}
Create a secret
Creates a new secret.
Request Body schema: application/json
type | string Enum: "store" "credential" "custom" "apikey" "user" "checkpoint" "prompt" |
providerType | string |
secret | string [ 1 .. 100000 ] characters |
name required | string [ 1 .. 250 ] characters |
object |
Responses
Request samples
- Payload
{- "type": "store",
- "providerType": "string",
- "secret": "string",
- "name": "string",
- "metadata": {
- "type": null
}
}
Create a secret
Creates a new secret.
Request Body schema: application/json
type | string Enum: "store" "credential" "custom" "apikey" "user" "checkpoint" "prompt" |
providerType | string |
secret | string [ 1 .. 100000 ] characters |
name required | string [ 1 .. 250 ] characters |
object |
Responses
Request samples
- Payload
{- "type": "store",
- "providerType": "string",
- "secret": "string",
- "name": "string",
- "metadata": {
- "type": null
}
}
Create a stream
Create a new stream.
Request Body schema: application/json
name required | string [ 1 .. 1000 ] characters The stream name/label reference. |
streamConfig required | object A configuration object describing the desired stream. |
Responses
Request samples
- Payload
{- "name": "string",
- "streamConfig": { }
}
Write to a stream
Write results using a stream.
Request Body schema: application/json
name | string [ 1 .. 1000 ] characters The stream name/label reference. |
config required | object A configuration object describing the desired write. |
Responses
Request samples
- Payload
{- "name": "string",
- "config": { }
}
Dispatch a command
Dispatches a single command.
Request Body schema: application/json
command required | string |
args | Array of arrays |
flags | object |
prev | string |
line | number |
metadata | object |
id | string |
Responses
Request samples
- Payload
{- "command": "string",
- "args": [ ],
- "flags": { },
- "prev": "string",
- "line": 0,
- "metadata": { },
- "id": "string"
}
Parse a query string and decorate with attributes
Parses a query string and returns the matched command decorators used to format single or multople attribute decorators.
path Parameters
type required | string Enum: "attribute" "multiattribute" |
Request Body schema: application/json
query required | string The query string. |
Responses
Request samples
- Payload
{- "query": "string"
}