# Create agent attachment

```http
POST https://hiresweep.com/api/openapi/agent/attachments
x-api-key: YOUR_API_KEY
```

## Request body

```json
{
  "type": "object",
  "properties": {
    "threadId": {
      "type": "string"
    },
    "filename": {
      "type": "string",
      "minLength": 1
    },
    "mediaType": {
      "type": "string",
      "minLength": 1
    },
    "data": {
      "type": "string",
      "minLength": 1
    }
  },
  "required": [
    "threadId",
    "filename",
    "mediaType",
    "data"
  ]
}
```

## Responses

- `200`: OK
