cURL
curl --location --request GET https://api.writer.com/v1/applications/{application_id}/jobs \
--header "Authorization: Bearer <token>"import os
from writerai import Writer
client = Writer(
api_key=os.environ.get("WRITER_API_KEY"), # This is the default and can be omitted
)
page = client.applications.jobs.list(
application_id="application_id",
)
page = page.result[0]
print(page.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() {
// Automatically fetches more pages as needed.
for await (const applicationGenerateAsyncResponse of client.applications.jobs.list('application_id')) {
console.log(applicationGenerateAsyncResponse.id);
}
}
main();{
"result": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "in_progress",
"application_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"data": {
"suggestion": "<string>",
"title": "<string>"
},
"error": "<string>"
}
],
"totalCount": 123,
"pagination": {
"offset": 123,
"limit": 123
}
}Applications API
Retrieve all jobs
Retrieve all jobs created via the async API, linked to the provided application ID (or alias).
GET
/
v1
/
applications
/
{application_id}
/
jobs
cURL
curl --location --request GET https://api.writer.com/v1/applications/{application_id}/jobs \
--header "Authorization: Bearer <token>"import os
from writerai import Writer
client = Writer(
api_key=os.environ.get("WRITER_API_KEY"), # This is the default and can be omitted
)
page = client.applications.jobs.list(
application_id="application_id",
)
page = page.result[0]
print(page.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() {
// Automatically fetches more pages as needed.
for await (const applicationGenerateAsyncResponse of client.applications.jobs.list('application_id')) {
console.log(applicationGenerateAsyncResponse.id);
}
}
main();{
"result": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "in_progress",
"application_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"data": {
"suggestion": "<string>",
"title": "<string>"
},
"error": "<string>"
}
],
"totalCount": 123,
"pagination": {
"offset": 123,
"limit": 123
}
}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 retrieve jobs.
Query Parameters
The status of the job.
Available options:
in_progress, failed, completed The pagination offset for retrieving the jobs.
The pagination limit for retrieving the jobs.
Was this page helpful?