Datarova
Datarova User API

Reusable labels for categorizing projects in your account. Creating a label does not assign it to a project. Deleting a label removes it from all projects that use it.


List project labels

GET
https://api.datarova.com
/v0/project-labels
Bearer (API key)

Returns your account's project labels, ordered by label_id ascending.

Pagination

  • limit defaults to 200 and accepts values from 1 to 200.
  • Pass data.page.next_cursor as the cursor query parameter to request the next page. Stop when data.page.has_more is false.
  • Renaming or pinning a label does not change its position in the results.

Rate limit: 60 requests per 60 seconds. Each successful request costs 5 credits.

Example request:

TerminalCode
curl --request GET \ --url 'https://api.datarova.com/v0/project-labels?limit=50' \ --header 'Authorization: Bearer <api_key>'

Example next-page request:

TerminalCode
curl --request GET \ --url 'https://api.datarova.com/v0/project-labels?limit=50&cursor=<next_cursor>' \ --header 'Authorization: Bearer <api_key>'

List project labels › query Parameters

limit
​integer · min: 1 · max: 200

Maximum number of labels returned per page. Defaults to 200; accepts 1 to 200.

Default: 200
cursor
​string

Opaque cursor returned by the previous page.

List project labels › Responses

Labels page.

​object · required

Create a project label

POST
https://api.datarova.com
/v0/project-labels
Bearer (API key)

Creates a reusable project label in your account. Creating a label does not assign it to any projects.

Name rules

  • The API trims leading and trailing whitespace. The result must contain 1 to 25 characters and must not contain NUL characters.
  • Capitalization and spaces within the name are preserved.
  • Names must be unique within your account's selected label catalog, ignoring capitalization and surrounding whitespace. A duplicate returns 409 label_already_exists.
  • Project labels and item labels can use the same name.

Optional fields

  • color: One of the supported label colors. Defaults to gray.
  • pin: Controls pinned placement in the app's label list. Defaults to false.

A successful request returns 201 with the created label and its stable label_id. No query parameters are accepted.

Rate limit: 10 requests per 60 seconds per account, shared by all label creation, update, and deletion requests across both catalogs and all API keys. Each successful request costs 5 credits.

Example request:

TerminalCode
curl --request POST \ --url 'https://api.datarova.com/v0/project-labels' \ --header 'Authorization: Bearer <api_key>' \ --header 'Content-Type: application/json' \ --data '{"label_name":"Priority"}'

Create a project label › Request Body

label_name
​string · minLength: 1 · maxLength: 25 · required

The API trims leading and trailing whitespace. The result must contain 1 to 25 characters and must not contain NUL characters. Capitalization and spaces within the name are preserved. Names are compared case-insensitively within your account's selected label catalog.

color
​string · enum

Label color shown in the app. Defaults to gray.

Enum values:
gray
green
yellow
orange
red
purple
lilac
Default: gray
pin
​boolean

Whether the label is pinned in the app's label list. Pinning does not change the API's label-ID ordering. Defaults to false.

Default: false

Create a project label › Responses

Created label.

​CatalogLabel · required

A reusable account label. Existing app-created labels may contain null fields or colors outside the values accepted for new writes. The default app color is returned as gray. Updating a label preserves fields you omit.


Update a project label

PATCH
https://api.datarova.com
/v0/project-labels/{label_id}
Bearer (API key)

Updates a project label's name, color, or pinned status. Only supplied fields are changed.

Request rules

  • Supply at least one of label_name, color, or pin. No query parameters are accepted.
  • Omitted fields keep their current values. The label's ID and existing project assignments are preserved.
  • You can change the color or pinned status without resubmitting or changing an existing name.

Name rules

  • The API trims leading and trailing whitespace. The result must contain 1 to 25 characters and must not contain NUL characters.
  • Capitalization and spaces within the name are preserved.
  • Names must be unique within your account's selected label catalog, ignoring capitalization and surrounding whitespace. A duplicate returns 409 label_already_exists.
  • Project labels and item labels can use the same name.

Results

A successful request returns 200 with the updated label. Invalid input or a duplicate name leaves the label unchanged. A label that is not found in your account's project label catalog returns 404 label_not_found.

Rate limit: 10 requests per 60 seconds per account, shared by all label creation, update, and deletion requests across both catalogs and all API keys. Each successful request costs 5 credits.

Example request:

TerminalCode
curl --request PATCH \ --url 'https://api.datarova.com/v0/project-labels/42' \ --header 'Authorization: Bearer <api_key>' \ --header 'Content-Type: application/json' \ --data '{"color":"green","pin":true}'

Update a project label › path Parameters

label_id
​integer · min: 1 · max: 2147483647 · required

ID of the project label to update. Obtain it from the list or create response.

Update a project label › Request Body

label_name
​string · minLength: 1 · maxLength: 25

The API trims leading and trailing whitespace. The result must contain 1 to 25 characters and must not contain NUL characters. Capitalization and spaces within the name are preserved. Names are compared case-insensitively within your account's selected label catalog.

color
​string · enum

Label color shown in the app. Omit to keep the current color.

Enum values:
gray
green
yellow
orange
red
purple
lilac
pin
​boolean

Whether the label is pinned in the app's label list. Pinning does not change the API's label-ID ordering. Omit to keep the current pinned status.

Update a project label › Responses

Updated label.

​CatalogLabel · required

A reusable account label. Existing app-created labels may contain null fields or colors outside the values accepted for new writes. The default app color is returned as gray. Updating a label preserves fields you omit.


Delete a project label

DELETE
https://api.datarova.com
/v0/project-labels/{label_id}
Bearer (API key)

Deletes a project label and removes it from all projects that use it across your account's marketplaces and project groups.

Request rules

Send the label ID in the URL. This endpoint does not accept query parameters or a request body.

Results and retries

  • Returns 200 with data.deleted: true when the label and its assignments are removed. Projects, ASINs, keywords, and their tracking data are retained.
  • Returns 200 with data.deleted: false when the label is not found in your account's project label catalog, including when it was already deleted.
  • Deleting the label and removing its assignments succeed together. A persistence failure does not leave a partial deletion.

Rate limit: 10 requests per 60 seconds per account, shared by all label creation, update, and deletion requests across both catalogs and all API keys. Each successful request costs 5 credits. This includes successful retries that return data.deleted: false.

Example request:

TerminalCode
curl --request DELETE \ --url 'https://api.datarova.com/v0/project-labels/42' \ --header 'Authorization: Bearer <api_key>'

Delete a project label › path Parameters

label_id
​integer · min: 1 · max: 2147483647 · required

ID of the project label to delete. Obtain it from the list or create response.

Delete a project label › Responses

Deletion outcome. Missing or inaccessible IDs succeed without changes.

​object · required