---
updatedAt: 2026-09-10T06:16:17.000Z
agentTools:
  projectIndex: https://developer.vouchfor.com/llms.txt
---

# Search Contents

Search for contents in the Vouch library

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "Vouch",
    "description": "test",
    "termsOfService": "https://vouchfor.com/terms",
    "contact": {
      "name": "Vouch API Support",
      "email": "support@vouchfor.com"
    },
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://{environment}.vouchfor.com/v1",
      "variables": {
        "environment": {
          "default": "api",
          "enum": [
            "api",
            "api-staging"
          ]
        }
      }
    },
    {
      "url": "https://{environment}.vouchfor.com/v1/entities/{entityId}",
      "variables": {
        "environment": {
          "default": "api",
          "enum": [
            "api",
            "api-staging"
          ]
        },
        "entityId": {
          "default": "demo",
          "description": "Entity ID"
        }
      }
    }
  ],
  "components": {
    "parameters": {
      "Query": {
        "name": "query",
        "in": "query",
        "description": "Free text search query",
        "schema": {
          "type": "string"
        }
      },
      "Tags": {
        "name": "tags",
        "in": "query",
        "description": "Filter by tag name",
        "schema": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "Limit": {
        "name": "limit",
        "in": "query",
        "description": "Maximum number of items to return",
        "schema": {
          "type": "integer"
        }
      },
      "NextToken": {
        "name": "nextToken",
        "in": "query",
        "description": "Pagination token returned by a previous request",
        "schema": {
          "type": "string"
        }
      },
      "ApprovalStatus": {
        "name": "approvalStatus",
        "in": "query",
        "description": "Filter by approval status",
        "schema": {
          "type": "string",
          "example": "APPROVED"
        }
      },
      "ProjectId": {
        "name": "projectId",
        "in": "query",
        "description": "Filter by project id",
        "schema": {
          "type": "string"
        }
      }
    },
    "responses": {
      "Contents": {
        "description": "List of Contents",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "items": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Content"
                  }
                },
                "nextToken": {
                  "type": "string"
                },
                "total": {
                  "type": "integer"
                }
              }
            }
          }
        }
      },
      "UnauthorizedError": {
        "description": "Invalid API key",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "error": "Unauthorized."
            }
          }
        }
      },
      "InternalServerError": {
        "description": "Internal server error",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "error": "Internal Server Error."
            }
          }
        }
      }
    },
    "schemas": {
      "Content": {
        "allOf": [
          {
            "$ref": "#/components/schemas/File"
          }
        ]
      },
      "Error": {
        "type": "object",
        "properties": {
          "error": {
            "type": "string"
          }
        }
      },
      "File": {
        "allOf": [
          {
            "type": "object",
            "properties": {
              "externalid": {
                "type": "string",
                "minLength": 1,
                "maxLength": 50,
                "example": "my-application-id"
              },
              "createddate": {
                "type": "string",
                "format": "date-time",
                "readOnly": true,
                "example": "2021-01-01T12:00:00.000Z"
              },
              "updateddate": {
                "type": "string",
                "format": "date-time",
                "readOnly": true,
                "example": "2022-01-01T12:00:00.000Z"
              }
            }
          },
          {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "readOnly": true,
                "example": "ffffffffff"
              },
              "name": {
                "type": "string",
                "example": "My File"
              },
              "download": {
                "type": "string",
                "format": "uri",
                "readOnly": true,
                "description": "Direct download URL for the file",
                "example": "https://d2rxhdlm2q91uk.cloudfront.net/files/ffffffffff"
              },
              "thumbnail": {
                "type": "string",
                "format": "uri",
                "readOnly": true
              },
              "url": {
                "type": "string",
                "format": "uri",
                "readOnly": true,
                "description": "Public viewer URL for the file",
                "example": "https://app.vouchfor.com/f/ffffffffff"
              },
              "type": {
                "type": "string",
                "readOnly": true,
                "example": "IMAGE"
              },
              "admin": {
                "type": "string",
                "format": "uri",
                "readOnly": true
              },
              "approvalStatus": {
                "type": "string",
                "readOnly": true,
                "example": "APPROVED"
              },
              "status": {
                "type": "string",
                "readOnly": true,
                "example": "COMPLETE"
              },
              "source": {
                "type": "string",
                "readOnly": true,
                "description": "Source URL the file was imported from",
                "example": "https://vouchfor.com"
              },
              "tags": {
                "type": "array",
                "readOnly": true,
                "items": {
                  "type": "string"
                }
              }
            }
          }
        ]
      }
    },
    "securitySchemes": {
      "ApiKey": {
        "type": "apiKey",
        "name": "x-api-key",
        "in": "header"
      }
    }
  },
  "security": [
    {
      "ApiKey": []
    }
  ],
  "tags": [
    {
      "name": "Content"
    }
  ],
  "paths": {
    "/content/search": {
      "get": {
        "summary": "Search Contents",
        "description": "Search for contents in the Vouch library",
        "tags": [
          "Content"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/Query"
          },
          {
            "$ref": "#/components/parameters/Tags"
          },
          {
            "$ref": "#/components/parameters/ApprovalStatus"
          },
          {
            "$ref": "#/components/parameters/ProjectId"
          },
          {
            "$ref": "#/components/parameters/Limit"
          },
          {
            "$ref": "#/components/parameters/NextToken"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/Contents"
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          }
        }
      }
    }
  }
}
```