# Workflows

Inbox automation workflows. Read-only here: workflows are built in the iClosed app.

Version: 1.0.0
License: Proprietary

## Servers

Production
```
https://uinboxpub.api.iclosed.io
```

## Security

### bearerAuth

API key required in Authorization header. Format: `iclosed_<token>`

Type: http
Scheme: bearer
Bearer Format: API key

### oauth2

OAuth 2.1 authorization code with PKCE. Tokens are issued by the iClosed authorization server and accepted by the Unified Inbox API.

Type: oauth2
Authorization URL: https://app.iclosed.io/oauth/authorize
Token URL: https://public.api.iclosed.io/v1/oauth/token
Scopes:
- `inbox.chats:read`: Read inbox chats
- `inbox.chats:write`: Create, update and assign inbox chats
- `inbox.messages:read`: Read inbox messages
- `inbox.messages:write`: Send and retry inbox messages
- `inbox.connections:read`: Read channel connections
- `inbox.analytics:read`: Read inbox analytics
- `inbox.recordings:read`: Read call recordings
- `inbox.recordings:write`: Generate call recording summaries
- `inbox.workflows:read`: Read inbox workflows

## Download OpenAPI description

 - [Workflows](https://developer.iclosed.io/_bundle/openapi/uinbox/v1/modules/workflows.yaml)

 - [GET /v1/workflows/list](https://developer.iclosed.io/openapi/uinbox/v1/modules/workflows/other/listworkflows.md): Lists the inbox automation workflows this key's owner can see on the account. data.list holds them, newest first, and data.count how many there are.
 - [GET /v1/workflows/{id}](https://developer.iclosed.io/openapi/uinbox/v1/modules/workflows/other/getworkflow.md): Returns one workflow with its trigger and steps. Unknown ids return 404.
 - [GET /v1/workflows/logs/{workflowId}](https://developer.iclosed.io/openapi/uinbox/v1/modules/workflows/other/getworkflowlogs.md): Returns one page of run logs for a workflow, newest first. data.list is the page and data.count the total across all pages. page is zero-based and defaults to 0; limit defaults to 20 and cannot exceed
