Datarova
Datarova User API

Read and manage the ASIN annotations in a marketplace project.


List project notes

GET
https://api.datarova.com
/v0/projects/{project_id}/notes
Bearer (API key)

Returns 200 with data.notes and data.page. Use it to browse the annotations shown in the app or find notes for an ASIN or date range. Notes remain available after their ASIN or keywords are detached, and historical titles and descriptions are returned in full.

Request rules

Use a marketplace project_id returned by GET /v0/projects. The project must belong to the account associated with your API key, including keys created by additional users. These operations require User API access, an active subscription and access to that marketplace. No extra notes permission or app display setting is required. Notes belong only to this marketplace project, not its project group.

Filter with asin, date_from and date_to. ASINs are trimmed and uppercased. Omitting asin includes every ASIN's notes, not just the primary ASIN. Date filters use inclusive overlap, so notes spanning either boundary are included. A one-sided date filter constrains only that side. Use valid calendar dates; there is no ranking-history lookback window.

Response and errors

A missing or inaccessible project returns 404 project_not_found; check the ID against your project list. For 400 invalid_date_range, set date_to on or after date_from. Correct invalid dates, ASINs, page sizes or unsupported parameters before retrying.

Pagination

Notes are ordered by ascending stable note ID; editing dates does not reorder them. The default and maximum limit is 200; smaller positive sizes are accepted. Continue while data.page.has_more is true. Pass the opaque data.page.next_cursor unchanged and URL-encoded as cursor, using the same project and filters. Do not construct a cursor. Empty and final pages have has_more: false and next_cursor: null.

For 400 invalid_cursor, check that you copied the returned cursor and kept the same project and filters. To change filters, start again without a cursor.

Rate limits and usage

The account burst limit is 60 requests per 60 seconds. Rate headers appear when burst enforcement runs; after 429, wait for Retry-After before retrying. Each successful request costs 5 credits, including empty lists, and is reported as project_notes in usage. Failed requests cost nothing. Quota headers and the insufficient_credits refusal follow the shared credit policy.

Example requests

Replace <api_key> and <next_cursor> in the examples. Project 123 and note 42 are illustrative; use IDs returned by your project and note requests.

TerminalCode
curl --request GET \ --url 'https://api.datarova.com/v0/projects/123/notes?asin=B012345678&date_from=2030-01-01&date_to=2030-01-31&limit=50' \ --header 'Authorization: Bearer <api_key>'

For the next page, retain the filters and URL-encode the cursor:

TerminalCode
curl --request GET --get \ --url 'https://api.datarova.com/v0/projects/123/notes' \ --header 'Authorization: Bearer <api_key>' \ --data-urlencode 'asin=B012345678' \ --data-urlencode 'date_from=2030-01-01' \ --data-urlencode 'date_to=2030-01-31' \ --data-urlencode 'limit=50' \ --data-urlencode 'cursor=<next_cursor>'

List project notes › path Parameters

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

Owned marketplace project ID from GET /v0/projects.

List project notes › query Parameters

asin
​string · pattern: ^[A-Za-z0-9]{10}$

Optional exact ASIN filter, trimmed and uppercased. Omission lists every project ASIN, including detached ASINs.

date_from
​string · date

Inclusive lower date bound. Matches notes ending on or after this date. Future dates are accepted.

date_to
​string · date

Inclusive upper date bound. Matches notes starting on or before this date. Must be on or after date_from when both are supplied.

limit
​integer · min: 1 · max: 200

Positive page size; default and maximum 200.

Default: 200
cursor
​string

Opaque next_cursor from the preceding response. Pass unchanged, URL-encoded, with the same project and filters.

List project notes › Responses

Notes page, including an empty successful result.

​object · required

Create a project note

POST
https://api.datarova.com
/v0/projects/{project_id}/notes
Bearer (API key)

Creates one note shared with the app and returns 201 Created with the complete saved record under data.note. Use it to annotate an event for one ASIN in one marketplace project.

Request rules

Use a marketplace project_id returned by GET /v0/projects. The project must belong to the account associated with your API key, including keys created by additional users. These operations require User API access, an active subscription and access to that marketplace. No extra notes permission or app display setting is required. Notes belong only to this marketplace project, not its project group.

Supply title and date_from. Omit asin to use the current primary ASIN. The response returns that ASIN, and later primary-ASIN changes do not move the note. An explicit asin is trimmed and uppercased and must exactly match a current project attachment. Use the identity returned by GET /v0/projects/{project_id}/asins; parent or sibling aliases do not select another ASIN. Empty or null ASINs are invalid, not requests for the default.

