---
updatedAt: 2026-09-29T16:09:14.000Z
agentTools:
  projectIndex: https://docs.falco-app.be/llms.txt
---

# Add an attachment

Required scopes: `invoices:attachments:write`


# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Falco Billing",
    "version": "1.0.0",
    "description": "`X-Falco-App-Secret` + `X-Falco-Api-Key`. Politique d'erreurs \"safe by default\" (RFC 9457).\n"
  },
  "servers": [
    {
      "url": "https://api.falco-app.be/v1",
      "description": "Production"
    },
    {
      "url": "https://api.sandbox.falco-app.be/v1",
      "description": "Sandbox"
    }
  ],
  "security": [
    {
      "ApiKeyAuth": []
    }
  ],
  "components": {
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Falco-App-Secret",
        "description": "`X-Falco-App-Secret`: Falco Application Secret associated to your application. Use together with the `X-Falco-Api-Key` header."
      }
    },
    "schemas": {
      "Problem": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "format": "uri"
          },
          "title": {
            "type": "string"
          },
          "status": {
            "type": "integer"
          },
          "code": {
            "type": "string"
          },
          "detail": {
            "type": "string"
          },
          "instance": {
            "type": "string"
          },
          "trace_id": {
            "type": "string"
          }
        }
      },
      "Attachment": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "file_name": {
            "type": "string"
          },
          "size_bytes": {
            "type": "integer"
          },
          "display_type": {
            "type": "string",
            "enum": [
              "embed",
              "link"
            ]
          }
        }
      }
    }
  },
  "paths": {
    "/invoices/{id}/attachments": {
      "post": {
        "summary": "Add an attachment",
        "tags": [
          "Invoices"
        ],
        "description": "Required scopes: `invoices:attachments:write`\n",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Falco-Api-Key",
            "in": "header",
            "required": true,
            "description": "Falco Api Key (provided by the client - required in addition to X-Falco-App-Secret).",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary",
                    "description": "Specify Content-Type and use `filename` value in Content-Disposition to specify file name. Max length = 2MB."
                  },
                  "display_type": {
                    "type": "string",
                    "default": "link",
                    "enum": [
                      "link",
                      "embed"
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Added attachment",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Attachment"
                }
              }
            }
          },
          "default": {
            "description": "Error (RFC 9457)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    }
  }
}
```