---
title: "Run a trigger with a signed request"
---

> 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.

# Run a trigger with a signed request

Path: CloudRaker Paperwork API › Triggers

`POST /v1/triggers/{ref}/fire`

Send x-rk1-trigger-signature with t=<unix-seconds>,v1=<HMAC-SHA256 of t.rawBody>. The reference is tenantSlug.organizationId.triggerId. The signature expires after five minutes. Identical signed requests share one delivery. Use the secret shown when the trigger was created or rotated.

## Authentication

- `bearerAuth`, http, header `Authorization`

## Path parameters

- `ref` (`fireSignedTrigger.path.ref`; string, required)

## Request body

_Required._

- `input` (`fireSignedTrigger.input`; map<unknown>, optional)

## Example request

```json
{
  "input": {
    "property1": null,
    "property2": null
  }
}
```

## Code samples

### cURL

```bash
curl --request POST \
  --url 'https://api.cloudraker.com/v1/triggers/<ref>/fire' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "input": {
    "property1": null,
    "property2": null
  }
}
'
```

### TypeScript

```typescript
const url = 'https://api.cloudraker.com/v1/triggers/<ref>/fire';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json', Authorization: 'Bearer <token>'},
  body: JSON.stringify({input: {property1: null, property2: null}})
};

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

### Python

```python
import requests

url = "https://api.cloudraker.com/v1/triggers/<ref>/fire"

payload = { "input": {
        "property1": None,
        "property2": None
    } }
headers = {
    "Content-Type": "application/json",
    "Authorization": "Bearer <token>"
}

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

print(response.text)
```

## Responses

### 200

The existing delivery outcome.

#### Example

```json
{
  "data": {
    "status": "queued",
    "sessionId": "string",
    "message": "string",
    "deliveryId": "string"
  }
}
```

- `data` (`fireSignedTrigger.response.200.data`; object, required)
  - `status` (`fireSignedTrigger.response.200.data.status`; string, required)
    - one of `"queued"`, `"opened"`, `"busy"`, `"needs_input"`, `"blocked"`, `"error"`
  - `deliveryId` (`fireSignedTrigger.response.200.data.deliveryId`; string, required)
  - `sessionId` (`fireSignedTrigger.response.200.data.sessionId`; string, optional)
    - minLength 1; maxLength 128
  - `message` (`fireSignedTrigger.response.200.data.message`; string, optional)
    - maxLength 1000

### 202

The queued delivery.

#### Example

```json
{
  "data": {
    "status": "queued",
    "sessionId": "string",
    "message": "string",
    "deliveryId": "string"
  }
}
```

- `data` (`fireSignedTrigger.response.202.data`; object, required)
  - `status` (`fireSignedTrigger.response.202.data.status`; string, required)
    - one of `"queued"`, `"opened"`, `"busy"`, `"needs_input"`, `"blocked"`, `"error"`
  - `deliveryId` (`fireSignedTrigger.response.202.data.deliveryId`; string, required)
  - `sessionId` (`fireSignedTrigger.response.202.data.sessionId`; string, optional)
    - minLength 1; maxLength 128
  - `message` (`fireSignedTrigger.response.202.data.message`; string, optional)
    - maxLength 1000

### 401

The signature is missing, invalid, or expired.

### 404

The trigger is unavailable.

### 413

The request exceeds 16 KiB.

### 429

Rate limited. The `/v1` API allows at least **67 requests per minute per organization** (about 1,000 requests per 15 minutes) — a guaranteed floor, enforced per edge location, so a geographically spread caller may get more. Wait for the `Retry-After` interval and retry — the error is `retryable`.

#### Example

```json
{
  "code": "rate_limited",
  "message": "string",
  "retryable": true,
  "requestId": "string",
  "docUrl": "string"
}
```

- `code` (`fireSignedTrigger.response.429.code`; string, required)
  - one of `"rate_limited"`
- `message` (`fireSignedTrigger.response.429.message`; string, required)
- `retryable` (`fireSignedTrigger.response.429.retryable`; boolean, required)
  - one of `true`
- `requestId` (`fireSignedTrigger.response.429.requestId`; string, required)
- `docUrl` (`fireSignedTrigger.response.429.docUrl`; string, optional)


Source: https://docs.cloudraker.com/paperwork/api/triggers/fire-signed-trigger/index.md
