LabelFlow
  • πŸ‘‹Intro to LabelFlow
  • Labelling interface
    • 🀸Quick Start
    • 🎟️Label Types
      • Image Classification
      • Bounding Boxes
      • Polygons
      • Auto Polygons
    • ✏️Edit labels
    • πŸ—‚οΈDatasets
    • 🎨Classes
    • ⌨️Shortcuts
  • ⚑AI Assistants
    • πŸ‘©β€πŸ«Presentation
    • πŸ₯₯DETR - COCO
    • πŸ‘οΈViT - ImageNet
  • Workspaces
    • 🏒Introduction to Workspaces
    • πŸ™‹β€β™€οΈSign in
    • βž•Create a Workspace
    • πŸ“§Invite Members
    • πŸ’ΈWorkspace Settings & Billing
  • Import a dataset
    • πŸ–ΌοΈImport Images
      • Import Images from Files
      • Import Images from File URLs
    • πŸ–ŠοΈImport Annotations
    • πŸ“¦Migrate a Dataset
  • Export a dataset
    • πŸ₯₯COCO
    • πŸ‘οΈYOLO
    • 🧾CSV
  • API
    • πŸ“–Presentation
    • πŸ€“Getting Started
  • Support
    • πŸ’¬Discord Channel
    • ❓FAQ
Powered by GitBook
On this page
  • GraphQL Playground
  • Perform our first GraphQL Query
  • Access the interactive documentation

Was this helpful?

Edit on Git
Export as PDF
  1. API

Getting Started

PreviousPresentationNextDiscord Channel

Last updated 3 years ago

Was this helpful?

GraphQL Playground

LabelFlow GraphQL playground is the best way to get started with the API. Just connect to using any modern web browser, and get started. The interface should look like something like this.

As the images on LabelFlow are stored locally only, there is no authentication needed. All queries and mutations will be done on a database stored locally in your browser.

Perform our first GraphQL Query

Let’s write a graphQL query which asks for the ids, names, and dataset id of the first 10 images you have access to:

query images {
  images(first:10){
    id
    datasetId
    name
  }
}

You can now run the query by pressing the β–ΆοΈβ€œRun Query Button” in the top left of the screen. You should see the response appear on the right side of the screen.

Access the interactive documentation

Our Graph API is self-documented. You can access all the documentation in the GraphQL playground. There are several ways to benefit from the documentation:

  • Automatic autocompletion of your queries

  • Manual autocompletion of your queries, triggered by pressing CTRL-SPACE when writing a query in the query area

  • Schema documentation, using the β€œSchema” Button on the right side of the screen.

Here is a screenshot showcasing both Autocompletion (on the left side, in the query area), and the schema documentation (on the right side, in the sidebar). Our API is based on the principle of OpenCrud ().

πŸ€“
https://github.com/opencrud/opencrud
https://labelflow.ai/graphiql