API Endpoints
Explore the available WetroCloud API endpoints for creating, inserting, querying, and categorizing resources, with detailed response formats.
Endpoints
Endpoint | Method | Description |
---|---|---|
/create/ | POST | Used to create a new collection where your resources will be organized. |
/collection/ | GET | Returns a list of all existing collections. |
/insert/ | POST | Allows you to add resources, such as documents or files, into a specified collection. |
/query/ | POST | Enables you to search or retrieve information from your collections based on specific prompts. |
/delete/ | DELETE | Removes an entire collection and its associated resources. |
/category/ | POST | Categorizes your data according to specific rules or schema definitions. |
Response Formats by Endpoint
The WetroCloud API returns responses in a consistent JSON format. Each endpoint includes fields relevant to the specific operation.
Create Endpoint (/create/
)
Used to create a new collection. The response includes the unique ID of the collection and a success status.
Insert Endpoint (/insert/
)
Adds resources to a collection. The response confirms success and tracks token usage.
Query Endpoint (/query/
)
Fetches information from a collection based on a query. The response contains the result, token usage, and success status.
Delete Endpoint (/delete/
)
Removes a collection and returns the operation status with a message.
Categorize Endpoint (/category/
)
Categorizes data according to rules or schemas. The response provides the assigned label, token usage, and success status.