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.You need an API key to access the Writer API. Get an API key by following the steps in the API quickstart.We recommend setting the API key as an environment variable in a
.env
file with the name WRITER_API_KEY
.Endpoint overview
URL:POST https://api.writer.com/v1/applications/{application_id}/jobs
Path parameters
Parameter | Type | Description |
---|---|---|
application_id | string | The ID of the no-code agent |
Request body
The async applications API has the same request body structure as the no-code agents API. It should contain an array of input objects matching the no-code agent’s input schema.Response format
A successful job creation request returns a JSON object with the following structure:Parameter | Type | Description |
---|---|---|
job_id | string | The ID of the job |
status | string | The status of the job. Can be in_progress , completed , or failed . |
created_at | string | The date and time the job was created |
Usage example
The following example demonstrates using the async applications API to generate content asynchronously with a hypothetical product description generation agent.Create and deploy a no-code agent
First, create and deploy a no-code agent in AI Studio. If you don’t already have a no-code agent, follow the text generation guide to get started.Create an async job
Send aPOST
request with the inputs for the agent to create an async job.
Check job status
Use the job ID from the creation response to check the status of your job and see the results.data.suggestion
field, which has the same structure as the no-code agents API.