Documentation Index
Fetch the complete documentation index at: https://mintlify.com/sorgm/data-architecture-docs/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The Get Plants endpoint returns a list of all plants in the store that the authenticated user has permission to access. You can optionally limit the number of results returned.Endpoint
Authentication
This endpoint requires Bearer token authentication. Include your token in the Authorization header:Query Parameters
The maximum number of results to return. Use this parameter to implement pagination or limit the response size.Example values:
10- Return up to 10 plants50- Return up to 50 plants100- Return up to 100 plants
Request Example
Response
An array of plant objects that the user has access to.
Success Response (200)
Returns an array of plant objects.Error Response (400)
Returned when there’s an unexpected error processing the request.The error code indicating the type of error that occurred
A human-readable message describing the error and potential solutions
Usage Examples
Get All Plants
Retrieve all available plants without limiting the results:Get Limited Results
Retrieve only the first 5 plants:Implementing Pagination
While this endpoint doesn’t support offset-based pagination, you can use the limit parameter to control batch sizes:The plants returned are filtered based on the user’s access permissions. Different users may see different results when calling this endpoint.
Best Practices
- Use the limit parameter to avoid retrieving large datasets unnecessarily
- Cache responses when the data doesn’t change frequently
- Handle errors gracefully by checking the response status code
- Implement retry logic with exponential backoff for transient failures
Related Endpoints
- Create Plant - Add a new plant to the store
- Delete Plant - Remove a plant from the store