# Copy.ai

> Run Copy.ai workflows, read their results, and manage workflow event webhooks.

App · 7 actions. Web page: https://docs.lodol.com/docs/integrations/copy-ai

## Actions

### Delete webhook

Delete webhook.

**Inputs**

- Webhook ID (`webhook_id`, text, required): Webhook id.

**Outputs**

- `response` (object): Response.

**Example output**

```json
{
  "response": {
    "data": {
      "data": [],
      "id": "example",
      "output": {},
      "status": "example",
      "total": 0
    },
    "status": "example"
  }
}
```

### Get webhook

Get webhook.

**Inputs**

- Webhook ID (`webhook_id`, text, required): Webhook id.

**Outputs**

- `response` (object): Response.

**Example output**

```json
{
  "response": {
    "data": {
      "data": [],
      "id": "example",
      "output": {},
      "status": "example",
      "total": 0
    },
    "status": "example"
  }
}
```

### Get workflow run

Get workflow run.

**Inputs**

- Workflow (`copy_workflow_id`, text, required): Workflow id.
- Run ID (`run_id`, text, required): Run id.

**Outputs**

- `response` (object): Response.

**Example output**

```json
{
  "response": {
    "data": {
      "data": [],
      "id": "example",
      "output": {},
      "status": "example",
      "total": 0
    },
    "status": "example"
  }
}
```

### List webhooks

List webhooks. Gets one page; to see more, run it again with the next page it gives.

**Inputs**

- Size (`size`, number): Size. From 1.0 to 100.0.
- Page (`page`, number): Page. From 1.0 to 100000.0.

**Outputs**

- `response` (object): Response.

**Example output**

```json
{
  "response": {
    "data": {
      "data": [],
      "id": "example",
      "output": {},
      "status": "example",
      "total": 0
    },
    "status": "example"
  }
}
```

### List workflow runs

List workflow runs. Gets one page; to see more, run it again with the next page it gives.

**Inputs**

- Workflow (`copy_workflow_id`, text, required): Workflow id.
- Size (`size`, number): Size. From 1.0 to 100.0.
- Page (`page`, number): Page. From 1.0 to 100000.0.

**Outputs**

- `response` (object): Response.

**Example output**

```json
{
  "response": {
    "data": {
      "data": [],
      "id": "example",
      "output": {},
      "status": "example",
      "total": 0
    },
    "status": "example"
  }
}
```

### Register webhook

Register webhook.

**Inputs**

- URL (`url`, text, required): Url.
- Event type (`event_type`, text, required): Event type. One of: `workflowRun.started`, `workflowRun.completed`, `workflowRun.failed`, `workflowCreditLimit.reached`.
- Workflow (`copy_workflow_id`, text): Workflow id.

**Outputs**

- `response` (object): Response.

**Example output**

```json
{
  "response": {
    "data": {
      "data": [],
      "id": "example",
      "output": {},
      "status": "example",
      "total": 0
    },
    "status": "example"
  }
}
```

### Start workflow run

Start workflow run.

**Inputs**

- Workflow (`copy_workflow_id`, text, required): Workflow id.
- Start variables (`start_variables`, object, required): Start variables.
- Metadata (`metadata`, object): Metadata.

**Outputs**

- `response` (object): Response.

**Example output**

```json
{
  "response": {
    "data": {
      "data": [],
      "id": "example",
      "output": {},
      "status": "example",
      "total": 0
    },
    "status": "example"
  }
}
```
