Create input queue config
POST
/api/v1/integrations/inputs
const url = 'https://dashboard.justcrawl.io/api/v1/integrations/inputs';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"example","queueType":"sqs","credentials":{},"queueUrl":"example","workflowId":"example","pollIntervalMs":1,"maxUrlsPerDay":1}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://dashboard.justcrawl.io/api/v1/integrations/inputs \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "queueType": "sqs", "credentials": {}, "queueUrl": "example", "workflowId": "example", "pollIntervalMs": 1, "maxUrlsPerDay": 1 }'Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ” Media type application/json
object
name
required
string
queueType
required
string
credentials
object
queueUrl
string
workflowId
string
pollIntervalMs
integer
maxUrlsPerDay
integer
Responses
Section titled “ Responses ”Created input queue configuration
Media type application/json
object
id
string format: uuid
name
string
queueType
string
queueUrl
string
workflowId
string format: uuid
isEnabled
boolean
pollIntervalMs
integer
maxUrlsPerDay
integer
webhookUrl
string
lastPolledAt
string format: date-time
lastError
string
createdAt
string format: date-time
Example
{ "queueType": "sqs"}