-
Notifications
You must be signed in to change notification settings - Fork 20
/
signifydscoringservice.apib
61 lines (45 loc) · 1.74 KB
/
signifydscoringservice.apib
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
FORMAT: 1A
HOST: https://scoring.signifyd.com
# Signifyd Scoring Service
Scoring Service provides an API to apply machine learning models to a supplied
set of data. The service will return the score outcome of this application.
## Response Codes
| Code| Description |
| --- | --- |
|`200`| Success. Request completed. |
|`400`| Bad Request - The request could not be parsed. And should not be retried without modifications.|
|`402`| Unsuccessful - request is valid but did not complete successfully. |
|`404`| Not Found - resource doesn't exist. |
|`5xx`| Server error. |
## Models [/v1/model]
### List All Models [GET]
Returns a list of all the models that this service can apply.
+ Response 200 (application/json)
+ Attributes (array[ModelId])
## Model Scoring [/v1/score]
### Compute Score [POST]
Score the request against a list of specified models.
+ Request (application/json)
+ Attributes
+ investigationId (number) - Signifyd investigation ID.
+ modelIds (required, array[ModelId]) - List of models to score the data against.
+ features (required, array)
+ (object)
+ name `ExampleFeature` (required, string) - Name of the feature
+ type (enum)
+ boolean
+ categorical
+ double
+ one of
+ value (boolean)
+ value (number)
+ value (string)
+ Response 200 (application/json)
+ Attributes
+ results (required, array)
+ (object)
+ modelId (required, ModelId)
+ score: `530.9` (required, number)
## Data Structures
### ModelId (object)
+ modelId: m34 (required, string) - The id of the model