Read Stores
Retrieve Stores with comprehensive filtering.
Supports:
- Search: Search store name, domain, or URL (ILIKE)
- Sorting: Sort by name or domain
- Pagination: skip and limit parameters
Examples: GET /stores?search_query=myshop GET /stores?sort_by=name&sort_order=asc GET /stores?search_query=shop&sort_by=name&sort_order=asc
HTTPBearerAuthorizationBearer <token>search_query?|nullsort_by?Sort By"created_at"sort_order?Sort Order"desc""asc""desc"skip?Skip0 <= value0limit?Limit1 <= value <= 1000100owned_only?Owned OnlyfalseSuccessful Response
application/json- response
data*array<>count*Countcurl -X GET 'https://app.copyhero.app/api/v1/stores/'{ "data": [ { "store_url": "string", "language": "string", "default_push_blueprint_id": 0, "generated_image_output_format": "png", "generated_image_webp_quality": 1, "id": 0, "name": "string", "owner_id": 0, "owner": { "email": "string", "is_active": true, "is_superuser": false, "full_name": "string", "sub": "string", "provider": "auth0", "last_synced_at": "2019-08-24T14:15:22Z", "quota": 1000, "onboarding_completed_at": "2019-08-24T14:15:22Z", "locale": "en", "id": 0 }, "currency": "string", "domain": "string", "country_code": "string", "image_preview_url": "string", "description": "string", "title": "string", "hbs_template": "string", "json_template": "string", "oauth_completed_at": "2019-08-24T14:15:22Z", "oauth_scopes": "string", "missing_scopes": [ "string" ], "features": { "property1": true, "property2": true } } ], "count": 0}Read Store GET
Get store by ID only if user is owner or employee.
Get Task Batches Paginated GET
Get paginated batch summaries with comprehensive filtering. Filters: - store_ids: Filter by one or more stores (OR within field). Repeated values: ?store_ids=12&store_ids=17 - blueprint_id: Filter by blueprint - batch_id: Filter by specific batch ID - owner_user_id: Runs of the organizations this user owns (superuser only; 403 otherwise) - created_after/before: Date range for batch creation - search_query: Search in blueprint/store names - state_filter: Filter by aggregate state (has_errors, all_complete, in_progress, cancelled) - sort_by: created_at, updated_at, task_count, batch_id - sort_order: asc or desc - skip: Pagination offset - limit: Pagination limit (1-100) Returns: TaskBatchesOut: Paginated batch summaries with total count