cURL
curl --location --request POST https://api.writer.com/v1/applications/{application_id}/jobs \
--header "Authorization: Bearer <token>" \
--header "Content-Type: application/json" \
--data-raw '{"inputs":[{"id": "Image ID", "value": ["12345"]}]}'import os
from writerai import Writer
client = Writer(
api_key=os.environ.get("WRITER_API_KEY"), # This is the default and can be omitted
)
job = client.applications.jobs.create(
application_id="application_id",
inputs=[{
"id": "id",
"value": ["string"],
}],
)
print(job.id)import Writer from 'writer-sdk';
const client = new Writer({
apiKey: process.env['WRITER_API_KEY'], // This is the default and can be omitted
});
async function main() {
const job = await client.applications.jobs.create('application_id', {
inputs: [{ id: 'id', value: ['string'] }],
});
console.log(job.id);
}
main();{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "in_progress",
"created_at": "2023-11-07T05:31:56Z"
}Applications API
Generate from application (async)
Generate content asynchronously from an existing no-code agent (formerly called no-code applications) with inputs.
POST
/
v1
/
applications
/
{application_id}
/
jobs
cURL
curl --location --request POST https://api.writer.com/v1/applications/{application_id}/jobs \
--header "Authorization: Bearer <token>" \
--header "Content-Type: application/json" \
--data-raw '{"inputs":[{"id": "Image ID", "value": ["12345"]}]}'import os
from writerai import Writer
client = Writer(
api_key=os.environ.get("WRITER_API_KEY"), # This is the default and can be omitted
)
job = client.applications.jobs.create(
application_id="application_id",
inputs=[{
"id": "id",
"value": ["string"],
}],
)
print(job.id)import Writer from 'writer-sdk';
const client = new Writer({
apiKey: process.env['WRITER_API_KEY'], // This is the default and can be omitted
});
async function main() {
const job = await client.applications.jobs.create('application_id', {
inputs: [{ id: 'id', value: ['string'] }],
});
console.log(job.id);
}
main();{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "in_progress",
"created_at": "2023-11-07T05:31:56Z"
}No-code applications are now called no-code agents. The Applications API, which you can use to programmatically interact with no-code agents, still uses the term
application to minimize breaking changes.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your Writer API key.
Path Parameters
The ID of the no-code app for which to create a job.
Body
application/json
A list of input objects to generate content for.
Show child attributes
Show child attributes
Was this page helpful?