> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mindset.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Labels API

> Parameters full description

<Card title="Note" icon="link" iconType="solid" href="/deploy/api/labels/retrieve-labels" cta="Labels API playground">
  You can find below the full description of Parameters for each POST/PATCH/GET/DELETE methods and also what parameters you can expect from the API responses.

  <br />

  If you want to test the API, please see the Labels API playground.
</Card>

<AccordionGroup>
  <Accordion title="POST - Create a new label (which can be assigned to a context later)">
    ## Parameters:

    #### **name** *String*

    Displayed name of the label

    #### **externalId** *String*

    Unique Identifier of the label you can optionally provide

    #### **showInDiscovery** *Boolean*

    Is this label will be visible to the end users ?
  </Accordion>

  <Accordion title="PATCH - Updating a Label updatable values">
    ## Parameters:

    #### **name** *String*

    Displayed name of the label

    #### **showInDiscovery** *Boolean*

    Is this label will be visible to the end users ?
  </Accordion>

  <Accordion title="GET - Query the list of labels or get label individually">
    ## Parameters:

    #### **startAfter - Querying for “the next page”** *String*

    Use the `startAfter` parameter and provide the `createdAt` string of the last label in the current results set When there are no more results you will receive an empty array in the response and a 404 status code
  </Accordion>

  <Accordion title="DELETE - Delete a label by providing its uid" />

  <Accordion title="RESPONSE DATA">
    You will get the same response data when calling POST, PATCH or GET

    ***Note***: When retrieving a collection of lables, the response will be an array of objects.

    #### **uid** *String*

    Mindset internal label uid

    #### **externalId** *String*

    Unique Identifier of the label you can optionally provide

    #### **name** *String*

    Displayed name of the label

    #### **showInDiscovery** *Boolean*

    Will this label be visible to the end users ?

    #### **createdAt** *ISO timestamp*

    Label creation date
  </Accordion>
</AccordionGroup>
