---
updatedAt: 2026-11-02T21:36:17.000Z
agentTools:
  projectIndex: https://apidocs.ceretax.net/llms.txt
---

# List active attachments

This is for our ECM solution, which can be used as of 9/14/26

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "x-stoplight": {
    "id": "509900ee59f5b"
  },
  "info": {
    "title": "Certificate Exemption API",
    "description": "CereTax API Documentation for creating, updating, and retrieving Exemption Certificate Management (ECM) certificates.",
    "version": "1.0",
    "contact": {
      "name": "CereTax Engineering"
    }
  },
  "servers": [
    {
      "url": "https://ecm.cert.ceretax.net",
      "description": "CERT"
    },
    {
      "url": "https://ecm.prod.ceretax.net",
      "description": "Production"
    }
  ],
  "paths": {
    "/certificates/{id}/attachments": {
      "get": {
        "summary": "List active attachments",
        "operationId": "get-certificates-id-attachments",
        "tags": [
          "Attachments"
        ],
        "security": [
          {
            "api_key": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Certificate ID (positive integer)",
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Attachments, ordered by sort order",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/file"
                  }
                }
              }
            }
          },
          "403": {
            "description": "Missing or unknown API key (code 1001)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/errorResponse"
                },
                "examples": {
                  "Forbidden Example": {
                    "value": {
                      "errorMessages": [
                        {
                          "code": 1001,
                          "type": "Authentication",
                          "message": "Api Key Error"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Client-actionable error — validation failure, business-rule violation, or an\nunsupported HTTP method on this route.\n",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/errorResponse"
                },
                "examples": {
                  "Unprocessable Entity Example": {
                    "value": {
                      "errorMessages": [
                        {
                          "code": 2003,
                          "type": "Validation",
                          "message": "Invalid Input",
                          "errors": {
                            "stateId": "required and must be greater than 0"
                          }
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Internal server error (code 9000)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/errorResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "security": [
    {
      "api_key": []
    }
  ],
  "components": {
    "schemas": {
      "errorResponse": {
        "title": "errorResponse",
        "type": "object",
        "properties": {
          "errorMessages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/error"
            }
          }
        }
      },
      "error": {
        "title": "error",
        "type": "object",
        "description": "Shared CereTax error shape. `trace` is stripped before the response is returned.",
        "properties": {
          "code": {
            "type": "integer",
            "description": "CereTax error code. Notable values: `1001` API key, `1003` auth\nfailure, `2003` invalid input, `2021` not found, `4001` request\nformat, `9000` internal.\n",
            "example": 2003
          },
          "type": {
            "type": "string",
            "example": "Validation"
          },
          "message": {
            "type": "string",
            "example": "Invalid Input"
          },
          "summary": {
            "type": "string"
          },
          "help": {
            "type": "string"
          },
          "errors": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Per-field detail, keyed by the offending field name."
          }
        }
      },
      "file": {
        "title": "file",
        "type": "object",
        "properties": {
          "certificateFileId": {
            "type": "integer"
          },
          "fileId": {
            "type": "string",
            "maxLength": 50
          },
          "fileName": {
            "type": "string",
            "maxLength": 255
          },
          "filePath": {
            "type": "string",
            "maxLength": 512
          },
          "fileType": {
            "type": "string",
            "maxLength": 50
          },
          "sortOrder": {
            "type": "integer"
          },
          "archivedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "archivedBy": {
            "type": "integer",
            "nullable": true
          },
          "fileCategory": {
            "type": "integer",
            "nullable": true
          }
        }
      }
    },
    "securitySchemes": {
      "api_key": {
        "type": "apiKey",
        "name": "x-api-key",
        "in": "header",
        "description": "API Gateway API key. Resolved to the caller's `clientId`; a missing or unknown key returns `403`."
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true,
    "samples-enabled": true
  }
}
```