get dataset
Uses the selected organization and the authenticated user’s current permissions. Applies the same setup and archive rules as the dashboard.
/api/v1/organizations/{organizationId}/prompts/{promptId}/datasetAuthorization
ManagementOAuth managementUser-based Clerk OAuth. CLI is a public Authorization Code client using S256 PKCE and browser loopback redirect. Hosted MCP uses resource-bound OAuth. Verify issuer, token type, intended audience/resource, scopes, live membership and current role. Do not forward arbitrary OAuth tokens into Convex session JWT auth. OAuth URLs below are placeholders for deployment configuration.
In: header
Scope: management
Path Parameters
Permanent organizationId; selected organization must be authorized for the current user.
Permanent promptId; selected organization must be authorized for the current user.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/api/v1/organizations/string/prompts/string/dataset"{ "id": "string", "revision": 0, "count": 0, "capacity": 10, "rows": [ { "id": "string", "position": 0, "input": "string", "expectedOutput": "string", "inputFormat": "text", "referenceFormat": "text" } ]}delete label DELETE
Delete a custom label using If-Match revision; default labels cannot be deleted.
import dataset POST
Append by default; replace only when explicitly requested. Validate every row and deduplicate exact input/expectedOutput pairs against existing rows and within the request in first-occurrence order. Reject the entire request if any row is invalid or unique additions exceed capacity. Error details include row errors, currentCount, availableCapacity and requestedAddition. Free capacity 10, Pro 500. Existing rows are never truncated on downgrade.