cURL
curl --location --request GET https://api.writer.com/v1/applications/jobs/{job_id} \
--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
)
application_generate_async_response = client.applications.jobs.retrieve(
"182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
)
print(application_generate_async_response.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 applicationGenerateAsyncResponse = await client.applications.jobs.retrieve(
'182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
);
console.log(applicationGenerateAsyncResponse.id);
}
main();{
"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>"
}Applications API
Retrieve a single job
Retrieves a single job created via the Async API.
GET
/
v1
/
applications
/
jobs
/
{job_id}
cURL
curl --location --request GET https://api.writer.com/v1/applications/jobs/{job_id} \
--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
)
application_generate_async_response = client.applications.jobs.retrieve(
"182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
)
print(application_generate_async_response.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 applicationGenerateAsyncResponse = await client.applications.jobs.retrieve(
'182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
);
console.log(applicationGenerateAsyncResponse.id);
}
main();{
"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>"
}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.
Response
200 - application/json
Successful response
Was this page helpful?