Supplied keywords must be current attachments in the same project. Values are trimmed, lowercased and deduplicated, and blank values are removed. Omit keywords or supply [] for an ASIN-level annotation without selected keywords. null is invalid. This operation does not create ASIN or keyword attachments.

A trimmed title must contain 1 to 200 Unicode code points. An optional description preserves plain text and line breaks up to 10,000 code points; omission, null or "" creates a note without a description. Oversized text is rejected without truncation. Omitted color defaults to green.

Use valid calendar dates, including future dates. date_to is inclusive and cannot precede date_from. Omit it or supply null or the same date as date_from for a single-day note, returned with date_to: null. Required fields cannot be null. Unknown fields and invalid types are rejected.

NUL characters, U+0000, are not accepted in title, description or keywords. Remove them before retrying. They return 400 invalid_title, 400 invalid_description or 400 invalid_keywords for the affected field without saving changes. Other JSON escapes, such as line breaks, quotes and backslashes, remain supported.

Response and errors

The saved note includes its stable note_id and resolved ASIN. Each accepted creation makes a separate note, even with identical content. Retrying after a lost response can create a duplicate; inspect the note list before deciding whether to retry.

For 400 primary_asin_not_found, select a primary ASIN in the project or supply an attached ASIN. For 400 asin_not_in_project or 400 keyword_not_in_project, use current attachments from that project. For 400 invalid_date_range, correct the date range. Validation failures create no note. A missing or inaccessible project returns 404 project_not_found; check the ID against your project list.

Rate limits and usage

The account burst limit is 60 requests per 60 seconds. Rate headers appear when burst enforcement runs; after 429, wait for Retry-After before retrying. Each successful request costs 5 credits and is reported as project_note_create in usage. Failed requests cost nothing. Quota headers and the insufficient_credits refusal follow the shared credit policy.

Example requests

Replace <api_key> before use. Project 123 and note 42 are illustrative IDs from your project and note responses. These examples modify real notes when executed.

TerminalCode
curl --request POST \ --url 'https://api.datarova.com/v0/projects/123/notes' \ --header 'Authorization: Bearer <api_key>' \ --header 'Content-Type: application/json' \ --data '{"title":"Launch","date_from":"2030-01-01"}'

To select a specific attached ASIN and keyword, use your existing attachment identities in place of these illustrative values:

TerminalCode
curl --request POST \ --url 'https://api.datarova.com/v0/projects/123/notes' \ --header 'Authorization: Bearer <api_key>' \ --header 'Content-Type: application/json' \ --data '{"title":"Launch","date_from":"2030-01-01","asin":"B012345678","description":"Campaign begins.\nReview results next week.","date_to":"2030-01-07","color":"yellow","keywords":["kitchen tools"]}'

Create a project note › path Parameters

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

Owned marketplace project ID from GET /v0/projects.

Create a project note › Request Body

title
​string · minLength: 1 · maxLength: 200 · required

Required for creation. Trimmed outer whitespace; 1 to 200 Unicode code points after trimming. Whitespace-only text and null are invalid. NUL characters, U+0000, are rejected with 400 invalid_title.

date_from
​string · date · required

Valid YYYY-MM-DD calendar start date, required on creation. Future dates are allowed. Cannot be cleared.

asin
​string

Exact attached ASIN, trimmed and uppercased. Only omission uses the current primary ASIN. No parent or sibling alias resolution. Empty, null, invalid or unattached values are rejected.

description
​string | null · maxLength: 10000

Plain text, preserving line breaks. At most 10000 Unicode code points. Empty string or null clears it; omission preserves it on PATCH and creates no description on POST. NUL characters, U+0000, are rejected with 400 invalid_description.

color
​string · enum

Omitted on creation defaults to green. Omitted on PATCH is unchanged; null is invalid.

Enum values:
green
yellow
orange
red
purple
lilac
date_to
​string | null · date

Inclusive end date, on or after the resulting start date. Omission on creation, null, or an equal end date means a single day and returns null. Omission on PATCH preserves the current end date.

keywords
​string[]

Current keyword attachments in this marketplace project. Outer whitespace is trimmed, case is lowered, duplicates and blank entries are removed. Omitted on creation or [] creates an ASIN-level annotation. On PATCH a list replaces the selection, [] clears it, omission preserves even detached historical keywords. null is invalid. NUL characters, U+0000, are rejected with 400 invalid_keywords.

