Skip to content

HTTP API ​

The HTTP API of a Rosepetal project holds the operations that have to run on the server: generate the training CSV of a dataset, export images as a ZIP, move, copy or delete images in bulk, rewrite tags, share the results of a model and manage user accounts.

It is not a complete data API: it has no route that lists datasets or reads an image, because the Rosepetal application reads and writes that data in the project's database directly. To read and edit data from outside the application, use the Platform MCP.

The base URLs of the two functions that serve it, and the list of all its routes, are on the overview of the Rosepetal API.

Requirements ​

  • The project id of the Rosepetal installation.
  • A user account of that project: every call carries the ID token of a signed-in user. See Authentication.

Pages ​

PageContents
Requests and responsesWhich function to use, authentication with a Firebase ID token, request bodies, the response envelope, status codes and the vocabulary shared by every route
DatasetsTraining CSV, ZIP export, moving and copying images, bulk updates, review actions, and deleting images, groups and datasets
TagsRewrite the tags of a dataset on all its images: rename or recolor a tag, merge tags, clear annotations and delete a tag
ImagesDelete an image with its files, and create the preview of images that have none
ModelsCreate a public link to the results of a model, read the results behind a link, and delete a model
UsersList, create, update and delete the user accounts of a project
Progress of long operationsHow long operations report their progress in a job document of the project database, its fields, the job types and how to cancel a ZIP export