Skip to main content

Thirdwatch API

Project description

The first version of the Thirdwatch API is an exciting step forward towards making it easier for developers to pass data to Thirdwatch. # Introduction Once you've [registered your website/app](https://thirdwatch.ai) it's easy to start sending data to Thirdwatch. All endpoints are only accessible via https and are located at `api.thirdwatch.ai`. For instance: you can send event at the moment by ```HTTP POST``` Request to the following URL with your API key in ```Header``` and ```JSON``` data in request body. ``` https://api.thirdwatch.ai/event/v1 ``` Every API request must contain ```API Key``` in header value ```X-THIRDWATCH-API-KEY``` Every event must contain your ```_userId``` (if this is not available, you can alternatively provide a ```_sessionId``` value also in ```_userId```). # Score API The Score API is use to get an up to date cutomer trust score after you have sent transaction event and order successful. This API will provide the riskiness score of the order with reasons. Some examples of when you may want to check the score are before: - Before Shippement of a package - Finalizing a money transfer - Giving access to a prearranged vacation rental - Sending voucher on mail ``` https://api.thirdwatch.ai/neo/v1/score?api_key=<your api key>&order_id=<Order id> ``` According to Score you can decide to take action Approve or Reject. Orders with score more than 70 will consider as Riskey orders. We'll provide some reasons also in rules section. ## Response score API ``` { "order_id": "OCT45671", "user_id": "ajay_245", "order_timestamp": "2017-05-09T09:40:45.717Z", "score": 82, "flag": "red", -"reasons": [ { "name": "_numOfFailedTransactions", "display_name": "Number of failed transactions", "flag": "green", "value": "0", "is_display": true }, { "name": "_accountAge", "display_name": "Account age", "flag": "red", "value": "0", "is_display": true }, { "name": "_numOfOrderSameIp", "display_name": "Number of orders from same IP", "flag": "red", "value": "11", "is_display": true } ] } ```

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

thirdwatch_api-0.0.3.tar.gz (52.3 kB view details)

Uploaded Source

File details

Details for the file thirdwatch_api-0.0.3.tar.gz.

File metadata

File hashes

Hashes for thirdwatch_api-0.0.3.tar.gz
Algorithm Hash digest
SHA256 13139f6770e513f0958d9c2ae3e2db3a6c83e236c1826921cd6d5efebe55e694
MD5 1f2733cdef818cde2ade7e6e2a837445
BLAKE2b-256 fc8234cb72b014701abe6bf8e79ea48db9ddeb77e2074c83848692c5deb2583b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page