Create a project note › Responses

Complete newly saved note.

​object · required

Retrieve a project note

GET
https://api.datarova.com
/v0/projects/{project_id}/notes/{note_id}
Bearer (API key)

Returns 200 with the complete note under data.note. Use it to inspect a known annotation or retrieve its current content before editing.

Request rules

Use a marketplace project_id returned by GET /v0/projects. The project must belong to the account associated with your API key, including keys created by additional users. These operations require User API access, an active subscription and access to that marketplace. No extra notes permission or app display setting is required. Notes belong only to this marketplace project, not its project group. Use a note_id returned by a note list or write response. Do not supply query parameters or a request body.

Response and errors

The response includes the note's ASIN, title, description, dates, color and stored keyword selection. Single-day notes have date_to: null. Historical text is returned in full, even when it exceeds the current write limits. Reading does not require the ASIN or keywords to remain attached.

A missing or inaccessible project returns 404 project_not_found; check your project list. An absent note or a note from another project or account returns 404 note_not_found; refresh the addressed project's note list and use an ID from that response. Correct malformed IDs or unsupported parameters before retrying.

Rate limits and usage

The account burst limit is 60 requests per 60 seconds. Rate headers appear when burst enforcement runs; after 429, wait for Retry-After before retrying. Each successful request costs 5 credits and is reported as project_note_detail in usage. Failed requests cost nothing. Quota headers and the insufficient_credits refusal follow the shared credit policy.

Example requests

Replace <api_key> in the example. Project 123 and note 42 are illustrative; use IDs returned by your project and note requests.

TerminalCode
curl --request GET \ --url 'https://api.datarova.com/v0/projects/123/notes/42' \ --header 'Authorization: Bearer <api_key>'

Retrieve a project note › path Parameters

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

Owned marketplace project ID from GET /v0/projects.

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

Stable note ID from a notes response. Scoped to the addressed marketplace project.

Retrieve a project note › Responses

Complete stored note.

​object · required

Edit a project note

PATCH
https://api.datarova.com
/v0/projects/{project_id}/notes/{note_id}
Bearer (API key)

Edits one note and returns 200 with the complete updated record under data.note. Use it to change selected annotation fields while keeping the rest.

Request rules

Use a marketplace project_id returned by GET /v0/projects. The project must belong to the account associated with your API key, including keys created by additional users. These operations require User API access, an active subscription and access to that marketplace. No extra notes permission or app display setting is required. Notes belong only to this marketplace project, not its project group. Use a note_id from a note response.

Supply at least one editable field. Omitted fields remain unchanged, including oversized historical text and stored keywords that have since been detached. The project's identity and the note's ASIN cannot be changed.

A supplied title must contain 1 to 200 Unicode code points after trimming. A supplied description preserves plain text and line breaks up to 10,000 code points; "" or null clears it. Supplied oversized text is rejected without truncation.

A supplied keywords list replaces the whole selection and must use current project attachments. Values are trimmed, lowercased and deduplicated, and blank values are removed. Supply [] to clear the selection; null is invalid. Omit the field to preserve detached keywords.

Use date_to: null to clear the end date. Changing either date validates the resulting range; the end cannot precede the start. Equal dates return date_to: null. Future dates are allowed, with no rolling date window. Neither title nor date_from can be cleared. Omitted color is unchanged. Unknown fields, empty patches and invalid types are rejected.

NUL characters, U+0000, are not accepted in title, description or keywords. Remove them before retrying. They return 400 invalid_title, 400 invalid_description or 400 invalid_keywords for the affected field without saving changes. Other JSON escapes, such as line breaks, quotes and backslashes, remain supported.

Response and errors

Retained notes remain editable after ASIN or keyword detachment. The last successful write wins for each supplied field; no version or ETag is required. Validation failures leave the note unchanged.

For 400 keyword_not_in_project, select current keywords or omit keywords to preserve the existing selection. For 400 invalid_date_range, correct the combined start and end dates. A missing or inaccessible project returns 404 project_not_found; check your project list. An absent note or one from another project or account returns 404 note_not_found; refresh this project's notes before choosing an ID.

Rate limits and usage

The account burst limit is 60 requests per 60 seconds. Rate headers appear when burst enforcement runs; after 429, wait for Retry-After before retrying. Each successful request costs 5 credits, including unchanged edits, and is reported as project_note_update in usage. Failed requests cost nothing. Quota headers and the insufficient_credits refusal follow the shared credit policy.

