# Transloadit

> Start file processing assemblies and read their results, templates and workspace usage.

App · 13 actions. Web page: https://docs.lodol.com/docs/integrations/transloadit

## Actions

### Cancel an assembly

Stop a running assembly.

**Inputs**

- Assembly (`assembly_id`, text, required): Assembly id.

**Outputs**: Response.

- `data` (object): Data.

**Example output**

```json
{
  "data": {
    "assembly_id": "example",
    "assembly_ssl_url": "example",
    "ok": "example",
    "results": {},
    "uploads": []
  }
}
```

### Create an assembly

Start a file processing assembly from an existing template or your own processing steps.

**Inputs**

- Template (`template_id`, text): Template id.
- Steps (`steps`, object): Steps.
- Fields (`fields`, object): Fields.

**Outputs**: Response.

- `data` (object): Data.

**Example output**

```json
{
  "data": {
    "assembly_id": "example",
    "assembly_ssl_url": "example",
    "ok": "example",
    "results": {},
    "uploads": []
  }
}
```

### Get a template

Read the settings and processing steps in a selected template.

**Inputs**

- Template (`template_id`, text, required): Template id.

**Outputs**: Response.

- `data` (object): Data.

**Example output**

```json
{
  "data": {
    "assembly_status_expiry": "example",
    "cron_auth_key_id": "example",
    "cron_enabled": false,
    "cron_max_concurrent_runs": 1,
    "cron_region": "ap-southeast-1",
    "cron_schedule_with_seconds": "example",
    "id": "example",
    "message": "example",
    "name": "example",
    "ok": "example",
    "require_signature_auth": 0,
    "transcoding_result_expiry": "example"
  }
}
```

### Get assembly statistics

Read assembly statistics for the connected workspace.

**Inputs**: None.

**Outputs**: Response.

- `data` (object): Data.

**Example output**

```json
{
  "data": {
    "errorStats": [],
    "errorStatsGranularity": 1,
    "errorStatsTotals": [],
    "granularity": 1,
    "ok": "example",
    "stats": [],
    "totalAssemblies": 1,
    "totalBytesProcessed": 1,
    "totalBytesUploaded": 1,
    "totalExecutionDuration": 1.0,
    "totalFilesProcessed": 1,
    "totalLiveQueueDuration": 1.0,
    "totalOutputBytesProcessed": 1,
    "totalOutputFilesProcessed": 1,
    "totalUploadDuration": 1.0,
    "totalUsage": 1
  }
}
```

### Get assembly status

Read the status, uploads and results of a selected assembly.

**Inputs**

- Assembly (`assembly_id`, text, required): Assembly id.

**Outputs**: Response.

- `data` (object): Data.

**Example output**

```json
{
  "data": {
    "assembly_id": "example",
    "assembly_ssl_url": "example",
    "ok": "example",
    "results": {},
    "uploads": []
  }
}
```

### Get job slot usage

Read job slot usage for the connected workspace.

**Inputs**: None.

**Outputs**: Response.

- `data` (object): Data.

**Example output**

```json
{
  "data": {
    "message": "example",
    "ok": "example",
    "priority_job_slots": {
      "count": 1,
      "slots": {}
    }
  }
}
```

### Get priority job slot statistics

Read priority job slot statistics for the connected workspace.

**Inputs**: None.

**Outputs**: Response.

- `data` (object): Data.

**Example output**

```json
{
  "data": {
    "aggregation": "avg",
    "avgSlotCount": 1.0,
    "granularity": 1,
    "maxSlotCount": 1,
    "ok": "example",
    "stats": []
  }
}
```

### List assemblies

Read one page of file processing assemblies.

**Inputs**

- Page (`page`, number): Page. At least 1.
- Page size (`page_size`, number): Page size. From 1 to 100.
- Start time (`start_time`, date and time): Start time.
- End time (`end_time`, date and time): End time.
- Template (`template_id`, text): Template id.
- Order (`order`, text): Order. One of: `asc`, `desc`.

**Outputs**: Response.

- `data` (object): Data.

**Example output**

```json
{
  "data": {
    "count": 1,
    "items": []
  }
}
```

### List assembly notifications

Read webhook delivery attempts for an assembly.

**Inputs**

- Assembly (`assembly_id`, text, required): Assembly id.

**Outputs**: Response.

- `data` (object): Data.

**Example output**

```json
{
  "data": {
    "notifications": [],
    "ok": "example"
  }
}
```

### List template credential types

Read template credential types for the connected workspace.

**Inputs**: None.

**Outputs**: Response.

- `data` (object): Data.

**Example output**

```json
{
  "data": {
    "message": "example",
    "ok": "example",
    "types": {}
  }
}
```

### List template scheduled runs

Read run history for a scheduled template.

**Inputs**

- Template (`template_id`, text, required): Template id.

**Outputs**: Response.

- `data` (object): Data.

**Example output**

```json
{
  "data": {
    "cron_disabled_reason": "auth_key_unavailable",
    "message": "example",
    "next_before": "example",
    "ok": "example",
    "runs": [],
    "template_id": "example"
  }
}
```

### List templates

Read one page of file processing templates.

**Inputs**

- Page (`page`, number): Page. At least 1.
- Page size (`page_size`, number): Page size. From 1 to 100.
- Start time (`start_time`, date and time): Start time.
- End time (`end_time`, date and time): End time.
- Keywords (`keywords`, text): Keywords.
- Include builtin (`include_builtin`, text): Include builtin. One of: `none`, `latest`, `all`, `exclusively-latest`, `exclusively-all`.

**Outputs**: Response.

- `data` (object): Data.

**Example output**

```json
{
  "data": {
    "count": 1,
    "items": []
  }
}
```

### Replay an assembly

Run an existing assembly again. Uses processing credits.

**Inputs**

- Assembly (`assembly_id`, text, required): Assembly id.

**Outputs**: Response.

- `data` (object): Data.

**Example output**

```json
{
  "data": {
    "assembly_id": "example",
    "assembly_ssl_url": "example",
    "ok": "example",
    "results": {},
    "uploads": []
  }
}
```
