POST
/
pipelines
/
{pipeline_id}
/
jobs
const headers = {'Content-Type': 'application/json', 'API-Key': '<lume_api_key>'};
const pipeline_id = '<pipeline_id>'; // Replace <pipeline_id> with your actual pipeline ID

const body = {
	data: [
		{
			first_name: 'John',
			last_name: 'Doe'
		},
		{
			first_name: 'Jane',
			last_name: 'Doe'
		}
	]
};

fetch(`${'https://api.lume.ai'}/pipelines/${pipeline_id}/jobs`, {
	method: 'POST',
	headers: headers,
	body: JSON.stringify(body),
})
.then(response => response.json())
.catch(err => console.error(err));
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "created_at": "2023-11-07T05:31:56Z",
  "pipeline_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

Creates a new job.

See the Job Guide to learn more.

const headers = {'Content-Type': 'application/json', 'API-Key': '<lume_api_key>'};
const pipeline_id = '<pipeline_id>'; // Replace <pipeline_id> with your actual pipeline ID

const body = {
	data: [
		{
			first_name: 'John',
			last_name: 'Doe'
		},
		{
			first_name: 'Jane',
			last_name: 'Doe'
		}
	]
};

fetch(`${'https://api.lume.ai'}/pipelines/${pipeline_id}/jobs`, {
	method: 'POST',
	headers: headers,
	body: JSON.stringify(body),
})
.then(response => response.json())
.catch(err => console.error(err));

Authorizations

lume-api-key
string
headerrequired

Path Parameters

pipeline_id
string
required

Body

application/json
data
object[]
required

The data to be transformed by the job

Response

200 - application/json
id
string
required

The unique identifier of this object

created_at
string
required

The date and time this object was created

pipeline_id
string
required

The id of the pipeline the job is associated with