# Claim outbound sends

A sender takes the next due messages to carry, marked as its own so two senders never take the same work and only the holder may report on them. The desktop rail's route, not a person's.

Access class: `workspace`.

## Endpoint

`POST /v1/comms/outbound/claim`

## Request body

Content type: `application/json`.

```json
{
  "body": {
    "claimed_by": "string",
    "limit": 1,
    "medium": "string"
  },
  "params": {},
  "query": {}
}
```

## Responses

### 201

the action's answer

Content type: `application/json`.

```json
{
  "jobs": [
    {
      "attempts": 1,
      "body": "string",
      "body_html": "string",
      "conversation_id": 1,
      "from_identifier": "string",
      "media_count": 1,
      "medium": "string",
      "message_id": 1,
      "subject": "string",
      "to_identifier": "string"
    }
  ]
}
```

### default

a refusal: `{"error": "<what a person needs to read>"}`. 401 no credential, 402 the plan does not include this, 403 the seat does not, 404 the thing does not exist or is not yours to see.

Content type: `application/json`.

```json
{
  "error": "string"
}
```
