---
updatedAt: 2026-11-10T14:10:00.000Z
agentTools:
  projectIndex: https://docs.followupboss.com/llms.txt
---

# /dealAttachments

Add an attachment to a deal.

> ❗️ Restricted - Registered Systems Only
>
> External systems requesting to hit this endpoint must be registered with Follow Up Boss. To learn more, see the section on [Identification](https://docs.followupboss.com/reference/identification).

> 🚧 URI - File Location
>
> The URI should be a link to a file location stored **outside** of Follow Up Boss. If a URI is not provided, the API will treat the request as an attempt to upload a file to our servers and return a 403.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "api-settings",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.followupboss.com/v1"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "http",
        "scheme": "basic"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/dealAttachments": {
      "post": {
        "summary": "/dealAttachments",
        "description": "Add an attachment to a deal.",
        "operationId": "dealattachments-post",
        "parameters": [
          {
            "name": "X-System",
            "in": "header",
            "description": "Registered system name.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-System-Key",
            "in": "header",
            "description": "Registered system API key.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "dealId",
                  "uri",
                  "fileName"
                ],
                "properties": {
                  "dealId": {
                    "type": "integer",
                    "description": "The id of the deal you want to add an attachment to.",
                    "format": "int32"
                  },
                  "uri": {
                    "type": "string",
                    "description": "The URI of an **externally** hosted file."
                  },
                  "fileName": {
                    "type": "string",
                    "description": "Name of the file."
                  },
                  "fileSize": {
                    "type": "integer",
                    "description": "Size of the file in bytes.",
                    "format": "int32"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "201",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"dealId\": 1,\n    \"fileName\": \"test.jpg\",\n    \"fileSize\": null,\n    \"id\": 10,\n    \"mimeType\": \"link\",\n    \"uri\": \"https://test.com/myfile\",\n    \"thumbnailUri\": null,\n    \"status\": \"created\",\n    \"createdAt\": \"2022-11-16T19:09:45Z\",\n    \"createdById\": 1,\n    \"createdByName\": \"Olivia Admin\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "dealId": {
                      "type": "integer",
                      "example": 1,
                      "default": 0
                    },
                    "fileName": {
                      "type": "string",
                      "example": "test.jpg"
                    },
                    "fileSize": {},
                    "id": {
                      "type": "integer",
                      "example": 10,
                      "default": 0
                    },
                    "mimeType": {
                      "type": "string",
                      "example": "link"
                    },
                    "uri": {
                      "type": "string",
                      "example": "https://test.com/myfile"
                    },
                    "thumbnailUri": {},
                    "status": {
                      "type": "string",
                      "example": "created"
                    },
                    "createdAt": {
                      "type": "string",
                      "example": "2022-11-16T19:09:45Z"
                    },
                    "createdById": {
                      "type": "integer",
                      "example": 1,
                      "default": 0
                    },
                    "createdByName": {
                      "type": "string",
                      "example": "Olivia Admin"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "403",
            "content": {
              "text/plain": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"errorMessage\": \"You do not have access to this endpoint.\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "errorMessage": {
                      "type": "string",
                      "example": "You do not have access to this endpoint."
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```