Atoka API User Reference

Feedback API

With this API you can notify us about wrong data. Mistakes can happen, and we want to allow users to give feedback about what's wrong, so that we can intervene (manually, for now) on the data.

https://api.atoka.io/v2/feedback

All requests must be properly authenticated.

response

With this API you can notify us about wrong data. Mistakes can happen, and we want to allow users to give feedback about what's wrong, so that we can intervene (manually, for now) on the data.

Parameters
  • token string required

    All requests must be properly authenticated; see the Authentication section for more info

curl -XPOST "https://api.atoka.io/v2/feedback"

General info

These are the parameters to submit a feedback. Not all of them are required, but the more you provide, the quicker we can start investigating and eventually fix the problem.

Parameters
  • item string required

    the atoka ID of the item (company, person, ...) the feedback is about

  • collection string required

    the collection of the item

    Choose only one among:

    • company
    • person
    • location
    • news
    • contract
    • job
  • field string required

    the field containing the error, as returned from the API

    Choose only one among:

    • arval.cluster
    • arval.cluster.code
    • arval.cluster.description
    • atokaIndicators.innovation
    • atokaIndicators.innovation.categoryScore
    • atokaIndicators.innovation.categoryScoreLabel
    • atokaIndicators.innovation.score
    • atokaIndicators.innovation.scoreLabel
    • atokaIndicators.innovation.updateTime
    • balanceSheets.items
    • balanceSheets.items.consolidated
    • balanceSheets.items.currency
    • balanceSheets.items.currency.code
    • balanceSheets.items.currency.symbol
    • balanceSheets.items.date
    • balanceSheets.items.sections
    • balanceSheets.items.sections.items
    • balanceSheets.items.sections.items.code
    • balanceSheets.items.sections.items.error
    • balanceSheets.items.sections.items.filter
    • balanceSheets.items.sections.items.label
    • balanceSheets.items.sections.items.units
    • balanceSheets.items.sections.items.value
    • balanceSheets.items.sections.label
    • base.active
    • base.address
    • base.address.distance
    • base.address.fullAddress
    • base.address.hamlet
    • base.address.lat
    • and other 583 options... (see the whole list in the JSON schema)
  • wrongValue string

    the value read from the API containing the mistake. In case of complex objects, please provide a string representation of them (the URL for websites or social accounts, the code and label for ATECO, the full address for offices, etc.)

  • correctValue string

    the correct value that should have been returned by the API

  • notes string

    some notes to show what the problem is, or to explain why it should be considered an issue

  • extraInfo string

    a json object to provide any extra information about the feedback; this might be required, prior to agreements between us, to allow automatic handling of the feedback request, and is client-dependant

curl -XPOST "https://api.atoka.io/v2/feedback" -d "item=123456789abcd" -d "collection=company" -d "field=base.legalName" -d "wrongValue=ACME S.R.L." -d "correctValue=ACME S.P.A."

Debug

Use these parameters when you need to undestand how your request was evaluated by the API.

Parameters
  • explain boolean,
    default is false

    When using this parameter in your request you'll get and additional property in the results explanation, that contains all the filters actually used during the query.

    Mostly useful for debugging purposes.

curl -XPOST "https://api.atoka.io/v2/feedback" -d "explain=true"

Response modifications

When explain is true, the response will be:

{
"explanation": {
"collection": "string",
"item": "string",
"field": "string",
"wrongValue": "string",
"correctValue": "string"
}
}
curl -G "https://api.atoka.io/v2/feedback" -d "explain=true"