Example requests

Replace <api_key> before use. Project 123 and note 42 are illustrative IDs from your project and note responses. These examples modify real notes when executed.

TerminalCode
curl --request PATCH \ --url 'https://api.datarova.com/v0/projects/123/notes/42' \ --header 'Authorization: Bearer <api_key>' \ --header 'Content-Type: application/json' \ --data '{"title":"Launch revised","color":"purple"}'

Clear optional fields explicitly:

TerminalCode
curl --request PATCH \ --url 'https://api.datarova.com/v0/projects/123/notes/42' \ --header 'Authorization: Bearer <api_key>' \ --header 'Content-Type: application/json' \ --data '{"description":null,"date_to":null,"keywords":[]}'

Edit a project note › path Parameters

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

Owned marketplace project ID from GET /v0/projects.

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

Stable note ID from a notes response. Scoped to the addressed marketplace project.

Edit a project note › Request Body

title
​string · minLength: 1 · maxLength: 200

Required for creation. Trimmed outer whitespace; 1 to 200 Unicode code points after trimming. Whitespace-only text and null are invalid. NUL characters, U+0000, are rejected with 400 invalid_title.

description
​string | null · maxLength: 10000

Plain text, preserving line breaks. At most 10000 Unicode code points. Empty string or null clears it; omission preserves it on PATCH and creates no description on POST. NUL characters, U+0000, are rejected with 400 invalid_description.

color
​string · enum

Omitted on creation defaults to green. Omitted on PATCH is unchanged; null is invalid.

Enum values:
green
yellow
orange
red
purple
lilac
date_from
​string · date

Valid YYYY-MM-DD calendar start date, required on creation. Future dates are allowed. Cannot be cleared.

date_to
​string | null · date

Inclusive end date, on or after the resulting start date. Omission on creation, null, or an equal end date means a single day and returns null. Omission on PATCH preserves the current end date.

keywords
​string[]

Current keyword attachments in this marketplace project. Outer whitespace is trimmed, case is lowered, duplicates and blank entries are removed. Omitted on creation or [] creates an ASIN-level annotation. On PATCH a list replaces the selection, [] clears it, omission preserves even detached historical keywords. null is invalid. NUL characters, U+0000, are rejected with 400 invalid_keywords.

Edit a project note › Responses

Complete updated note, including unchanged successful edits.

​object · required

Delete a project note

DELETE
https://api.datarova.com
/v0/projects/{project_id}/notes/{note_id}
Bearer (API key)

Deletes one note and returns 200 with data.deleted. Use it to remove an annotation from both the app and the User API. Other notes and project attachments stay unchanged.

Request rules

Use a marketplace project_id returned by GET /v0/projects. The project must belong to the account associated with your API key, including keys created by additional users. These operations require User API access, an active subscription and access to that marketplace. No extra notes permission or app display setting is required. Notes belong only to this marketplace project, not its project group. Use a note_id from a note response. Notes remain deletable after their ASIN or keywords have been detached. Do not supply query parameters or a request body, including an empty JSON object.

Response and errors

The response contains data.deleted: true when the note was removed. An absent note, including one from another project or account, returns data.deleted: false. Retrying after a successful deletion is safe and returns false. After deletion, individual retrieval returns 404 note_not_found and listing omits the note.

A missing or inaccessible project returns 404 project_not_found; check the ID against your project list. Invalid IDs and unsupported inputs return 400; correct the IDs or remove the unsupported input before retrying.

Rate limits and usage

The account burst limit is 60 requests per 60 seconds. Rate headers appear when burst enforcement runs; after 429, wait for Retry-After before retrying. Each successful request costs 5 credits, including absent-note retries, and is reported as project_note_delete in usage. Failed requests cost nothing. Quota headers and the insufficient_credits refusal follow the shared credit policy.

Example requests

Replace <api_key> with an account API key. Project 123 and note 42 are illustrative; use an existing owned project and note. This request deletes that note:

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

The first deletion returns {"data":{"deleted":true}}. To retry after a lost response, send the same authenticated request:

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

If already removed, the retry returns {"data":{"deleted":false}}.

Delete a project note › path Parameters

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

Owned marketplace project ID from GET /v0/projects.

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

Stable note ID from a notes response. Scoped to the addressed marketplace project.

Delete a project note › Responses

Deletion outcome, including safe absent-note retries.

​object · required