---
title: "Inbound trigger"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.cloudraker.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Inbound trigger

Path: cloudraker.run API

`POST /{base}/{agent}/_inbound/{source}`

Webhook target for a source in `triggers.inbound` (`linear`, `workos`). Verified with the source signature, not a run token.

## Path parameters

- `base` (`inboundTrigger.path.base`; string, required) — The base path of the repo: its name by default (D41). The root repo of the org has none: use `/{agent}`.
- `agent` (`inboundTrigger.path.agent`; string, required)
- `source` (`inboundTrigger.path.source`; string, required)
  - one of `"linear"`, `"workos"`

## Request body

_Required._

## Example request

```json
{}
```

## Code samples

### cURL

```bash
curl --request POST \
  --url 'https://your-org.cloudraker.run/<base>/<agent>/_inbound/linear' \
  --header 'Content-Type: application/json' \
  --data '{}'
```

### TypeScript

```typescript
const url = 'https://your-org.cloudraker.run/<base>/<agent>/_inbound/linear';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json'},
  body: JSON.stringify({})
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://your-org.cloudraker.run/<base>/<agent>/_inbound/linear"

payload = {}
headers = {"Content-Type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
```

## Responses

### 202

Accepted. A run started, or the event is not listed.

### 4XX

Error. See the `code` table in the guides.

#### Example

```json
{
  "error": {
    "code": "run_busy",
    "message": "string",
    "run_id": "string",
    "details": null
  }
}
```

- `error` (`inboundTrigger.response.4XX.error`; object, required)
  - `code` (`inboundTrigger.response.4XX.error.code`; string, required)
    - example `"run_busy"`
  - `message` (`inboundTrigger.response.4XX.error.message`; string, required)
  - `run_id` (`inboundTrigger.response.4XX.error.run_id`; string, optional)
  - `details` (`inboundTrigger.response.4XX.error.details`; unknown, optional)


Source: https://docs.cloudraker.com/run/api/inbound-trigger/index.md
