Test your API key
POST
/v1/test/product
const url = 'https://api.amzconnect.io/v1/test/product';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.amzconnect.io/v1/test/product \ --header 'Authorization: Bearer <token>'Checks that your API key is accepted. Returns a success message and no product data, and does not count against your quota. The request body is not evaluated.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”The API key is valid.
Media typeapplication/json
Example
{ "code": "200", "message": "Success!"}The API key is missing, unknown or expired.
Media typeapplication/json
Examples
{ "code": "invalid_key", "message": "Invalid API Key provided."}{ "code": "expired_key", "message": "API Key has expired."}The test could not be completed on the server side. Your API key is not the cause; try again later.
Media typeapplication/json
Example
{ "code": "error_fetching_product", "message": "Error fetching product."}