Project labels
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
Returns your account's project labels, ordered by label_id ascending.
Pagination
limitdefaults to200and accepts values from1to200.- Pass
data.page.next_cursoras thecursorquery parameter to request the next page. Stop whendata.page.has_moreisfalse. - 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:
Code
Example next-page request:
Code
query Parameters
limitMaximum number of labels returned per page. Defaults to 200; accepts 1 to 200.
cursorOpaque cursor returned by the previous page.
List project labels › Responses
Labels page.
Create a project label
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
1to25characters 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 togray.pin: Controls pinned placement in the app's label list. Defaults tofalse.
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:
Code
Create a project label › Request Body
label_nameThe 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.
colorLabel color shown in the app. Defaults to gray.
pinWhether the label is pinned in the app's label list. Pinning does not change the API's label-ID ordering. Defaults to false.
Create a project label › Responses
Created label.
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
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, orpin. 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
1to25characters 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:
Code
path Parameters
label_idID of the project label to update. Obtain it from the list or create response.
Update a project label › Request Body
label_nameThe 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.
colorLabel color shown in the app. Omit to keep the current color.
pinWhether 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.
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
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
200withdata.deleted: truewhen the label and its assignments are removed. Projects, ASINs, keywords, and their tracking data are retained. - Returns
200withdata.deleted: falsewhen 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:
Code
path Parameters
label_idID 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.