Post
/workflow/{workflow_id}/run
This page will help you get started with starting a Workflow Run.
Start a workflow run
To start a workflow run, send a POST request to <https://api.copy.ai/api/workflow/><workflow_id>/run with a JSON body containing the starting value(s) for the run.
For example:
JSON
{
"startVariables": {
"Input 1": "<Inputs vary depending on the workflow used.>",
"Input 2": "<The best way to see an example is to try it!>"
},
"metadata": {
"api": true /* example optional metadata to set on the workflow run */
}
}You will receive a response with the ID of the started workflow run:
JSON
{
"status": "success",
"data": {
"id": "<run_id>"
}
}Security
API Key: ApiKeyAuth
Header parameter namex-copy-ai-api-key
Copy.ai API key for authentication
Header parameters
x-copy-ai-api-key
stringRequired
Path parameters
workflow_id
stringRequired
ID of the workflow
Body parameters
example1
{
"startVariables": {
"input_text": "Generate a blog post about AI",
"tone": "professional"
},
"metadata": {
"api": "True",
"user_id": "user_12345"
}
}object
startVariables
object Required
metadata
object
Responses
200
Success
success
{
"status": "success",
"data": {
"id": "some-UUID-1234"
}
}object
status
string
data
object
id
string
400
Bad Request or Credit Limit Reached
creditLimit
{
"status": "error",
"errorCode": "WORKFLOW_CREDIT_LIMIT_REACHED"
}404
Not Found
422
Validation Error