> This page is for Referencia de la API.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://signalcore.ai/docs/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://signalcore.ai/docs/_mcp/server.

# Files Create

POST https://signalcore.ai/v1/conversations/{conversation_id}/files
Content-Type: application/octet-stream

The file's bytes as the body, its type as `Content-Type`, its name (URL-encoded) as
`X-File-Name`.

Reference: https://signalcore.ai/docs/referencia/conversaciones/files-create

## Authentication

- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Request

### Path parameters

- `conversation_id` (string, required)

### Body (application/octet-stream)

This endpoint expects binary data of type application/octet-stream.

- Binary request body.

## Response

### 201

Successful Response

- `id` (string, required)
- `name` (string, required)
- `media_type` (string, required)
- `size` (integer, required)
- `conversation_id` (string, required)
- `created_at` (datetime, required)

## Errors

### 422 Conversations Files Create Request Unprocessable Entity Error

Validation Error

- `detail` (list of ValidationError, optional)

## Types

### ValidationError

- `loc` (list of ValidationErrorLocItem, required)
- `msg` (string, required)
- `type` (string, required)
- `input` (any, optional)
- `ctx` (map from string to any, optional)

### ValidationErrorLocItem

## Examples

**Response**

```json
{
  "id": "string",
  "name": "string",
  "media_type": "string",
  "size": 0,
  "conversation_id": "string",
  "created_at": "2023-01-01T00:00:00Z"
}
```

**SDK Code**

```python
import requests

url = "https://signalcore.ai/v1/conversations/%3Aconversation_id/files"

headers = {
    "SignalCore-Org": "string",
    "Authorization": "Bearer <token>",
    "Content-Type": "application/octet-stream"
}

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

print(response.json())
```