@model-match/api 3.77.0 → 3.79.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/RELEASE_NOTES.md +20 -0
- package/dist/{index-DHHPxexm.d.mts → index-CXBAeaSu.d.mts} +865 -17
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +1 -1
- package/dist/slim/index.d.mts +45 -3
- package/dist/slim/index.mjs +123 -3
- package/dist/{src-D7eIbeGl.mjs → src-bW2n1ku2.mjs} +135 -1
- package/openapi.json +2600 -640
- package/package.json +1 -1
package/openapi.json
CHANGED
|
@@ -47222,12 +47222,13 @@
|
|
|
47222
47222
|
"type": "object"
|
|
47223
47223
|
},
|
|
47224
47224
|
"kind": {
|
|
47225
|
-
"description": "`market` — market data, the same for everyone. `job_result` — the latest result of one of your organization's saved jobs. `upload` — a file your organization uploaded. `crm` — your organization's own CRM records (the lists shared with the whole organization and the records in them), refreshed about every 15 minutes.",
|
|
47225
|
+
"description": "`market` — market data, the same for everyone. `job_result` — the latest result of one of your organization's saved jobs. `upload` — a file your organization uploaded. `crm` — your organization's own CRM records (the lists shared with the whole organization and the records in them), refreshed about every 15 minutes. `model` — the scores of one of your organization's prediction models.",
|
|
47226
47226
|
"enum": [
|
|
47227
47227
|
"market",
|
|
47228
47228
|
"job_result",
|
|
47229
47229
|
"upload",
|
|
47230
|
-
"crm"
|
|
47230
|
+
"crm",
|
|
47231
|
+
"model"
|
|
47231
47232
|
],
|
|
47232
47233
|
"type": "string"
|
|
47233
47234
|
},
|
|
@@ -48142,9 +48143,1000 @@
|
|
|
48142
48143
|
],
|
|
48143
48144
|
"type": "object"
|
|
48144
48145
|
},
|
|
48146
|
+
"StudioModel": {
|
|
48147
|
+
"properties": {
|
|
48148
|
+
"asOf": {
|
|
48149
|
+
"nullable": true,
|
|
48150
|
+
"type": "string"
|
|
48151
|
+
},
|
|
48152
|
+
"card": {
|
|
48153
|
+
"additionalProperties": {
|
|
48154
|
+
"nullable": true
|
|
48155
|
+
},
|
|
48156
|
+
"description": "The report card (`ready` and `refused`). Read it to the person as it is written; do not round it up. `headline` — one sentence. `learnedFrom` — how many past cases and over what dates, and the later cases it was tested on. `lift.top10` (and `lift.top1` on large tests) — `modelPer100`, `randomPer100`, `bestSimpleRulePer100` and a ready-made `sentence`. `checks` — three, each `passed` true or false: beats the best simple rule, finds nothing when the outcomes are shuffled, holds up across time periods. `dataPoints.ranking` — each data point with its share and a verdict (`strongest`, `helped`, `helped_a_little`, `added_little`), and `dataPoints.summary`. `comparison` — the person's picks against every available data point, which did better, and `worthAdding`. `changeFromPrevious` — what changed since the version it replaced or was based on. `calibration.calibrated` — only when true may `estimatedChance` be called a chance; otherwise scores are a ranking. `caveats` — say them. `refusal` — `reason` and `whatWouldHelp` when refused.",
|
|
48157
|
+
"nullable": true,
|
|
48158
|
+
"type": "object"
|
|
48159
|
+
},
|
|
48160
|
+
"createdAt": {
|
|
48161
|
+
"type": "string"
|
|
48162
|
+
},
|
|
48163
|
+
"createdBy": {
|
|
48164
|
+
"nullable": true,
|
|
48165
|
+
"type": "string"
|
|
48166
|
+
},
|
|
48167
|
+
"description": {
|
|
48168
|
+
"nullable": true,
|
|
48169
|
+
"type": "string"
|
|
48170
|
+
},
|
|
48171
|
+
"error": {
|
|
48172
|
+
"nullable": true,
|
|
48173
|
+
"properties": {
|
|
48174
|
+
"code": {
|
|
48175
|
+
"type": "string"
|
|
48176
|
+
},
|
|
48177
|
+
"message": {
|
|
48178
|
+
"type": "string"
|
|
48179
|
+
}
|
|
48180
|
+
},
|
|
48181
|
+
"required": [
|
|
48182
|
+
"code",
|
|
48183
|
+
"message"
|
|
48184
|
+
],
|
|
48185
|
+
"type": "object"
|
|
48186
|
+
},
|
|
48187
|
+
"features": {
|
|
48188
|
+
"items": {
|
|
48189
|
+
"$ref": "#/components/schemas/StudioModelDataPoint"
|
|
48190
|
+
},
|
|
48191
|
+
"type": "array"
|
|
48192
|
+
},
|
|
48193
|
+
"featuresChosen": {
|
|
48194
|
+
"description": "True when the data points were picked; false when the model uses every market data point.",
|
|
48195
|
+
"type": "boolean"
|
|
48196
|
+
},
|
|
48197
|
+
"horizonMonths": {
|
|
48198
|
+
"nullable": true,
|
|
48199
|
+
"type": "number"
|
|
48200
|
+
},
|
|
48201
|
+
"name": {
|
|
48202
|
+
"type": "string"
|
|
48203
|
+
},
|
|
48204
|
+
"nextRunAt": {
|
|
48205
|
+
"nullable": true,
|
|
48206
|
+
"type": "string"
|
|
48207
|
+
},
|
|
48208
|
+
"outcome": {
|
|
48209
|
+
"nullable": true,
|
|
48210
|
+
"type": "string"
|
|
48211
|
+
},
|
|
48212
|
+
"outcomeSource": {
|
|
48213
|
+
"additionalProperties": false,
|
|
48214
|
+
"nullable": true,
|
|
48215
|
+
"properties": {
|
|
48216
|
+
"dateColumn": {
|
|
48217
|
+
"description": "The date of each row: the day you would have wanted the prediction (for example the day the lead came in). It must be a date column. Only what was on record before it is used to learn.",
|
|
48218
|
+
"example": "lead_date",
|
|
48219
|
+
"maxLength": 100,
|
|
48220
|
+
"minLength": 1,
|
|
48221
|
+
"type": "string"
|
|
48222
|
+
},
|
|
48223
|
+
"key": {
|
|
48224
|
+
"$ref": "#/components/schemas/StudioModelKey"
|
|
48225
|
+
},
|
|
48226
|
+
"labelColumn": {
|
|
48227
|
+
"description": "The column that says what happened. Two values: won / lost, yes / no, true / false, 1 / 0.",
|
|
48228
|
+
"example": "result",
|
|
48229
|
+
"maxLength": 100,
|
|
48230
|
+
"minLength": 1,
|
|
48231
|
+
"type": "string"
|
|
48232
|
+
},
|
|
48233
|
+
"positiveValues": {
|
|
48234
|
+
"description": "Which values of `labelColumn` mean \"it happened\", when they are not plainly won / yes / true / 1.",
|
|
48235
|
+
"example": [
|
|
48236
|
+
"Closed - Funded"
|
|
48237
|
+
],
|
|
48238
|
+
"items": {
|
|
48239
|
+
"maxLength": 100,
|
|
48240
|
+
"minLength": 1,
|
|
48241
|
+
"type": "string"
|
|
48242
|
+
},
|
|
48243
|
+
"maxItems": 20,
|
|
48244
|
+
"minItems": 1,
|
|
48245
|
+
"type": "array"
|
|
48246
|
+
},
|
|
48247
|
+
"table": {
|
|
48248
|
+
"description": "Your uploaded table with one row per case you know the outcome of.",
|
|
48249
|
+
"example": "upload_my_deals",
|
|
48250
|
+
"maxLength": 100,
|
|
48251
|
+
"minLength": 1,
|
|
48252
|
+
"type": "string"
|
|
48253
|
+
}
|
|
48254
|
+
},
|
|
48255
|
+
"required": [
|
|
48256
|
+
"table",
|
|
48257
|
+
"labelColumn",
|
|
48258
|
+
"dateColumn",
|
|
48259
|
+
"key"
|
|
48260
|
+
],
|
|
48261
|
+
"type": "object"
|
|
48262
|
+
},
|
|
48263
|
+
"population": {
|
|
48264
|
+
"$ref": "#/components/schemas/StudioModelPopulation"
|
|
48265
|
+
},
|
|
48266
|
+
"progress": {
|
|
48267
|
+
"description": "What a training run is doing right now.",
|
|
48268
|
+
"nullable": true,
|
|
48269
|
+
"properties": {
|
|
48270
|
+
"stage": {
|
|
48271
|
+
"type": "string"
|
|
48272
|
+
},
|
|
48273
|
+
"startedAt": {
|
|
48274
|
+
"type": "string"
|
|
48275
|
+
}
|
|
48276
|
+
},
|
|
48277
|
+
"required": [
|
|
48278
|
+
"stage",
|
|
48279
|
+
"startedAt"
|
|
48280
|
+
],
|
|
48281
|
+
"type": "object"
|
|
48282
|
+
},
|
|
48283
|
+
"refresh": {
|
|
48284
|
+
"description": "A refresh in progress, or why the last one produced nothing (the earlier scores stay).",
|
|
48285
|
+
"nullable": true,
|
|
48286
|
+
"properties": {
|
|
48287
|
+
"error": {
|
|
48288
|
+
"properties": {
|
|
48289
|
+
"code": {
|
|
48290
|
+
"type": "string"
|
|
48291
|
+
},
|
|
48292
|
+
"message": {
|
|
48293
|
+
"type": "string"
|
|
48294
|
+
}
|
|
48295
|
+
},
|
|
48296
|
+
"required": [
|
|
48297
|
+
"code",
|
|
48298
|
+
"message"
|
|
48299
|
+
],
|
|
48300
|
+
"type": "object"
|
|
48301
|
+
},
|
|
48302
|
+
"startedAt": {
|
|
48303
|
+
"type": "string"
|
|
48304
|
+
},
|
|
48305
|
+
"status": {
|
|
48306
|
+
"enum": [
|
|
48307
|
+
"running",
|
|
48308
|
+
"failed"
|
|
48309
|
+
],
|
|
48310
|
+
"type": "string"
|
|
48311
|
+
}
|
|
48312
|
+
},
|
|
48313
|
+
"required": [
|
|
48314
|
+
"status"
|
|
48315
|
+
],
|
|
48316
|
+
"type": "object"
|
|
48317
|
+
},
|
|
48318
|
+
"schedule": {
|
|
48319
|
+
"description": "How often the scores are refreshed with the latest data: `manual` (only when you ask), `weekly` or `monthly`.",
|
|
48320
|
+
"enum": [
|
|
48321
|
+
"manual",
|
|
48322
|
+
"weekly",
|
|
48323
|
+
"monthly"
|
|
48324
|
+
],
|
|
48325
|
+
"type": "string"
|
|
48326
|
+
},
|
|
48327
|
+
"scope": {
|
|
48328
|
+
"properties": {
|
|
48329
|
+
"state": {
|
|
48330
|
+
"type": "string"
|
|
48331
|
+
}
|
|
48332
|
+
},
|
|
48333
|
+
"required": [
|
|
48334
|
+
"state"
|
|
48335
|
+
],
|
|
48336
|
+
"type": "object"
|
|
48337
|
+
},
|
|
48338
|
+
"scores": {
|
|
48339
|
+
"description": "Where the scores are. Null: this model has no scores table.",
|
|
48340
|
+
"nullable": true,
|
|
48341
|
+
"properties": {
|
|
48342
|
+
"asOf": {
|
|
48343
|
+
"description": "The date the scores are as of (YYYY-MM-DD).",
|
|
48344
|
+
"type": "string"
|
|
48345
|
+
},
|
|
48346
|
+
"refreshedAt": {
|
|
48347
|
+
"type": "string"
|
|
48348
|
+
},
|
|
48349
|
+
"rows": {
|
|
48350
|
+
"type": "number"
|
|
48351
|
+
},
|
|
48352
|
+
"table": {
|
|
48353
|
+
"description": "The table to query, for example with runStudioQuery.",
|
|
48354
|
+
"type": "string"
|
|
48355
|
+
}
|
|
48356
|
+
},
|
|
48357
|
+
"required": [
|
|
48358
|
+
"table",
|
|
48359
|
+
"rows",
|
|
48360
|
+
"asOf",
|
|
48361
|
+
"refreshedAt"
|
|
48362
|
+
],
|
|
48363
|
+
"type": "object"
|
|
48364
|
+
},
|
|
48365
|
+
"status": {
|
|
48366
|
+
"description": "`training` — still working; ask again in a minute. `ready` — it passed its checks and has scores. `refused` — it was trained, or checked, and is not dependable enough to publish: `card.refusal` says why and what would help; it has no scores. `failed` — something went wrong on our side (`error`); nothing was charged.",
|
|
48367
|
+
"enum": [
|
|
48368
|
+
"training",
|
|
48369
|
+
"ready",
|
|
48370
|
+
"refused",
|
|
48371
|
+
"failed"
|
|
48372
|
+
],
|
|
48373
|
+
"type": "string"
|
|
48374
|
+
},
|
|
48375
|
+
"table": {
|
|
48376
|
+
"description": "The table the scores are queried as. It exists only while `scores` is not null.",
|
|
48377
|
+
"type": "string"
|
|
48378
|
+
},
|
|
48379
|
+
"updatedAt": {
|
|
48380
|
+
"type": "string"
|
|
48381
|
+
},
|
|
48382
|
+
"version": {
|
|
48383
|
+
"type": "number"
|
|
48384
|
+
}
|
|
48385
|
+
},
|
|
48386
|
+
"required": [
|
|
48387
|
+
"name",
|
|
48388
|
+
"table",
|
|
48389
|
+
"description",
|
|
48390
|
+
"status",
|
|
48391
|
+
"version",
|
|
48392
|
+
"outcome",
|
|
48393
|
+
"horizonMonths",
|
|
48394
|
+
"population",
|
|
48395
|
+
"features",
|
|
48396
|
+
"featuresChosen",
|
|
48397
|
+
"scope",
|
|
48398
|
+
"asOf",
|
|
48399
|
+
"outcomeSource",
|
|
48400
|
+
"schedule",
|
|
48401
|
+
"nextRunAt",
|
|
48402
|
+
"createdBy",
|
|
48403
|
+
"createdAt",
|
|
48404
|
+
"updatedAt",
|
|
48405
|
+
"progress",
|
|
48406
|
+
"card",
|
|
48407
|
+
"scores",
|
|
48408
|
+
"refresh",
|
|
48409
|
+
"error"
|
|
48410
|
+
],
|
|
48411
|
+
"type": "object"
|
|
48412
|
+
},
|
|
48413
|
+
"StudioModelCreate": {
|
|
48414
|
+
"additionalProperties": false,
|
|
48415
|
+
"properties": {
|
|
48416
|
+
"asOf": {
|
|
48417
|
+
"description": "Score as of this date (YYYY-MM-DD), using only records before it. Leave it out to score as of today, each time the scores are refreshed.",
|
|
48418
|
+
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
|
|
48419
|
+
"type": "string"
|
|
48420
|
+
},
|
|
48421
|
+
"basedOn": {
|
|
48422
|
+
"description": "Start from another of your models: anything this request leaves out is taken from it, and the report card compares the two. The other model is left as it is.",
|
|
48423
|
+
"pattern": "^[a-z][a-z0-9_]{2,39}$",
|
|
48424
|
+
"type": "string"
|
|
48425
|
+
},
|
|
48426
|
+
"description": {
|
|
48427
|
+
"description": "What the model is for, in a sentence.",
|
|
48428
|
+
"maxLength": 500,
|
|
48429
|
+
"type": "string"
|
|
48430
|
+
},
|
|
48431
|
+
"features": {
|
|
48432
|
+
"description": "The data points the model may use: the ones the person believes matter. The model is trained on exactly these, and its report card says how much each one mattered and how the picks compare with using everything. Leave it out to use every market data point.",
|
|
48433
|
+
"items": {
|
|
48434
|
+
"$ref": "#/components/schemas/StudioModelDataPoint"
|
|
48435
|
+
},
|
|
48436
|
+
"maxItems": 60,
|
|
48437
|
+
"type": "array"
|
|
48438
|
+
},
|
|
48439
|
+
"horizonMonths": {
|
|
48440
|
+
"description": "How far ahead to predict a market outcome, in months. Default 12.",
|
|
48441
|
+
"maximum": 24,
|
|
48442
|
+
"minimum": 1,
|
|
48443
|
+
"type": "integer"
|
|
48444
|
+
},
|
|
48445
|
+
"name": {
|
|
48446
|
+
"description": "The model's name: 3 to 40 lower-case letters, digits and underscores, starting with a letter. Its scores are the table `model_<name>`.",
|
|
48447
|
+
"example": "refi_watch",
|
|
48448
|
+
"pattern": "^[a-z][a-z0-9_]{2,39}$",
|
|
48449
|
+
"type": "string"
|
|
48450
|
+
},
|
|
48451
|
+
"outcome": {
|
|
48452
|
+
"description": "What to predict: an outcome id from getStudioModelOptions. Leave it out when training on your own outcomes (`outcomeSource`).",
|
|
48453
|
+
"example": "new_mortgage",
|
|
48454
|
+
"maxLength": 100,
|
|
48455
|
+
"minLength": 1,
|
|
48456
|
+
"type": "string"
|
|
48457
|
+
},
|
|
48458
|
+
"outcomeSource": {
|
|
48459
|
+
"$ref": "#/components/schemas/StudioModelOutcomeSource"
|
|
48460
|
+
},
|
|
48461
|
+
"population": {
|
|
48462
|
+
"$ref": "#/components/schemas/StudioModelPopulation"
|
|
48463
|
+
},
|
|
48464
|
+
"replace": {
|
|
48465
|
+
"description": "Train a new version of the existing model of this name, for example with different data points. The new report card says what changed; the old scores are taken down while it trains.",
|
|
48466
|
+
"type": "boolean"
|
|
48467
|
+
},
|
|
48468
|
+
"schedule": {
|
|
48469
|
+
"description": "How often the scores are refreshed with the latest data: `manual` (only when you ask), `weekly` or `monthly`.",
|
|
48470
|
+
"enum": [
|
|
48471
|
+
"manual",
|
|
48472
|
+
"weekly",
|
|
48473
|
+
"monthly"
|
|
48474
|
+
],
|
|
48475
|
+
"type": "string"
|
|
48476
|
+
},
|
|
48477
|
+
"scope": {
|
|
48478
|
+
"additionalProperties": false,
|
|
48479
|
+
"description": "Required unless `basedOn` supplies it.",
|
|
48480
|
+
"properties": {
|
|
48481
|
+
"state": {
|
|
48482
|
+
"description": "Two-letter state. One state per model for now.",
|
|
48483
|
+
"example": "TX",
|
|
48484
|
+
"maxLength": 2,
|
|
48485
|
+
"minLength": 2,
|
|
48486
|
+
"type": "string"
|
|
48487
|
+
}
|
|
48488
|
+
},
|
|
48489
|
+
"required": [
|
|
48490
|
+
"state"
|
|
48491
|
+
],
|
|
48492
|
+
"type": "object"
|
|
48493
|
+
}
|
|
48494
|
+
},
|
|
48495
|
+
"required": [
|
|
48496
|
+
"name"
|
|
48497
|
+
],
|
|
48498
|
+
"type": "object"
|
|
48499
|
+
},
|
|
48500
|
+
"StudioModelCreated": {
|
|
48501
|
+
"properties": {
|
|
48502
|
+
"credits": {
|
|
48503
|
+
"$ref": "#/components/schemas/StudioModelCredits"
|
|
48504
|
+
},
|
|
48505
|
+
"data": {
|
|
48506
|
+
"$ref": "#/components/schemas/StudioModel"
|
|
48507
|
+
}
|
|
48508
|
+
},
|
|
48509
|
+
"required": [
|
|
48510
|
+
"data",
|
|
48511
|
+
"credits"
|
|
48512
|
+
],
|
|
48513
|
+
"type": "object"
|
|
48514
|
+
},
|
|
48515
|
+
"StudioModelCredits": {
|
|
48516
|
+
"properties": {
|
|
48517
|
+
"charged": {
|
|
48518
|
+
"description": "Credits this call charged: 50 when it is the first to read a model that passed, 10 when it is the first to read refreshed scores, otherwise 0. A finished model that nobody reads is charged to the organization on its own, usually within two hours; either way a run is charged once.",
|
|
48519
|
+
"type": "number"
|
|
48520
|
+
},
|
|
48521
|
+
"pending": {
|
|
48522
|
+
"description": "Where a run was just started: the credits that will be charged when it finishes with a model that passes its checks (or with refreshed scores). Nothing is charged for a model that is refused or fails.",
|
|
48523
|
+
"type": "number"
|
|
48524
|
+
},
|
|
48525
|
+
"remaining": {
|
|
48526
|
+
"description": "Your balance after the charge, when one was made.",
|
|
48527
|
+
"type": "number"
|
|
48528
|
+
}
|
|
48529
|
+
},
|
|
48530
|
+
"required": [
|
|
48531
|
+
"charged"
|
|
48532
|
+
],
|
|
48533
|
+
"type": "object"
|
|
48534
|
+
},
|
|
48535
|
+
"StudioModelDataPoint": {
|
|
48536
|
+
"additionalProperties": false,
|
|
48537
|
+
"properties": {
|
|
48538
|
+
"column": {
|
|
48539
|
+
"description": "For `upload`: the column. It must have been known on each row's date. The outcome column, anything computed from it, and anything recorded after the outcome are refused.",
|
|
48540
|
+
"example": "lead_source",
|
|
48541
|
+
"maxLength": 100,
|
|
48542
|
+
"minLength": 1,
|
|
48543
|
+
"type": "string"
|
|
48544
|
+
},
|
|
48545
|
+
"id": {
|
|
48546
|
+
"description": "For `market`: the data point's id.",
|
|
48547
|
+
"example": "rate_incentive",
|
|
48548
|
+
"maxLength": 100,
|
|
48549
|
+
"minLength": 1,
|
|
48550
|
+
"type": "string"
|
|
48551
|
+
},
|
|
48552
|
+
"knownAt": {
|
|
48553
|
+
"description": "For `upload`, optional: a date column of the same row saying when this value became known. A value known after the row's date is ignored for that row.",
|
|
48554
|
+
"maxLength": 100,
|
|
48555
|
+
"minLength": 1,
|
|
48556
|
+
"type": "string"
|
|
48557
|
+
},
|
|
48558
|
+
"source": {
|
|
48559
|
+
"description": "`market` — one of the data points getStudioModelOptions lists (give `id`). `upload` — a column of your own uploaded outcomes table (give `table` and `column`).",
|
|
48560
|
+
"enum": [
|
|
48561
|
+
"market",
|
|
48562
|
+
"upload"
|
|
48563
|
+
],
|
|
48564
|
+
"type": "string"
|
|
48565
|
+
},
|
|
48566
|
+
"table": {
|
|
48567
|
+
"description": "For `upload`: the uploaded table, which must be the one the outcomes come from.",
|
|
48568
|
+
"example": "upload_my_deals",
|
|
48569
|
+
"maxLength": 100,
|
|
48570
|
+
"minLength": 1,
|
|
48571
|
+
"type": "string"
|
|
48572
|
+
}
|
|
48573
|
+
},
|
|
48574
|
+
"required": [
|
|
48575
|
+
"source"
|
|
48576
|
+
],
|
|
48577
|
+
"type": "object"
|
|
48578
|
+
},
|
|
48579
|
+
"StudioModelDeleted": {
|
|
48580
|
+
"properties": {
|
|
48581
|
+
"data": {
|
|
48582
|
+
"properties": {
|
|
48583
|
+
"deleted": {
|
|
48584
|
+
"enum": [
|
|
48585
|
+
true
|
|
48586
|
+
],
|
|
48587
|
+
"type": "boolean"
|
|
48588
|
+
},
|
|
48589
|
+
"name": {
|
|
48590
|
+
"type": "string"
|
|
48591
|
+
}
|
|
48592
|
+
},
|
|
48593
|
+
"required": [
|
|
48594
|
+
"deleted",
|
|
48595
|
+
"name"
|
|
48596
|
+
],
|
|
48597
|
+
"type": "object"
|
|
48598
|
+
}
|
|
48599
|
+
},
|
|
48600
|
+
"required": [
|
|
48601
|
+
"data"
|
|
48602
|
+
],
|
|
48603
|
+
"type": "object"
|
|
48604
|
+
},
|
|
48605
|
+
"StudioModelError": {
|
|
48606
|
+
"properties": {
|
|
48607
|
+
"code": {
|
|
48608
|
+
"description": "Stable code. The request: `invalid_request`, `invalid_model`, `invalid_model_name`, `unknown_outcome`, `unknown_data_point`, `blocked_data_point` (a data point that describes today, not the as-of date), `unknown_table`, `unknown_column`, `unsupported_key`. The model: `model_not_found`, `model_exists`, `model_limit_reached`, `model_training_in_progress`, `model_not_ready`. Your own data: `no_date_column`, `data_point_is_outcome`, `data_point_is_key`, `data_point_after_outcome`, `data_point_needs_outcomes_table`, `data_points_missing_for_population`, `too_few_examples`, `too_few_positives`, `outcomes_all_one_class`, `outcome_dates_in_future`, `match_rate_too_low`. Shared: `busy`, `rate_limited`, `no_organization`, `models_unavailable`, `studio_unavailable`.",
|
|
48609
|
+
"example": "match_rate_too_low",
|
|
48610
|
+
"type": "string"
|
|
48611
|
+
},
|
|
48612
|
+
"details": {
|
|
48613
|
+
"description": "What the error is about, when known: the `table`, `column` or `dataPoint`, `suggestions`, and the numbers behind a refusal (`examples`, `positives`, `minimum`, `rows`, `matched`, `matchRate`, `limit`, `retryAfterSeconds`).",
|
|
48614
|
+
"properties": {
|
|
48615
|
+
"availableTables": {
|
|
48616
|
+
"items": {
|
|
48617
|
+
"type": "string"
|
|
48618
|
+
},
|
|
48619
|
+
"type": "array"
|
|
48620
|
+
},
|
|
48621
|
+
"column": {
|
|
48622
|
+
"type": "string"
|
|
48623
|
+
},
|
|
48624
|
+
"dataPoint": {
|
|
48625
|
+
"type": "string"
|
|
48626
|
+
},
|
|
48627
|
+
"examples": {
|
|
48628
|
+
"type": "number"
|
|
48629
|
+
},
|
|
48630
|
+
"function": {
|
|
48631
|
+
"type": "string"
|
|
48632
|
+
},
|
|
48633
|
+
"limit": {
|
|
48634
|
+
"type": "number"
|
|
48635
|
+
},
|
|
48636
|
+
"matchRate": {
|
|
48637
|
+
"type": "number"
|
|
48638
|
+
},
|
|
48639
|
+
"matched": {
|
|
48640
|
+
"type": "number"
|
|
48641
|
+
},
|
|
48642
|
+
"minimum": {
|
|
48643
|
+
"type": "number"
|
|
48644
|
+
},
|
|
48645
|
+
"positives": {
|
|
48646
|
+
"type": "number"
|
|
48647
|
+
},
|
|
48648
|
+
"retryAfterSeconds": {
|
|
48649
|
+
"type": "number"
|
|
48650
|
+
},
|
|
48651
|
+
"rows": {
|
|
48652
|
+
"type": "number"
|
|
48653
|
+
},
|
|
48654
|
+
"suggestions": {
|
|
48655
|
+
"items": {
|
|
48656
|
+
"type": "string"
|
|
48657
|
+
},
|
|
48658
|
+
"type": "array"
|
|
48659
|
+
},
|
|
48660
|
+
"table": {
|
|
48661
|
+
"type": "string"
|
|
48662
|
+
}
|
|
48663
|
+
},
|
|
48664
|
+
"type": "object"
|
|
48665
|
+
},
|
|
48666
|
+
"error": {
|
|
48667
|
+
"description": "What went wrong and what to do about it, in plain language.",
|
|
48668
|
+
"type": "string"
|
|
48669
|
+
}
|
|
48670
|
+
},
|
|
48671
|
+
"required": [
|
|
48672
|
+
"error",
|
|
48673
|
+
"code"
|
|
48674
|
+
],
|
|
48675
|
+
"type": "object"
|
|
48676
|
+
},
|
|
48677
|
+
"StudioModelKey": {
|
|
48678
|
+
"additionalProperties": false,
|
|
48679
|
+
"properties": {
|
|
48680
|
+
"columns": {
|
|
48681
|
+
"example": [
|
|
48682
|
+
"address_key",
|
|
48683
|
+
"zip"
|
|
48684
|
+
],
|
|
48685
|
+
"items": {
|
|
48686
|
+
"maxLength": 100,
|
|
48687
|
+
"minLength": 1,
|
|
48688
|
+
"type": "string"
|
|
48689
|
+
},
|
|
48690
|
+
"maxItems": 2,
|
|
48691
|
+
"minItems": 1,
|
|
48692
|
+
"type": "array"
|
|
48693
|
+
},
|
|
48694
|
+
"kind": {
|
|
48695
|
+
"description": "How rows are matched to homes: `property_address` (two columns: `address_key`, the cleaned address the upload added, then the ZIP code column), `property_id` or `loan_id` (one column holding that market id).",
|
|
48696
|
+
"example": "property_address",
|
|
48697
|
+
"maxLength": 40,
|
|
48698
|
+
"minLength": 1,
|
|
48699
|
+
"type": "string"
|
|
48700
|
+
}
|
|
48701
|
+
},
|
|
48702
|
+
"required": [
|
|
48703
|
+
"kind",
|
|
48704
|
+
"columns"
|
|
48705
|
+
],
|
|
48706
|
+
"type": "object"
|
|
48707
|
+
},
|
|
48708
|
+
"StudioModelList": {
|
|
48709
|
+
"properties": {
|
|
48710
|
+
"credits": {
|
|
48711
|
+
"$ref": "#/components/schemas/StudioModelCredits"
|
|
48712
|
+
},
|
|
48713
|
+
"data": {
|
|
48714
|
+
"items": {
|
|
48715
|
+
"$ref": "#/components/schemas/StudioModel"
|
|
48716
|
+
},
|
|
48717
|
+
"type": "array"
|
|
48718
|
+
}
|
|
48719
|
+
},
|
|
48720
|
+
"required": [
|
|
48721
|
+
"data",
|
|
48722
|
+
"credits"
|
|
48723
|
+
],
|
|
48724
|
+
"type": "object"
|
|
48725
|
+
},
|
|
48726
|
+
"StudioModelOptions": {
|
|
48727
|
+
"properties": {
|
|
48728
|
+
"earliestAsOf": {
|
|
48729
|
+
"type": "string"
|
|
48730
|
+
},
|
|
48731
|
+
"limits": {
|
|
48732
|
+
"properties": {
|
|
48733
|
+
"maxHorizonMonths": {
|
|
48734
|
+
"type": "number"
|
|
48735
|
+
},
|
|
48736
|
+
"maxModelsPerOrganization": {
|
|
48737
|
+
"type": "number"
|
|
48738
|
+
},
|
|
48739
|
+
"maxUploadedDataPoints": {
|
|
48740
|
+
"type": "number"
|
|
48741
|
+
},
|
|
48742
|
+
"minHorizonMonths": {
|
|
48743
|
+
"type": "number"
|
|
48744
|
+
},
|
|
48745
|
+
"scoresTableMaxRows": {
|
|
48746
|
+
"type": "number"
|
|
48747
|
+
},
|
|
48748
|
+
"uploadedOutcomes": {
|
|
48749
|
+
"properties": {
|
|
48750
|
+
"minExamples": {
|
|
48751
|
+
"type": "number"
|
|
48752
|
+
},
|
|
48753
|
+
"minMatchRate": {
|
|
48754
|
+
"type": "number"
|
|
48755
|
+
},
|
|
48756
|
+
"minNegatives": {
|
|
48757
|
+
"type": "number"
|
|
48758
|
+
},
|
|
48759
|
+
"minPositives": {
|
|
48760
|
+
"type": "number"
|
|
48761
|
+
}
|
|
48762
|
+
},
|
|
48763
|
+
"required": [
|
|
48764
|
+
"minExamples",
|
|
48765
|
+
"minPositives",
|
|
48766
|
+
"minNegatives",
|
|
48767
|
+
"minMatchRate"
|
|
48768
|
+
],
|
|
48769
|
+
"type": "object"
|
|
48770
|
+
}
|
|
48771
|
+
},
|
|
48772
|
+
"required": [
|
|
48773
|
+
"maxModelsPerOrganization",
|
|
48774
|
+
"minHorizonMonths",
|
|
48775
|
+
"maxHorizonMonths",
|
|
48776
|
+
"maxUploadedDataPoints",
|
|
48777
|
+
"uploadedOutcomes",
|
|
48778
|
+
"scoresTableMaxRows"
|
|
48779
|
+
],
|
|
48780
|
+
"type": "object"
|
|
48781
|
+
},
|
|
48782
|
+
"outcomes": {
|
|
48783
|
+
"items": {
|
|
48784
|
+
"properties": {
|
|
48785
|
+
"defaultHorizonMonths": {
|
|
48786
|
+
"type": "number"
|
|
48787
|
+
},
|
|
48788
|
+
"description": {
|
|
48789
|
+
"type": "string"
|
|
48790
|
+
},
|
|
48791
|
+
"id": {
|
|
48792
|
+
"type": "string"
|
|
48793
|
+
},
|
|
48794
|
+
"label": {
|
|
48795
|
+
"type": "string"
|
|
48796
|
+
},
|
|
48797
|
+
"question": {
|
|
48798
|
+
"type": "string"
|
|
48799
|
+
}
|
|
48800
|
+
},
|
|
48801
|
+
"required": [
|
|
48802
|
+
"id",
|
|
48803
|
+
"label",
|
|
48804
|
+
"question",
|
|
48805
|
+
"description",
|
|
48806
|
+
"defaultHorizonMonths"
|
|
48807
|
+
],
|
|
48808
|
+
"type": "object"
|
|
48809
|
+
},
|
|
48810
|
+
"type": "array"
|
|
48811
|
+
},
|
|
48812
|
+
"populations": {
|
|
48813
|
+
"items": {
|
|
48814
|
+
"properties": {
|
|
48815
|
+
"description": {
|
|
48816
|
+
"type": "string"
|
|
48817
|
+
},
|
|
48818
|
+
"kind": {
|
|
48819
|
+
"type": "string"
|
|
48820
|
+
},
|
|
48821
|
+
"label": {
|
|
48822
|
+
"type": "string"
|
|
48823
|
+
},
|
|
48824
|
+
"requires": {
|
|
48825
|
+
"items": {
|
|
48826
|
+
"type": "string"
|
|
48827
|
+
},
|
|
48828
|
+
"type": "array"
|
|
48829
|
+
}
|
|
48830
|
+
},
|
|
48831
|
+
"required": [
|
|
48832
|
+
"kind",
|
|
48833
|
+
"label",
|
|
48834
|
+
"description",
|
|
48835
|
+
"requires"
|
|
48836
|
+
],
|
|
48837
|
+
"type": "object"
|
|
48838
|
+
},
|
|
48839
|
+
"type": "array"
|
|
48840
|
+
},
|
|
48841
|
+
"themes": {
|
|
48842
|
+
"description": "The data points a model can use, grouped by theme. Offer the themes and ask which data points the person believes matter.",
|
|
48843
|
+
"items": {
|
|
48844
|
+
"properties": {
|
|
48845
|
+
"dataPoints": {
|
|
48846
|
+
"items": {
|
|
48847
|
+
"properties": {
|
|
48848
|
+
"description": {
|
|
48849
|
+
"type": "string"
|
|
48850
|
+
},
|
|
48851
|
+
"id": {
|
|
48852
|
+
"type": "string"
|
|
48853
|
+
},
|
|
48854
|
+
"kind": {
|
|
48855
|
+
"enum": [
|
|
48856
|
+
"number",
|
|
48857
|
+
"category"
|
|
48858
|
+
],
|
|
48859
|
+
"type": "string"
|
|
48860
|
+
},
|
|
48861
|
+
"label": {
|
|
48862
|
+
"type": "string"
|
|
48863
|
+
},
|
|
48864
|
+
"needsFairLendingReview": {
|
|
48865
|
+
"description": "True for data points about the neighbourhood: a model that uses them needs a fair-lending review before it decides who gets an offer.",
|
|
48866
|
+
"type": "boolean"
|
|
48867
|
+
},
|
|
48868
|
+
"whyItMightMatter": {
|
|
48869
|
+
"description": "One line on why someone might believe this matters.",
|
|
48870
|
+
"type": "string"
|
|
48871
|
+
}
|
|
48872
|
+
},
|
|
48873
|
+
"required": [
|
|
48874
|
+
"id",
|
|
48875
|
+
"label",
|
|
48876
|
+
"description",
|
|
48877
|
+
"whyItMightMatter",
|
|
48878
|
+
"kind",
|
|
48879
|
+
"needsFairLendingReview"
|
|
48880
|
+
],
|
|
48881
|
+
"type": "object"
|
|
48882
|
+
},
|
|
48883
|
+
"type": "array"
|
|
48884
|
+
},
|
|
48885
|
+
"description": {
|
|
48886
|
+
"type": "string"
|
|
48887
|
+
},
|
|
48888
|
+
"label": {
|
|
48889
|
+
"type": "string"
|
|
48890
|
+
},
|
|
48891
|
+
"theme": {
|
|
48892
|
+
"type": "string"
|
|
48893
|
+
}
|
|
48894
|
+
},
|
|
48895
|
+
"required": [
|
|
48896
|
+
"theme",
|
|
48897
|
+
"label",
|
|
48898
|
+
"description",
|
|
48899
|
+
"dataPoints"
|
|
48900
|
+
],
|
|
48901
|
+
"type": "object"
|
|
48902
|
+
},
|
|
48903
|
+
"type": "array"
|
|
48904
|
+
},
|
|
48905
|
+
"uploadedOutcomes": {
|
|
48906
|
+
"properties": {
|
|
48907
|
+
"keyKinds": {
|
|
48908
|
+
"items": {
|
|
48909
|
+
"properties": {
|
|
48910
|
+
"columns": {
|
|
48911
|
+
"type": "string"
|
|
48912
|
+
},
|
|
48913
|
+
"kind": {
|
|
48914
|
+
"type": "string"
|
|
48915
|
+
},
|
|
48916
|
+
"label": {
|
|
48917
|
+
"type": "string"
|
|
48918
|
+
},
|
|
48919
|
+
"note": {
|
|
48920
|
+
"type": "string"
|
|
48921
|
+
}
|
|
48922
|
+
},
|
|
48923
|
+
"required": [
|
|
48924
|
+
"kind",
|
|
48925
|
+
"label",
|
|
48926
|
+
"columns",
|
|
48927
|
+
"note"
|
|
48928
|
+
],
|
|
48929
|
+
"type": "object"
|
|
48930
|
+
},
|
|
48931
|
+
"type": "array"
|
|
48932
|
+
},
|
|
48933
|
+
"minimums": {
|
|
48934
|
+
"type": "string"
|
|
48935
|
+
},
|
|
48936
|
+
"mustContain": {
|
|
48937
|
+
"items": {
|
|
48938
|
+
"type": "string"
|
|
48939
|
+
},
|
|
48940
|
+
"type": "array"
|
|
48941
|
+
},
|
|
48942
|
+
"summary": {
|
|
48943
|
+
"type": "string"
|
|
48944
|
+
},
|
|
48945
|
+
"yourOwnDataPoints": {
|
|
48946
|
+
"type": "string"
|
|
48947
|
+
}
|
|
48948
|
+
},
|
|
48949
|
+
"required": [
|
|
48950
|
+
"summary",
|
|
48951
|
+
"mustContain",
|
|
48952
|
+
"minimums",
|
|
48953
|
+
"yourOwnDataPoints",
|
|
48954
|
+
"keyKinds"
|
|
48955
|
+
],
|
|
48956
|
+
"type": "object"
|
|
48957
|
+
}
|
|
48958
|
+
},
|
|
48959
|
+
"required": [
|
|
48960
|
+
"outcomes",
|
|
48961
|
+
"populations",
|
|
48962
|
+
"themes",
|
|
48963
|
+
"uploadedOutcomes",
|
|
48964
|
+
"limits",
|
|
48965
|
+
"earliestAsOf"
|
|
48966
|
+
],
|
|
48967
|
+
"type": "object"
|
|
48968
|
+
},
|
|
48969
|
+
"StudioModelOptionsResult": {
|
|
48970
|
+
"properties": {
|
|
48971
|
+
"data": {
|
|
48972
|
+
"$ref": "#/components/schemas/StudioModelOptions"
|
|
48973
|
+
},
|
|
48974
|
+
"pricing": {
|
|
48975
|
+
"properties": {
|
|
48976
|
+
"note": {
|
|
48977
|
+
"type": "string"
|
|
48978
|
+
},
|
|
48979
|
+
"refreshCredits": {
|
|
48980
|
+
"type": "number"
|
|
48981
|
+
},
|
|
48982
|
+
"trainingCredits": {
|
|
48983
|
+
"type": "number"
|
|
48984
|
+
}
|
|
48985
|
+
},
|
|
48986
|
+
"required": [
|
|
48987
|
+
"trainingCredits",
|
|
48988
|
+
"refreshCredits",
|
|
48989
|
+
"note"
|
|
48990
|
+
],
|
|
48991
|
+
"type": "object"
|
|
48992
|
+
}
|
|
48993
|
+
},
|
|
48994
|
+
"required": [
|
|
48995
|
+
"data",
|
|
48996
|
+
"pricing"
|
|
48997
|
+
],
|
|
48998
|
+
"type": "object"
|
|
48999
|
+
},
|
|
49000
|
+
"StudioModelOutcomeSource": {
|
|
49001
|
+
"additionalProperties": false,
|
|
49002
|
+
"properties": {
|
|
49003
|
+
"dateColumn": {
|
|
49004
|
+
"description": "The date of each row: the day you would have wanted the prediction (for example the day the lead came in). It must be a date column. Only what was on record before it is used to learn.",
|
|
49005
|
+
"example": "lead_date",
|
|
49006
|
+
"maxLength": 100,
|
|
49007
|
+
"minLength": 1,
|
|
49008
|
+
"type": "string"
|
|
49009
|
+
},
|
|
49010
|
+
"key": {
|
|
49011
|
+
"$ref": "#/components/schemas/StudioModelKey"
|
|
49012
|
+
},
|
|
49013
|
+
"labelColumn": {
|
|
49014
|
+
"description": "The column that says what happened. Two values: won / lost, yes / no, true / false, 1 / 0.",
|
|
49015
|
+
"example": "result",
|
|
49016
|
+
"maxLength": 100,
|
|
49017
|
+
"minLength": 1,
|
|
49018
|
+
"type": "string"
|
|
49019
|
+
},
|
|
49020
|
+
"positiveValues": {
|
|
49021
|
+
"description": "Which values of `labelColumn` mean \"it happened\", when they are not plainly won / yes / true / 1.",
|
|
49022
|
+
"example": [
|
|
49023
|
+
"Closed - Funded"
|
|
49024
|
+
],
|
|
49025
|
+
"items": {
|
|
49026
|
+
"maxLength": 100,
|
|
49027
|
+
"minLength": 1,
|
|
49028
|
+
"type": "string"
|
|
49029
|
+
},
|
|
49030
|
+
"maxItems": 20,
|
|
49031
|
+
"minItems": 1,
|
|
49032
|
+
"type": "array"
|
|
49033
|
+
},
|
|
49034
|
+
"table": {
|
|
49035
|
+
"description": "Your uploaded table with one row per case you know the outcome of.",
|
|
49036
|
+
"example": "upload_my_deals",
|
|
49037
|
+
"maxLength": 100,
|
|
49038
|
+
"minLength": 1,
|
|
49039
|
+
"type": "string"
|
|
49040
|
+
}
|
|
49041
|
+
},
|
|
49042
|
+
"required": [
|
|
49043
|
+
"table",
|
|
49044
|
+
"labelColumn",
|
|
49045
|
+
"dateColumn",
|
|
49046
|
+
"key"
|
|
49047
|
+
],
|
|
49048
|
+
"type": "object"
|
|
49049
|
+
},
|
|
49050
|
+
"StudioModelPaymentRequired": {
|
|
49051
|
+
"properties": {
|
|
49052
|
+
"balance": {
|
|
49053
|
+
"type": "number"
|
|
49054
|
+
},
|
|
49055
|
+
"cost": {
|
|
49056
|
+
"type": "number"
|
|
49057
|
+
},
|
|
49058
|
+
"error": {
|
|
49059
|
+
"enum": [
|
|
49060
|
+
"payment_required"
|
|
49061
|
+
],
|
|
49062
|
+
"type": "string"
|
|
49063
|
+
},
|
|
49064
|
+
"message": {
|
|
49065
|
+
"type": "string"
|
|
49066
|
+
},
|
|
49067
|
+
"reason": {
|
|
49068
|
+
"type": "string"
|
|
49069
|
+
}
|
|
49070
|
+
},
|
|
49071
|
+
"required": [
|
|
49072
|
+
"error",
|
|
49073
|
+
"balance",
|
|
49074
|
+
"cost"
|
|
49075
|
+
],
|
|
49076
|
+
"type": "object"
|
|
49077
|
+
},
|
|
49078
|
+
"StudioModelPopulation": {
|
|
49079
|
+
"additionalProperties": false,
|
|
49080
|
+
"properties": {
|
|
49081
|
+
"companyNmlsId": {
|
|
49082
|
+
"pattern": "^\\d{1,12}$",
|
|
49083
|
+
"type": "string"
|
|
49084
|
+
},
|
|
49085
|
+
"key": {
|
|
49086
|
+
"$ref": "#/components/schemas/StudioModelKey"
|
|
49087
|
+
},
|
|
49088
|
+
"kind": {
|
|
49089
|
+
"description": "Who gets scored. `homes` — every home in the state with a recent mortgage. `company_book` — the homes one mortgage company has financed (give `companyNmlsId`). `uploaded_list` — the homes in one of your uploaded tables (give `table` and `key`).",
|
|
49090
|
+
"enum": [
|
|
49091
|
+
"homes",
|
|
49092
|
+
"company_book",
|
|
49093
|
+
"uploaded_list"
|
|
49094
|
+
],
|
|
49095
|
+
"type": "string"
|
|
49096
|
+
},
|
|
49097
|
+
"table": {
|
|
49098
|
+
"maxLength": 100,
|
|
49099
|
+
"minLength": 1,
|
|
49100
|
+
"type": "string"
|
|
49101
|
+
}
|
|
49102
|
+
},
|
|
49103
|
+
"required": [
|
|
49104
|
+
"kind"
|
|
49105
|
+
],
|
|
49106
|
+
"type": "object"
|
|
49107
|
+
},
|
|
49108
|
+
"StudioModelRefresh": {
|
|
49109
|
+
"additionalProperties": false,
|
|
49110
|
+
"properties": {
|
|
49111
|
+
"retrain": {
|
|
49112
|
+
"description": "Also train the model again on the latest data before scoring (a fresh report card). Default false: only the scores are refreshed.",
|
|
49113
|
+
"type": "boolean"
|
|
49114
|
+
}
|
|
49115
|
+
},
|
|
49116
|
+
"type": "object"
|
|
49117
|
+
},
|
|
49118
|
+
"StudioModelResult": {
|
|
49119
|
+
"properties": {
|
|
49120
|
+
"credits": {
|
|
49121
|
+
"$ref": "#/components/schemas/StudioModelCredits"
|
|
49122
|
+
},
|
|
49123
|
+
"data": {
|
|
49124
|
+
"$ref": "#/components/schemas/StudioModel"
|
|
49125
|
+
}
|
|
49126
|
+
},
|
|
49127
|
+
"required": [
|
|
49128
|
+
"data",
|
|
49129
|
+
"credits"
|
|
49130
|
+
],
|
|
49131
|
+
"type": "object"
|
|
49132
|
+
},
|
|
48145
49133
|
"StudioQueryRequest": {
|
|
48146
49134
|
"additionalProperties": false,
|
|
48147
49135
|
"properties": {
|
|
49136
|
+
"background": {
|
|
49137
|
+
"description": "`true`: do not wait for the answer. The question starts in the background and this call answers `202` with a `queryId` at once. For a question known to be heavy (a whole state with a window function, several joins). Without it a question is answered here when it is quick, and carries on in the background by itself when it is not.",
|
|
49138
|
+
"type": "boolean"
|
|
49139
|
+
},
|
|
48148
49140
|
"limit": {
|
|
48149
49141
|
"description": "Rows to return (1–1000, default 200). `rowCount` is always the full count.",
|
|
48150
49142
|
"maximum": 1000,
|
|
@@ -48235,6 +49227,158 @@
|
|
|
48235
49227
|
],
|
|
48236
49228
|
"type": "object"
|
|
48237
49229
|
},
|
|
49230
|
+
"StudioQueryResultState": {
|
|
49231
|
+
"properties": {
|
|
49232
|
+
"code": {
|
|
49233
|
+
"description": "On `failed`: the stable code (`timeout`, `query_failed`, …).",
|
|
49234
|
+
"type": "string"
|
|
49235
|
+
},
|
|
49236
|
+
"columns": {
|
|
49237
|
+
"items": {
|
|
49238
|
+
"properties": {
|
|
49239
|
+
"name": {
|
|
49240
|
+
"type": "string"
|
|
49241
|
+
},
|
|
49242
|
+
"type": {
|
|
49243
|
+
"type": "string"
|
|
49244
|
+
}
|
|
49245
|
+
},
|
|
49246
|
+
"required": [
|
|
49247
|
+
"name",
|
|
49248
|
+
"type"
|
|
49249
|
+
],
|
|
49250
|
+
"type": "object"
|
|
49251
|
+
},
|
|
49252
|
+
"type": "array"
|
|
49253
|
+
},
|
|
49254
|
+
"credits": {
|
|
49255
|
+
"description": "What this question costs.",
|
|
49256
|
+
"properties": {
|
|
49257
|
+
"charged": {
|
|
49258
|
+
"description": "Always `0` here: a question in the background is not charged by this request.",
|
|
49259
|
+
"example": 0,
|
|
49260
|
+
"type": "number"
|
|
49261
|
+
},
|
|
49262
|
+
"pending": {
|
|
49263
|
+
"description": "Credits your organization is charged, once, for this question if it succeeds (while `running`) or because it succeeded (on `succeeded`) — whether or not its result is fetched. Absent when nothing will be charged: a question asked from the web app, or an account that is not metered.",
|
|
49264
|
+
"example": 5,
|
|
49265
|
+
"type": "number"
|
|
49266
|
+
}
|
|
49267
|
+
},
|
|
49268
|
+
"required": [
|
|
49269
|
+
"charged"
|
|
49270
|
+
],
|
|
49271
|
+
"type": "object"
|
|
49272
|
+
},
|
|
49273
|
+
"details": {
|
|
49274
|
+
"additionalProperties": {
|
|
49275
|
+
"nullable": true
|
|
49276
|
+
},
|
|
49277
|
+
"type": "object"
|
|
49278
|
+
},
|
|
49279
|
+
"elapsedMs": {
|
|
49280
|
+
"type": "number"
|
|
49281
|
+
},
|
|
49282
|
+
"error": {
|
|
49283
|
+
"description": "On `failed`: what went wrong, written for the caller.",
|
|
49284
|
+
"type": "string"
|
|
49285
|
+
},
|
|
49286
|
+
"expiresAt": {
|
|
49287
|
+
"description": "When the answer stops being kept (an hour after it finished).",
|
|
49288
|
+
"type": "string"
|
|
49289
|
+
},
|
|
49290
|
+
"pollAfterSeconds": {
|
|
49291
|
+
"description": "Seconds to wait before fetching the result (again).",
|
|
49292
|
+
"example": 5,
|
|
49293
|
+
"type": "number"
|
|
49294
|
+
},
|
|
49295
|
+
"queryId": {
|
|
49296
|
+
"description": "Identifies the question. Fetch its result with `getStudioQueryResult`.",
|
|
49297
|
+
"example": "q_3f9a1c0b7d2e4a6f8b1c0d2e",
|
|
49298
|
+
"type": "string"
|
|
49299
|
+
},
|
|
49300
|
+
"rowCount": {
|
|
49301
|
+
"description": "Rows the question produced in total.",
|
|
49302
|
+
"type": "number"
|
|
49303
|
+
},
|
|
49304
|
+
"rows": {
|
|
49305
|
+
"description": "One object per row, keyed by column name.",
|
|
49306
|
+
"items": {
|
|
49307
|
+
"additionalProperties": {
|
|
49308
|
+
"nullable": true
|
|
49309
|
+
},
|
|
49310
|
+
"type": "object"
|
|
49311
|
+
},
|
|
49312
|
+
"type": "array"
|
|
49313
|
+
},
|
|
49314
|
+
"status": {
|
|
49315
|
+
"description": "`running` — still going: wait `pollAfterSeconds` and fetch again. `succeeded` — the answer is here (`columns`, `rows`, `rowCount`, `truncated`, `elapsedMs`), kept until `expiresAt`. `failed` — it did not produce an answer: `error` and `code` say why, as the question itself would have. `expired` — it finished, and its answer is no longer kept: ask the question again.",
|
|
49316
|
+
"enum": [
|
|
49317
|
+
"running",
|
|
49318
|
+
"succeeded",
|
|
49319
|
+
"failed",
|
|
49320
|
+
"expired"
|
|
49321
|
+
],
|
|
49322
|
+
"type": "string"
|
|
49323
|
+
},
|
|
49324
|
+
"truncated": {
|
|
49325
|
+
"description": "True when `rows` holds fewer than `rowCount`.",
|
|
49326
|
+
"type": "boolean"
|
|
49327
|
+
}
|
|
49328
|
+
},
|
|
49329
|
+
"required": [
|
|
49330
|
+
"status",
|
|
49331
|
+
"queryId"
|
|
49332
|
+
],
|
|
49333
|
+
"type": "object"
|
|
49334
|
+
},
|
|
49335
|
+
"StudioQueryRunning": {
|
|
49336
|
+
"properties": {
|
|
49337
|
+
"credits": {
|
|
49338
|
+
"description": "What this question costs.",
|
|
49339
|
+
"properties": {
|
|
49340
|
+
"charged": {
|
|
49341
|
+
"description": "Always `0` here: a question in the background is not charged by this request.",
|
|
49342
|
+
"example": 0,
|
|
49343
|
+
"type": "number"
|
|
49344
|
+
},
|
|
49345
|
+
"pending": {
|
|
49346
|
+
"description": "Credits your organization is charged, once, for this question if it succeeds (while `running`) or because it succeeded (on `succeeded`) — whether or not its result is fetched. Absent when nothing will be charged: a question asked from the web app, or an account that is not metered.",
|
|
49347
|
+
"example": 5,
|
|
49348
|
+
"type": "number"
|
|
49349
|
+
}
|
|
49350
|
+
},
|
|
49351
|
+
"required": [
|
|
49352
|
+
"charged"
|
|
49353
|
+
],
|
|
49354
|
+
"type": "object"
|
|
49355
|
+
},
|
|
49356
|
+
"pollAfterSeconds": {
|
|
49357
|
+
"description": "Seconds to wait before fetching the result (again).",
|
|
49358
|
+
"example": 5,
|
|
49359
|
+
"type": "number"
|
|
49360
|
+
},
|
|
49361
|
+
"queryId": {
|
|
49362
|
+
"description": "Identifies the question. Fetch its result with `getStudioQueryResult`.",
|
|
49363
|
+
"example": "q_3f9a1c0b7d2e4a6f8b1c0d2e",
|
|
49364
|
+
"type": "string"
|
|
49365
|
+
},
|
|
49366
|
+
"status": {
|
|
49367
|
+
"description": "The question is still running in the background. It has NOT failed: fetch its result with `queryId`. Do not ask it again — that starts a second run.",
|
|
49368
|
+
"enum": [
|
|
49369
|
+
"running"
|
|
49370
|
+
],
|
|
49371
|
+
"type": "string"
|
|
49372
|
+
}
|
|
49373
|
+
},
|
|
49374
|
+
"required": [
|
|
49375
|
+
"status",
|
|
49376
|
+
"queryId",
|
|
49377
|
+
"pollAfterSeconds",
|
|
49378
|
+
"credits"
|
|
49379
|
+
],
|
|
49380
|
+
"type": "object"
|
|
49381
|
+
},
|
|
48238
49382
|
"StudioUpload": {
|
|
48239
49383
|
"properties": {
|
|
48240
49384
|
"bytes": {
|
|
@@ -49342,7 +50486,7 @@
|
|
|
49342
50486
|
"info": {
|
|
49343
50487
|
"description": "ModelMatch API — mortgage and real-estate market data.\n\n## Bulk delivery limits\n\nThe `POST /{entity}/bulk-delivery` endpoints export a full result set to\nS3 as NDJSON, JSON, CSV, or Parquet.\n\n- **Up to 5,000 rows per delivery: no entitlement required.** Available to\n every authenticated caller.\n- **Above 5,000 rows: requires the entity's `bulk-delivery.{entity}`\n entitlement** (e.g. `bulk-delivery.loans`). The grant's scope sets your\n row ceiling and may also restrict which rows and fields you receive.\n\nA delivery that would exceed the limit available to you is rejected with\n`403 entitlement_missing`, reporting the matched row count and the ceiling\nthat applied. To stay under the limit, pass `limit` — the job then delivers\n(and bills for) only the first `limit` rows of a broader query.\n\n**Need a higher limit?** Email support@modelmatch.com to request the\nentitlement. Limits are raised per organization and per entity.\n\nBulk delivery is billed at 1 credit per delivered row whether or not\nan entitlement is held.\n\nInstead of a download, a delivery can be sent to a push target configured\non your workspace: pass `destination: { type: \"push-target\", targetId }`.\nThe same limits and billing apply.",
|
|
49344
50488
|
"title": "ModelMatch API",
|
|
49345
|
-
"version": "3.
|
|
50489
|
+
"version": "3.161.0"
|
|
49346
50490
|
},
|
|
49347
50491
|
"openapi": "3.1.0",
|
|
49348
50492
|
"paths": {
|
|
@@ -86128,31 +87272,294 @@
|
|
|
86128
87272
|
"content": {
|
|
86129
87273
|
"application/json": {
|
|
86130
87274
|
"schema": {
|
|
86131
|
-
"$ref": "#/components/schemas/ErrorResponse"
|
|
86132
|
-
}
|
|
86133
|
-
}
|
|
86134
|
-
},
|
|
86135
|
-
"description": "The request body is too large."
|
|
86136
|
-
},
|
|
86137
|
-
"415": {
|
|
86138
|
-
"content": {
|
|
86139
|
-
"application/json": {
|
|
86140
|
-
"schema": {
|
|
86141
|
-
"$ref": "#/components/schemas/ErrorResponse"
|
|
86142
|
-
}
|
|
86143
|
-
}
|
|
86144
|
-
},
|
|
86145
|
-
"description": "The body must be sent as `application/json`."
|
|
86146
|
-
},
|
|
86147
|
-
"429": {
|
|
86148
|
-
"content": {
|
|
86149
|
-
"application/json": {
|
|
86150
|
-
"schema": {
|
|
86151
|
-
"$ref": "#/components/schemas/ErrorResponse"
|
|
87275
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
87276
|
+
}
|
|
87277
|
+
}
|
|
87278
|
+
},
|
|
87279
|
+
"description": "The request body is too large."
|
|
87280
|
+
},
|
|
87281
|
+
"415": {
|
|
87282
|
+
"content": {
|
|
87283
|
+
"application/json": {
|
|
87284
|
+
"schema": {
|
|
87285
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
87286
|
+
}
|
|
87287
|
+
}
|
|
87288
|
+
},
|
|
87289
|
+
"description": "The body must be sent as `application/json`."
|
|
87290
|
+
},
|
|
87291
|
+
"429": {
|
|
87292
|
+
"content": {
|
|
87293
|
+
"application/json": {
|
|
87294
|
+
"schema": {
|
|
87295
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
87296
|
+
}
|
|
87297
|
+
}
|
|
87298
|
+
},
|
|
87299
|
+
"description": "Too many flags in the last 24 hours. Try again later."
|
|
87300
|
+
},
|
|
87301
|
+
"503": {
|
|
87302
|
+
"content": {
|
|
87303
|
+
"application/json": {
|
|
87304
|
+
"schema": {
|
|
87305
|
+
"$ref": "#/components/schemas/SearchUnavailable"
|
|
87306
|
+
}
|
|
87307
|
+
}
|
|
87308
|
+
},
|
|
87309
|
+
"description": "Search timed out or the cluster is overloaded — retry after `Retry-After` seconds."
|
|
87310
|
+
}
|
|
87311
|
+
},
|
|
87312
|
+
"summary": "Flag a transaction on a property's history",
|
|
87313
|
+
"tags": [
|
|
87314
|
+
"Properties"
|
|
87315
|
+
]
|
|
87316
|
+
}
|
|
87317
|
+
},
|
|
87318
|
+
"/v1/realtime/config": {
|
|
87319
|
+
"get": {
|
|
87320
|
+
"description": "Returns the realtime/notifications connection info (endpoint, authorizer, app, stage) merged with the caller's userId, so a trusted client can connect to its per-user IoT MQTT topic.",
|
|
87321
|
+
"operationId": "getRealtimeConfig",
|
|
87322
|
+
"responses": {
|
|
87323
|
+
"200": {
|
|
87324
|
+
"content": {
|
|
87325
|
+
"application/json": {
|
|
87326
|
+
"schema": {
|
|
87327
|
+
"$ref": "#/components/schemas/RealtimeConfigResponse"
|
|
87328
|
+
}
|
|
87329
|
+
}
|
|
87330
|
+
},
|
|
87331
|
+
"description": "Realtime connection config"
|
|
87332
|
+
},
|
|
87333
|
+
"400": {
|
|
87334
|
+
"content": {
|
|
87335
|
+
"application/json": {
|
|
87336
|
+
"schema": {
|
|
87337
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
87338
|
+
}
|
|
87339
|
+
}
|
|
87340
|
+
},
|
|
87341
|
+
"description": "Validation error"
|
|
87342
|
+
},
|
|
87343
|
+
"401": {
|
|
87344
|
+
"content": {
|
|
87345
|
+
"application/json": {
|
|
87346
|
+
"schema": {
|
|
87347
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
87348
|
+
}
|
|
87349
|
+
}
|
|
87350
|
+
},
|
|
87351
|
+
"description": "Unauthorized"
|
|
87352
|
+
},
|
|
87353
|
+
"403": {
|
|
87354
|
+
"content": {
|
|
87355
|
+
"application/json": {
|
|
87356
|
+
"schema": {
|
|
87357
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
87358
|
+
}
|
|
87359
|
+
}
|
|
87360
|
+
},
|
|
87361
|
+
"description": "Forbidden (authenticated, but missing required context — e.g. no active organization)"
|
|
87362
|
+
},
|
|
87363
|
+
"404": {
|
|
87364
|
+
"content": {
|
|
87365
|
+
"application/json": {
|
|
87366
|
+
"schema": {
|
|
87367
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
87368
|
+
}
|
|
87369
|
+
}
|
|
87370
|
+
},
|
|
87371
|
+
"description": "Not found"
|
|
87372
|
+
},
|
|
87373
|
+
"413": {
|
|
87374
|
+
"content": {
|
|
87375
|
+
"application/json": {
|
|
87376
|
+
"schema": {
|
|
87377
|
+
"$ref": "#/components/schemas/PayloadTooLarge"
|
|
87378
|
+
}
|
|
87379
|
+
}
|
|
87380
|
+
},
|
|
87381
|
+
"description": "Response payload too large — detail endpoint capped to fit Lambda response limits"
|
|
87382
|
+
},
|
|
87383
|
+
"503": {
|
|
87384
|
+
"content": {
|
|
87385
|
+
"application/json": {
|
|
87386
|
+
"schema": {
|
|
87387
|
+
"$ref": "#/components/schemas/RealtimeConfigUnavailable"
|
|
87388
|
+
}
|
|
87389
|
+
}
|
|
87390
|
+
},
|
|
87391
|
+
"description": "Realtime backend not configured"
|
|
87392
|
+
}
|
|
87393
|
+
},
|
|
87394
|
+
"summary": "Get realtime connection config",
|
|
87395
|
+
"tags": [
|
|
87396
|
+
"Realtime"
|
|
87397
|
+
]
|
|
87398
|
+
}
|
|
87399
|
+
},
|
|
87400
|
+
"/v1/sales": {
|
|
87401
|
+
"post": {
|
|
87402
|
+
"description": "Search and list individual real-estate sale transactions and active listings with filters — one row per sale/listing. Filter by location (state, county, city, zip), sale price, sale or listing date, property characteristics (beds, baths, square footage, property type), and listing status, with sorting and cursor pagination. This is the discrete per-transaction sales-record search: use it to find specific sales or build a filtered list of sold/active listings. If you only need how many sales match and not the records themselves, send the same request body to `countSales`.",
|
|
87403
|
+
"operationId": "listSales",
|
|
87404
|
+
"requestBody": {
|
|
87405
|
+
"content": {
|
|
87406
|
+
"application/json": {
|
|
87407
|
+
"schema": {
|
|
87408
|
+
"$ref": "#/components/schemas/SaleListRequest"
|
|
87409
|
+
}
|
|
87410
|
+
}
|
|
87411
|
+
}
|
|
87412
|
+
},
|
|
87413
|
+
"responses": {
|
|
87414
|
+
"200": {
|
|
87415
|
+
"content": {
|
|
87416
|
+
"application/json": {
|
|
87417
|
+
"schema": {
|
|
87418
|
+
"$ref": "#/components/schemas/SaleListResponse"
|
|
87419
|
+
}
|
|
87420
|
+
}
|
|
87421
|
+
},
|
|
87422
|
+
"description": "Paginated list of sales"
|
|
87423
|
+
},
|
|
87424
|
+
"400": {
|
|
87425
|
+
"content": {
|
|
87426
|
+
"application/json": {
|
|
87427
|
+
"schema": {
|
|
87428
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
87429
|
+
}
|
|
87430
|
+
}
|
|
87431
|
+
},
|
|
87432
|
+
"description": "Validation error. Includes unresolvable location filters: a `city`/`county`/`state`/`zip` value that does not match a recognized location returns 400 rather than an empty result set. Resolve the name with `instantSearch` (use an id from its `results.locations[]`) or `suggestLocations` (use the `id` of a `source: \"dictionary\"` result), then pass that id back as the filter value."
|
|
87433
|
+
},
|
|
87434
|
+
"401": {
|
|
87435
|
+
"content": {
|
|
87436
|
+
"application/json": {
|
|
87437
|
+
"schema": {
|
|
87438
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
87439
|
+
}
|
|
87440
|
+
}
|
|
87441
|
+
},
|
|
87442
|
+
"description": "Unauthorized"
|
|
87443
|
+
},
|
|
87444
|
+
"403": {
|
|
87445
|
+
"content": {
|
|
87446
|
+
"application/json": {
|
|
87447
|
+
"schema": {
|
|
87448
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
87449
|
+
}
|
|
87450
|
+
}
|
|
87451
|
+
},
|
|
87452
|
+
"description": "Forbidden (authenticated, but missing required context — e.g. no active organization)"
|
|
87453
|
+
},
|
|
87454
|
+
"404": {
|
|
87455
|
+
"content": {
|
|
87456
|
+
"application/json": {
|
|
87457
|
+
"schema": {
|
|
87458
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
87459
|
+
}
|
|
87460
|
+
}
|
|
87461
|
+
},
|
|
87462
|
+
"description": "Not found"
|
|
87463
|
+
},
|
|
87464
|
+
"413": {
|
|
87465
|
+
"content": {
|
|
87466
|
+
"application/json": {
|
|
87467
|
+
"schema": {
|
|
87468
|
+
"$ref": "#/components/schemas/PayloadTooLarge"
|
|
87469
|
+
}
|
|
87470
|
+
}
|
|
87471
|
+
},
|
|
87472
|
+
"description": "Response payload too large — detail endpoint capped to fit Lambda response limits"
|
|
87473
|
+
},
|
|
87474
|
+
"503": {
|
|
87475
|
+
"content": {
|
|
87476
|
+
"application/json": {
|
|
87477
|
+
"schema": {
|
|
87478
|
+
"$ref": "#/components/schemas/SearchUnavailable"
|
|
87479
|
+
}
|
|
87480
|
+
}
|
|
87481
|
+
},
|
|
87482
|
+
"description": "Search timed out or the cluster is overloaded — retry after `Retry-After` seconds."
|
|
87483
|
+
}
|
|
87484
|
+
},
|
|
87485
|
+
"summary": "Search sales with filters",
|
|
87486
|
+
"tags": [
|
|
87487
|
+
"Sales"
|
|
87488
|
+
]
|
|
87489
|
+
}
|
|
87490
|
+
},
|
|
87491
|
+
"/v1/sales/analytics/chart": {
|
|
87492
|
+
"post": {
|
|
87493
|
+
"operationId": "salesAnalyticsChart",
|
|
87494
|
+
"requestBody": {
|
|
87495
|
+
"content": {
|
|
87496
|
+
"application/json": {
|
|
87497
|
+
"schema": {
|
|
87498
|
+
"$ref": "#/components/schemas/SaleChartRequest"
|
|
87499
|
+
}
|
|
87500
|
+
}
|
|
87501
|
+
}
|
|
87502
|
+
},
|
|
87503
|
+
"responses": {
|
|
87504
|
+
"200": {
|
|
87505
|
+
"content": {
|
|
87506
|
+
"application/json": {
|
|
87507
|
+
"schema": {
|
|
87508
|
+
"$ref": "#/components/schemas/ChartResponse"
|
|
87509
|
+
}
|
|
87510
|
+
}
|
|
87511
|
+
},
|
|
87512
|
+
"description": "Chart data"
|
|
87513
|
+
},
|
|
87514
|
+
"400": {
|
|
87515
|
+
"content": {
|
|
87516
|
+
"application/json": {
|
|
87517
|
+
"schema": {
|
|
87518
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
87519
|
+
}
|
|
87520
|
+
}
|
|
87521
|
+
},
|
|
87522
|
+
"description": "Validation error"
|
|
87523
|
+
},
|
|
87524
|
+
"401": {
|
|
87525
|
+
"content": {
|
|
87526
|
+
"application/json": {
|
|
87527
|
+
"schema": {
|
|
87528
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
87529
|
+
}
|
|
87530
|
+
}
|
|
87531
|
+
},
|
|
87532
|
+
"description": "Unauthorized"
|
|
87533
|
+
},
|
|
87534
|
+
"403": {
|
|
87535
|
+
"content": {
|
|
87536
|
+
"application/json": {
|
|
87537
|
+
"schema": {
|
|
87538
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
87539
|
+
}
|
|
87540
|
+
}
|
|
87541
|
+
},
|
|
87542
|
+
"description": "Forbidden (authenticated, but missing required context — e.g. no active organization)"
|
|
87543
|
+
},
|
|
87544
|
+
"404": {
|
|
87545
|
+
"content": {
|
|
87546
|
+
"application/json": {
|
|
87547
|
+
"schema": {
|
|
87548
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
87549
|
+
}
|
|
87550
|
+
}
|
|
87551
|
+
},
|
|
87552
|
+
"description": "Not found"
|
|
87553
|
+
},
|
|
87554
|
+
"413": {
|
|
87555
|
+
"content": {
|
|
87556
|
+
"application/json": {
|
|
87557
|
+
"schema": {
|
|
87558
|
+
"$ref": "#/components/schemas/PayloadTooLarge"
|
|
86152
87559
|
}
|
|
86153
87560
|
}
|
|
86154
87561
|
},
|
|
86155
|
-
"description": "
|
|
87562
|
+
"description": "Response payload too large — detail endpoint capped to fit Lambda response limits"
|
|
86156
87563
|
},
|
|
86157
87564
|
"503": {
|
|
86158
87565
|
"content": {
|
|
@@ -86165,26 +87572,35 @@
|
|
|
86165
87572
|
"description": "Search timed out or the cluster is overloaded — retry after `Retry-After` seconds."
|
|
86166
87573
|
}
|
|
86167
87574
|
},
|
|
86168
|
-
"summary": "
|
|
87575
|
+
"summary": "Configurable chart (measure × slice) over the market",
|
|
86169
87576
|
"tags": [
|
|
86170
|
-
"
|
|
87577
|
+
"Sales"
|
|
86171
87578
|
]
|
|
86172
87579
|
}
|
|
86173
87580
|
},
|
|
86174
|
-
"/v1/
|
|
86175
|
-
"
|
|
86176
|
-
"description": "
|
|
86177
|
-
"operationId": "
|
|
87581
|
+
"/v1/sales/analytics/market-stats": {
|
|
87582
|
+
"post": {
|
|
87583
|
+
"description": "Median sold price, price per sqft, days to sell and sale-to-list ratio over the closed sales in `period` (default `last12Months`), plus active inventory, median list price and the share of active listings with a price cut. Requires a geography (`zipCode`, `city`, `county`, `fips`, `geoPoint` or `geoBounds`). Rentals and prices under $25,000 are excluded, and active listings not touched within `activeWithinDays` are dropped. Medians are approximate and each carries the sample size it is computed from (`sold.samples`). **Property type:** the listing property-type field is populated only on recent rows, so a `propertyType` filter (and the rental exclusion by type) is reliable for recent months only; the price floor is what keeps rentals out of older periods. Billed as one analytics call.",
|
|
87584
|
+
"operationId": "salesMarketStats",
|
|
87585
|
+
"requestBody": {
|
|
87586
|
+
"content": {
|
|
87587
|
+
"application/json": {
|
|
87588
|
+
"schema": {
|
|
87589
|
+
"$ref": "#/components/schemas/SaleMarketStatsRequest"
|
|
87590
|
+
}
|
|
87591
|
+
}
|
|
87592
|
+
}
|
|
87593
|
+
},
|
|
86178
87594
|
"responses": {
|
|
86179
87595
|
"200": {
|
|
86180
87596
|
"content": {
|
|
86181
87597
|
"application/json": {
|
|
86182
87598
|
"schema": {
|
|
86183
|
-
"$ref": "#/components/schemas/
|
|
87599
|
+
"$ref": "#/components/schemas/SaleMarketStatsResponse"
|
|
86184
87600
|
}
|
|
86185
87601
|
}
|
|
86186
87602
|
},
|
|
86187
|
-
"description": "
|
|
87603
|
+
"description": "Sold and active market figures"
|
|
86188
87604
|
},
|
|
86189
87605
|
"400": {
|
|
86190
87606
|
"content": {
|
|
@@ -86194,7 +87610,7 @@
|
|
|
86194
87610
|
}
|
|
86195
87611
|
}
|
|
86196
87612
|
},
|
|
86197
|
-
"description": "Validation error"
|
|
87613
|
+
"description": "Validation error. Includes unresolvable location filters: a `city`/`county`/`state`/`zip` value that does not match a recognized location returns 400 rather than an empty result set. Resolve the name with `instantSearch` (use an id from its `results.locations[]`) or `suggestLocations` (use the `id` of a `source: \"dictionary\"` result), then pass that id back as the filter value."
|
|
86198
87614
|
},
|
|
86199
87615
|
"401": {
|
|
86200
87616
|
"content": {
|
|
@@ -86240,28 +87656,27 @@
|
|
|
86240
87656
|
"content": {
|
|
86241
87657
|
"application/json": {
|
|
86242
87658
|
"schema": {
|
|
86243
|
-
"$ref": "#/components/schemas/
|
|
87659
|
+
"$ref": "#/components/schemas/SearchUnavailable"
|
|
86244
87660
|
}
|
|
86245
87661
|
}
|
|
86246
87662
|
},
|
|
86247
|
-
"description": "
|
|
87663
|
+
"description": "Search timed out or the cluster is overloaded — retry after `Retry-After` seconds."
|
|
86248
87664
|
}
|
|
86249
87665
|
},
|
|
86250
|
-
"summary": "
|
|
87666
|
+
"summary": "Neighborhood market stats for a ZIP, city, county or area",
|
|
86251
87667
|
"tags": [
|
|
86252
|
-
"
|
|
87668
|
+
"Sales"
|
|
86253
87669
|
]
|
|
86254
87670
|
}
|
|
86255
87671
|
},
|
|
86256
|
-
"/v1/sales": {
|
|
87672
|
+
"/v1/sales/analytics/summary": {
|
|
86257
87673
|
"post": {
|
|
86258
|
-
"
|
|
86259
|
-
"operationId": "listSales",
|
|
87674
|
+
"operationId": "salesAnalyticsSummary",
|
|
86260
87675
|
"requestBody": {
|
|
86261
87676
|
"content": {
|
|
86262
87677
|
"application/json": {
|
|
86263
87678
|
"schema": {
|
|
86264
|
-
"$ref": "#/components/schemas/
|
|
87679
|
+
"$ref": "#/components/schemas/SaleSummaryRequest"
|
|
86265
87680
|
}
|
|
86266
87681
|
}
|
|
86267
87682
|
}
|
|
@@ -86271,11 +87686,11 @@
|
|
|
86271
87686
|
"content": {
|
|
86272
87687
|
"application/json": {
|
|
86273
87688
|
"schema": {
|
|
86274
|
-
"$ref": "#/components/schemas/
|
|
87689
|
+
"$ref": "#/components/schemas/SidedSummaryResponse"
|
|
86275
87690
|
}
|
|
86276
87691
|
}
|
|
86277
87692
|
},
|
|
86278
|
-
"description": "
|
|
87693
|
+
"description": "Sided market summary with previous-period comparison"
|
|
86279
87694
|
},
|
|
86280
87695
|
"400": {
|
|
86281
87696
|
"content": {
|
|
@@ -86285,7 +87700,7 @@
|
|
|
86285
87700
|
}
|
|
86286
87701
|
}
|
|
86287
87702
|
},
|
|
86288
|
-
"description": "Validation error
|
|
87703
|
+
"description": "Validation error"
|
|
86289
87704
|
},
|
|
86290
87705
|
"401": {
|
|
86291
87706
|
"content": {
|
|
@@ -86338,20 +87753,20 @@
|
|
|
86338
87753
|
"description": "Search timed out or the cluster is overloaded — retry after `Retry-After` seconds."
|
|
86339
87754
|
}
|
|
86340
87755
|
},
|
|
86341
|
-
"summary": "
|
|
87756
|
+
"summary": "Market summary with buyer/seller/dual split + previous period",
|
|
86342
87757
|
"tags": [
|
|
86343
87758
|
"Sales"
|
|
86344
87759
|
]
|
|
86345
87760
|
}
|
|
86346
87761
|
},
|
|
86347
|
-
"/v1/sales/analytics/
|
|
87762
|
+
"/v1/sales/analytics/time-series": {
|
|
86348
87763
|
"post": {
|
|
86349
|
-
"operationId": "
|
|
87764
|
+
"operationId": "salesAnalyticsTimeSeries",
|
|
86350
87765
|
"requestBody": {
|
|
86351
87766
|
"content": {
|
|
86352
87767
|
"application/json": {
|
|
86353
87768
|
"schema": {
|
|
86354
|
-
"$ref": "#/components/schemas/
|
|
87769
|
+
"$ref": "#/components/schemas/SaleTimeSeriesRequest"
|
|
86355
87770
|
}
|
|
86356
87771
|
}
|
|
86357
87772
|
}
|
|
@@ -86361,11 +87776,11 @@
|
|
|
86361
87776
|
"content": {
|
|
86362
87777
|
"application/json": {
|
|
86363
87778
|
"schema": {
|
|
86364
|
-
"$ref": "#/components/schemas/
|
|
87779
|
+
"$ref": "#/components/schemas/SalesTimeSeriesResponse"
|
|
86365
87780
|
}
|
|
86366
87781
|
}
|
|
86367
87782
|
},
|
|
86368
|
-
"description": "
|
|
87783
|
+
"description": "Time-series with side splits + previous period. Every side carries `volume`, `units`, and `measureValue` for the requested `measure`."
|
|
86369
87784
|
},
|
|
86370
87785
|
"400": {
|
|
86371
87786
|
"content": {
|
|
@@ -86428,21 +87843,21 @@
|
|
|
86428
87843
|
"description": "Search timed out or the cluster is overloaded — retry after `Retry-After` seconds."
|
|
86429
87844
|
}
|
|
86430
87845
|
},
|
|
86431
|
-
"summary": "
|
|
87846
|
+
"summary": "Volume/units over time with buyer/seller/dual split",
|
|
86432
87847
|
"tags": [
|
|
86433
87848
|
"Sales"
|
|
86434
87849
|
]
|
|
86435
87850
|
}
|
|
86436
87851
|
},
|
|
86437
|
-
"/v1/sales/
|
|
87852
|
+
"/v1/sales/count": {
|
|
86438
87853
|
"post": {
|
|
86439
|
-
"description": "
|
|
86440
|
-
"operationId": "
|
|
87854
|
+
"description": "Return the exact number of sales matching the given filters. Accepts the same request body as `listSales` (pagination and sort are ignored). Use this when you only need a total; to get the matching sales themselves, send the same request body to `listSales`.",
|
|
87855
|
+
"operationId": "countSales",
|
|
86441
87856
|
"requestBody": {
|
|
86442
87857
|
"content": {
|
|
86443
87858
|
"application/json": {
|
|
86444
87859
|
"schema": {
|
|
86445
|
-
"$ref": "#/components/schemas/
|
|
87860
|
+
"$ref": "#/components/schemas/SaleListRequest"
|
|
86446
87861
|
}
|
|
86447
87862
|
}
|
|
86448
87863
|
}
|
|
@@ -86452,11 +87867,11 @@
|
|
|
86452
87867
|
"content": {
|
|
86453
87868
|
"application/json": {
|
|
86454
87869
|
"schema": {
|
|
86455
|
-
"$ref": "#/components/schemas/
|
|
87870
|
+
"$ref": "#/components/schemas/CountResponse"
|
|
86456
87871
|
}
|
|
86457
87872
|
}
|
|
86458
87873
|
},
|
|
86459
|
-
"description": "
|
|
87874
|
+
"description": "Exact count of matching sales"
|
|
86460
87875
|
},
|
|
86461
87876
|
"400": {
|
|
86462
87877
|
"content": {
|
|
@@ -86466,7 +87881,7 @@
|
|
|
86466
87881
|
}
|
|
86467
87882
|
}
|
|
86468
87883
|
},
|
|
86469
|
-
"description": "Validation error
|
|
87884
|
+
"description": "Validation error"
|
|
86470
87885
|
},
|
|
86471
87886
|
"401": {
|
|
86472
87887
|
"content": {
|
|
@@ -86519,20 +87934,22 @@
|
|
|
86519
87934
|
"description": "Search timed out or the cluster is overloaded — retry after `Retry-After` seconds."
|
|
86520
87935
|
}
|
|
86521
87936
|
},
|
|
86522
|
-
"summary": "
|
|
87937
|
+
"summary": "Count sales matching filters",
|
|
86523
87938
|
"tags": [
|
|
86524
87939
|
"Sales"
|
|
86525
|
-
]
|
|
87940
|
+
],
|
|
87941
|
+
"x-mm-records-via": "listSales"
|
|
86526
87942
|
}
|
|
86527
87943
|
},
|
|
86528
|
-
"/v1/sales/
|
|
87944
|
+
"/v1/sales/map": {
|
|
86529
87945
|
"post": {
|
|
86530
|
-
"
|
|
87946
|
+
"description": "One call for a whole map viewport. Send the visible `bounds` (and optionally `zoom`) plus the usual sales filters. When the matches fit in `limit` the response is individual `point` rows (id, coordinates, price, status, beds/baths/sqft); otherwise it is `cluster` rows, one per grid cell, each with a count, the centroid of its listings and an approximate median list price. `total` is the exact number of matching listings in the box. **Billing: each element of `data` is billed like a list row (1 credit), so `limit` bounds the cost of one call.** Use `POST /v1/sales/count` with `flatFilters.geoBounds` for a free count.",
|
|
87947
|
+
"operationId": "mapSales",
|
|
86531
87948
|
"requestBody": {
|
|
86532
87949
|
"content": {
|
|
86533
87950
|
"application/json": {
|
|
86534
87951
|
"schema": {
|
|
86535
|
-
"$ref": "#/components/schemas/
|
|
87952
|
+
"$ref": "#/components/schemas/SaleMapRequest"
|
|
86536
87953
|
}
|
|
86537
87954
|
}
|
|
86538
87955
|
}
|
|
@@ -86542,11 +87959,11 @@
|
|
|
86542
87959
|
"content": {
|
|
86543
87960
|
"application/json": {
|
|
86544
87961
|
"schema": {
|
|
86545
|
-
"$ref": "#/components/schemas/
|
|
87962
|
+
"$ref": "#/components/schemas/SaleMapResponse"
|
|
86546
87963
|
}
|
|
86547
87964
|
}
|
|
86548
87965
|
},
|
|
86549
|
-
"description": "
|
|
87966
|
+
"description": "Points or clusters for the viewport"
|
|
86550
87967
|
},
|
|
86551
87968
|
"400": {
|
|
86552
87969
|
"content": {
|
|
@@ -86556,7 +87973,7 @@
|
|
|
86556
87973
|
}
|
|
86557
87974
|
}
|
|
86558
87975
|
},
|
|
86559
|
-
"description": "Validation error"
|
|
87976
|
+
"description": "Validation error. Includes unresolvable location filters: a `city`/`county`/`state`/`zip` value that does not match a recognized location returns 400 rather than an empty result set. Resolve the name with `instantSearch` (use an id from its `results.locations[]`) or `suggestLocations` (use the `id` of a `source: \"dictionary\"` result), then pass that id back as the filter value."
|
|
86560
87977
|
},
|
|
86561
87978
|
"401": {
|
|
86562
87979
|
"content": {
|
|
@@ -86609,34 +88026,118 @@
|
|
|
86609
88026
|
"description": "Search timed out or the cluster is overloaded — retry after `Retry-After` seconds."
|
|
86610
88027
|
}
|
|
86611
88028
|
},
|
|
86612
|
-
"summary": "
|
|
88029
|
+
"summary": "Draw a map viewport: listing points or grid clusters",
|
|
86613
88030
|
"tags": [
|
|
86614
88031
|
"Sales"
|
|
86615
88032
|
]
|
|
86616
88033
|
}
|
|
86617
88034
|
},
|
|
86618
|
-
"/v1/sales/
|
|
86619
|
-
"
|
|
86620
|
-
"operationId": "
|
|
86621
|
-
"
|
|
86622
|
-
|
|
86623
|
-
"
|
|
86624
|
-
|
|
86625
|
-
|
|
86626
|
-
|
|
88035
|
+
"/v1/sales/{id}": {
|
|
88036
|
+
"get": {
|
|
88037
|
+
"operationId": "getSale",
|
|
88038
|
+
"parameters": [
|
|
88039
|
+
{
|
|
88040
|
+
"description": "Sale document ID",
|
|
88041
|
+
"in": "path",
|
|
88042
|
+
"name": "id",
|
|
88043
|
+
"required": true,
|
|
88044
|
+
"schema": {
|
|
88045
|
+
"description": "Sale document ID",
|
|
88046
|
+
"type": "string"
|
|
86627
88047
|
}
|
|
86628
88048
|
}
|
|
88049
|
+
],
|
|
88050
|
+
"responses": {
|
|
88051
|
+
"200": {
|
|
88052
|
+
"content": {
|
|
88053
|
+
"application/json": {
|
|
88054
|
+
"schema": {
|
|
88055
|
+
"$ref": "#/components/schemas/SaleDetailResponse"
|
|
88056
|
+
}
|
|
88057
|
+
}
|
|
88058
|
+
},
|
|
88059
|
+
"description": "Sale detail"
|
|
88060
|
+
},
|
|
88061
|
+
"404": {
|
|
88062
|
+
"content": {
|
|
88063
|
+
"application/json": {
|
|
88064
|
+
"schema": {
|
|
88065
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
88066
|
+
}
|
|
88067
|
+
}
|
|
88068
|
+
},
|
|
88069
|
+
"description": "Sale not found"
|
|
88070
|
+
},
|
|
88071
|
+
"413": {
|
|
88072
|
+
"content": {
|
|
88073
|
+
"application/json": {
|
|
88074
|
+
"schema": {
|
|
88075
|
+
"$ref": "#/components/schemas/PayloadTooLarge"
|
|
88076
|
+
}
|
|
88077
|
+
}
|
|
88078
|
+
},
|
|
88079
|
+
"description": "Response payload too large"
|
|
88080
|
+
}
|
|
86629
88081
|
},
|
|
88082
|
+
"summary": "Get sale by ID",
|
|
88083
|
+
"tags": [
|
|
88084
|
+
"Sales"
|
|
88085
|
+
]
|
|
88086
|
+
}
|
|
88087
|
+
},
|
|
88088
|
+
"/v1/sales/{id}/related": {
|
|
88089
|
+
"get": {
|
|
88090
|
+
"description": "Return the ids of records of another type that are linked to this record. Links resolve by identifier, strongest identifier first, and equally-trusted identifiers are combined — a company's linked loans cover every role it holds on a loan, not just the first one found. The response reports which strength was used: `primary` is the canonical identifier for that pair, `secondary` is a real but weaker alternate used only when the record carries nothing better. This is a lightweight index: it returns ids and a count, not full records. For filtering, sorting, pagination and full detail, use the named endpoint for the pair (for example the originator loans endpoint) and fetch records by id.",
|
|
88091
|
+
"operationId": "saleRelated",
|
|
88092
|
+
"parameters": [
|
|
88093
|
+
{
|
|
88094
|
+
"description": "Sale id",
|
|
88095
|
+
"in": "path",
|
|
88096
|
+
"name": "id",
|
|
88097
|
+
"required": true,
|
|
88098
|
+
"schema": {
|
|
88099
|
+
"description": "Sale id",
|
|
88100
|
+
"type": "string"
|
|
88101
|
+
}
|
|
88102
|
+
},
|
|
88103
|
+
{
|
|
88104
|
+
"description": "Type of record to link to",
|
|
88105
|
+
"in": "query",
|
|
88106
|
+
"name": "to",
|
|
88107
|
+
"required": true,
|
|
88108
|
+
"schema": {
|
|
88109
|
+
"description": "Type of record to link to",
|
|
88110
|
+
"enum": [
|
|
88111
|
+
"agents",
|
|
88112
|
+
"loans",
|
|
88113
|
+
"properties"
|
|
88114
|
+
],
|
|
88115
|
+
"type": "string"
|
|
88116
|
+
}
|
|
88117
|
+
},
|
|
88118
|
+
{
|
|
88119
|
+
"description": "Maximum ids to return (default 25, max 200)",
|
|
88120
|
+
"in": "query",
|
|
88121
|
+
"name": "limit",
|
|
88122
|
+
"required": false,
|
|
88123
|
+
"schema": {
|
|
88124
|
+
"description": "Maximum ids to return (default 25, max 200)",
|
|
88125
|
+
"maximum": 200,
|
|
88126
|
+
"minimum": 1,
|
|
88127
|
+
"type": "integer"
|
|
88128
|
+
}
|
|
88129
|
+
}
|
|
88130
|
+
],
|
|
86630
88131
|
"responses": {
|
|
86631
88132
|
"200": {
|
|
86632
88133
|
"content": {
|
|
86633
88134
|
"application/json": {
|
|
86634
88135
|
"schema": {
|
|
86635
|
-
"$ref": "#/components/schemas/
|
|
88136
|
+
"$ref": "#/components/schemas/RelatedResponse"
|
|
86636
88137
|
}
|
|
86637
88138
|
}
|
|
86638
88139
|
},
|
|
86639
|
-
"description": "
|
|
88140
|
+
"description": "Linked record ids"
|
|
86640
88141
|
},
|
|
86641
88142
|
"400": {
|
|
86642
88143
|
"content": {
|
|
@@ -86676,7 +88177,7 @@
|
|
|
86676
88177
|
}
|
|
86677
88178
|
}
|
|
86678
88179
|
},
|
|
86679
|
-
"description": "
|
|
88180
|
+
"description": "Record not found"
|
|
86680
88181
|
},
|
|
86681
88182
|
"413": {
|
|
86682
88183
|
"content": {
|
|
@@ -86699,35 +88200,78 @@
|
|
|
86699
88200
|
"description": "Search timed out or the cluster is overloaded — retry after `Retry-After` seconds."
|
|
86700
88201
|
}
|
|
86701
88202
|
},
|
|
86702
|
-
"summary": "
|
|
88203
|
+
"summary": "Records linked to this one",
|
|
86703
88204
|
"tags": [
|
|
86704
|
-
"
|
|
88205
|
+
"Related"
|
|
86705
88206
|
]
|
|
86706
88207
|
}
|
|
86707
88208
|
},
|
|
86708
|
-
"/v1/
|
|
86709
|
-
"
|
|
86710
|
-
"description": "
|
|
86711
|
-
"operationId": "
|
|
86712
|
-
"
|
|
86713
|
-
|
|
86714
|
-
"
|
|
86715
|
-
|
|
86716
|
-
|
|
86717
|
-
|
|
88209
|
+
"/v1/saved-filters": {
|
|
88210
|
+
"get": {
|
|
88211
|
+
"description": "The caller's saved filters (and saved CRM views) in the active organization plus the ones shared with them, oldest first, optionally narrowed by target, kind and ownership. `isOwner` / `permission` / `canEdit` on each row say whose it is and what the caller may do.",
|
|
88212
|
+
"operationId": "listSavedFilters",
|
|
88213
|
+
"parameters": [
|
|
88214
|
+
{
|
|
88215
|
+
"description": "Which list the filter runs against. Market targets run against that entity's list operation (see `operationId`, e.g. listOriginators); `crm_people` / `crm_companies` are UI-only (filtered client-side).",
|
|
88216
|
+
"in": "query",
|
|
88217
|
+
"name": "target",
|
|
88218
|
+
"required": false,
|
|
88219
|
+
"schema": {
|
|
88220
|
+
"description": "Which list the filter runs against. Market targets run against that entity's list operation (see `operationId`, e.g. listOriginators); `crm_people` / `crm_companies` are UI-only (filtered client-side).",
|
|
88221
|
+
"enum": [
|
|
88222
|
+
"originators",
|
|
88223
|
+
"agents",
|
|
88224
|
+
"companies",
|
|
88225
|
+
"branches",
|
|
88226
|
+
"offices",
|
|
88227
|
+
"loans",
|
|
88228
|
+
"properties",
|
|
88229
|
+
"sales",
|
|
88230
|
+
"crm_people",
|
|
88231
|
+
"crm_companies"
|
|
88232
|
+
],
|
|
88233
|
+
"type": "string"
|
|
88234
|
+
}
|
|
88235
|
+
},
|
|
88236
|
+
{
|
|
88237
|
+
"description": "`filter` (default) — a saved search; `view` — a saved CRM table layout (columns / order) kept in `uiState`. Views never carry a `query` and have their own 25-per-target quota. Fixed at create.",
|
|
88238
|
+
"in": "query",
|
|
88239
|
+
"name": "kind",
|
|
88240
|
+
"required": false,
|
|
88241
|
+
"schema": {
|
|
88242
|
+
"description": "`filter` (default) — a saved search; `view` — a saved CRM table layout (columns / order) kept in `uiState`. Views never carry a `query` and have their own 25-per-target quota. Fixed at create.",
|
|
88243
|
+
"enum": [
|
|
88244
|
+
"filter",
|
|
88245
|
+
"view"
|
|
88246
|
+
],
|
|
88247
|
+
"type": "string"
|
|
88248
|
+
}
|
|
88249
|
+
},
|
|
88250
|
+
{
|
|
88251
|
+
"description": "`mine` — only filters you own; `shared` — only filters shared with you. Omit for both.",
|
|
88252
|
+
"in": "query",
|
|
88253
|
+
"name": "ownership",
|
|
88254
|
+
"required": false,
|
|
88255
|
+
"schema": {
|
|
88256
|
+
"description": "`mine` — only filters you own; `shared` — only filters shared with you. Omit for both.",
|
|
88257
|
+
"enum": [
|
|
88258
|
+
"mine",
|
|
88259
|
+
"shared"
|
|
88260
|
+
],
|
|
88261
|
+
"type": "string"
|
|
86718
88262
|
}
|
|
86719
88263
|
}
|
|
86720
|
-
|
|
88264
|
+
],
|
|
86721
88265
|
"responses": {
|
|
86722
88266
|
"200": {
|
|
86723
88267
|
"content": {
|
|
86724
88268
|
"application/json": {
|
|
86725
88269
|
"schema": {
|
|
86726
|
-
"$ref": "#/components/schemas/
|
|
88270
|
+
"$ref": "#/components/schemas/SavedFilterList"
|
|
86727
88271
|
}
|
|
86728
88272
|
}
|
|
86729
88273
|
},
|
|
86730
|
-
"description": "
|
|
88274
|
+
"description": "Saved filters."
|
|
86731
88275
|
},
|
|
86732
88276
|
"400": {
|
|
86733
88277
|
"content": {
|
|
@@ -86790,46 +88334,43 @@
|
|
|
86790
88334
|
"description": "Search timed out or the cluster is overloaded — retry after `Retry-After` seconds."
|
|
86791
88335
|
}
|
|
86792
88336
|
},
|
|
86793
|
-
"summary": "
|
|
88337
|
+
"summary": "List your saved filters",
|
|
86794
88338
|
"tags": [
|
|
86795
|
-
"
|
|
86796
|
-
]
|
|
86797
|
-
|
|
86798
|
-
}
|
|
86799
|
-
},
|
|
86800
|
-
"/v1/sales/map": {
|
|
88339
|
+
"Saved Filters"
|
|
88340
|
+
]
|
|
88341
|
+
},
|
|
86801
88342
|
"post": {
|
|
86802
|
-
"description": "
|
|
86803
|
-
"operationId": "
|
|
88343
|
+
"description": "Save a named filter for a list target. For a market target, `query` is the target operation's request body without `pagination` (e.g. the body you would send to listOriginators) and is validated against it. New filters are private. Limit: 25 you own per target (filters shared with you do not count).",
|
|
88344
|
+
"operationId": "createSavedFilter",
|
|
86804
88345
|
"requestBody": {
|
|
86805
88346
|
"content": {
|
|
86806
88347
|
"application/json": {
|
|
86807
88348
|
"schema": {
|
|
86808
|
-
"$ref": "#/components/schemas/
|
|
88349
|
+
"$ref": "#/components/schemas/CreateSavedFilterRequest"
|
|
86809
88350
|
}
|
|
86810
88351
|
}
|
|
86811
88352
|
}
|
|
86812
88353
|
},
|
|
86813
88354
|
"responses": {
|
|
86814
|
-
"
|
|
88355
|
+
"201": {
|
|
86815
88356
|
"content": {
|
|
86816
88357
|
"application/json": {
|
|
86817
88358
|
"schema": {
|
|
86818
|
-
"$ref": "#/components/schemas/
|
|
88359
|
+
"$ref": "#/components/schemas/CreateSavedFilterResult"
|
|
86819
88360
|
}
|
|
86820
88361
|
}
|
|
86821
88362
|
},
|
|
86822
|
-
"description": "
|
|
88363
|
+
"description": "The saved filter."
|
|
86823
88364
|
},
|
|
86824
88365
|
"400": {
|
|
86825
88366
|
"content": {
|
|
86826
88367
|
"application/json": {
|
|
86827
88368
|
"schema": {
|
|
86828
|
-
"$ref": "#/components/schemas/
|
|
88369
|
+
"$ref": "#/components/schemas/SavedFilterError"
|
|
86829
88370
|
}
|
|
86830
88371
|
}
|
|
86831
88372
|
},
|
|
86832
|
-
"description": "Validation error
|
|
88373
|
+
"description": "Validation error — including a `query` that is not a valid request for the target's operation (`issues` lists each problem)."
|
|
86833
88374
|
},
|
|
86834
88375
|
"401": {
|
|
86835
88376
|
"content": {
|
|
@@ -86861,6 +88402,16 @@
|
|
|
86861
88402
|
},
|
|
86862
88403
|
"description": "Not found"
|
|
86863
88404
|
},
|
|
88405
|
+
"409": {
|
|
88406
|
+
"content": {
|
|
88407
|
+
"application/json": {
|
|
88408
|
+
"schema": {
|
|
88409
|
+
"$ref": "#/components/schemas/SavedFilterError"
|
|
88410
|
+
}
|
|
88411
|
+
}
|
|
88412
|
+
},
|
|
88413
|
+
"description": "`QUOTA_EXCEEDED` — 25 saved filters for this target already; update or delete one."
|
|
88414
|
+
},
|
|
86864
88415
|
"413": {
|
|
86865
88416
|
"content": {
|
|
86866
88417
|
"application/json": {
|
|
@@ -86882,23 +88433,28 @@
|
|
|
86882
88433
|
"description": "Search timed out or the cluster is overloaded — retry after `Retry-After` seconds."
|
|
86883
88434
|
}
|
|
86884
88435
|
},
|
|
86885
|
-
"summary": "
|
|
88436
|
+
"summary": "Save a filter",
|
|
86886
88437
|
"tags": [
|
|
86887
|
-
"
|
|
88438
|
+
"Saved Filters"
|
|
86888
88439
|
]
|
|
86889
88440
|
}
|
|
86890
88441
|
},
|
|
86891
|
-
"/v1/
|
|
86892
|
-
"
|
|
86893
|
-
"
|
|
88442
|
+
"/v1/saved-filters/{id}": {
|
|
88443
|
+
"delete": {
|
|
88444
|
+
"description": "Owner or workspace admin only; its shares go with it. A filter shared with you cannot be deleted by you.",
|
|
88445
|
+
"operationId": "deleteSavedFilter",
|
|
86894
88446
|
"parameters": [
|
|
86895
88447
|
{
|
|
86896
|
-
"description": "
|
|
88448
|
+
"description": "Saved-filter id (nanoid).",
|
|
86897
88449
|
"in": "path",
|
|
86898
88450
|
"name": "id",
|
|
86899
88451
|
"required": true,
|
|
86900
88452
|
"schema": {
|
|
86901
|
-
"description": "
|
|
88453
|
+
"description": "Saved-filter id (nanoid).",
|
|
88454
|
+
"example": "V1StGXR8_Z5jdHi6B-myT",
|
|
88455
|
+
"maxLength": 32,
|
|
88456
|
+
"minLength": 1,
|
|
88457
|
+
"pattern": "^[\\w-]+$",
|
|
86902
88458
|
"type": "string"
|
|
86903
88459
|
}
|
|
86904
88460
|
}
|
|
@@ -86908,13 +88464,13 @@
|
|
|
86908
88464
|
"content": {
|
|
86909
88465
|
"application/json": {
|
|
86910
88466
|
"schema": {
|
|
86911
|
-
"$ref": "#/components/schemas/
|
|
88467
|
+
"$ref": "#/components/schemas/DeleteSavedFilterResult"
|
|
86912
88468
|
}
|
|
86913
88469
|
}
|
|
86914
88470
|
},
|
|
86915
|
-
"description": "
|
|
88471
|
+
"description": "Deleted."
|
|
86916
88472
|
},
|
|
86917
|
-
"
|
|
88473
|
+
"400": {
|
|
86918
88474
|
"content": {
|
|
86919
88475
|
"application/json": {
|
|
86920
88476
|
"schema": {
|
|
@@ -86922,7 +88478,37 @@
|
|
|
86922
88478
|
}
|
|
86923
88479
|
}
|
|
86924
88480
|
},
|
|
86925
|
-
"description": "
|
|
88481
|
+
"description": "Validation error"
|
|
88482
|
+
},
|
|
88483
|
+
"401": {
|
|
88484
|
+
"content": {
|
|
88485
|
+
"application/json": {
|
|
88486
|
+
"schema": {
|
|
88487
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
88488
|
+
}
|
|
88489
|
+
}
|
|
88490
|
+
},
|
|
88491
|
+
"description": "Unauthorized"
|
|
88492
|
+
},
|
|
88493
|
+
"403": {
|
|
88494
|
+
"content": {
|
|
88495
|
+
"application/json": {
|
|
88496
|
+
"schema": {
|
|
88497
|
+
"$ref": "#/components/schemas/SavedFilterError"
|
|
88498
|
+
}
|
|
88499
|
+
}
|
|
88500
|
+
},
|
|
88501
|
+
"description": "No active organization, or (`code: FORBIDDEN`) the filter is shared with you at a level that does not allow this."
|
|
88502
|
+
},
|
|
88503
|
+
"404": {
|
|
88504
|
+
"content": {
|
|
88505
|
+
"application/json": {
|
|
88506
|
+
"schema": {
|
|
88507
|
+
"$ref": "#/components/schemas/SavedFilterError"
|
|
88508
|
+
}
|
|
88509
|
+
}
|
|
88510
|
+
},
|
|
88511
|
+
"description": "No saved filter with that id is visible to the caller (their own, or shared with them)."
|
|
86926
88512
|
},
|
|
86927
88513
|
"413": {
|
|
86928
88514
|
"content": {
|
|
@@ -86932,56 +88518,41 @@
|
|
|
86932
88518
|
}
|
|
86933
88519
|
}
|
|
86934
88520
|
},
|
|
86935
|
-
"description": "Response payload too large"
|
|
88521
|
+
"description": "Response payload too large — detail endpoint capped to fit Lambda response limits"
|
|
88522
|
+
},
|
|
88523
|
+
"503": {
|
|
88524
|
+
"content": {
|
|
88525
|
+
"application/json": {
|
|
88526
|
+
"schema": {
|
|
88527
|
+
"$ref": "#/components/schemas/SearchUnavailable"
|
|
88528
|
+
}
|
|
88529
|
+
}
|
|
88530
|
+
},
|
|
88531
|
+
"description": "Search timed out or the cluster is overloaded — retry after `Retry-After` seconds."
|
|
86936
88532
|
}
|
|
86937
88533
|
},
|
|
86938
|
-
"summary": "
|
|
88534
|
+
"summary": "Delete a saved filter",
|
|
86939
88535
|
"tags": [
|
|
86940
|
-
"
|
|
88536
|
+
"Saved Filters"
|
|
86941
88537
|
]
|
|
86942
|
-
}
|
|
86943
|
-
},
|
|
86944
|
-
"/v1/sales/{id}/related": {
|
|
88538
|
+
},
|
|
86945
88539
|
"get": {
|
|
86946
|
-
"description": "
|
|
86947
|
-
"operationId": "
|
|
88540
|
+
"description": "Returns the saved `query` and the `operationId` to run it with — your own filter or one shared with you. Check `fidelity` (`partial` → `unmapped` lists what the query omits; `ui_only` → nothing to run) and `stale` (the query no longer validates) before running.",
|
|
88541
|
+
"operationId": "getSavedFilter",
|
|
86948
88542
|
"parameters": [
|
|
86949
88543
|
{
|
|
86950
|
-
"description": "
|
|
88544
|
+
"description": "Saved-filter id (nanoid).",
|
|
86951
88545
|
"in": "path",
|
|
86952
88546
|
"name": "id",
|
|
86953
88547
|
"required": true,
|
|
86954
88548
|
"schema": {
|
|
86955
|
-
"description": "
|
|
86956
|
-
"
|
|
86957
|
-
|
|
86958
|
-
|
|
86959
|
-
|
|
86960
|
-
"description": "Type of record to link to",
|
|
86961
|
-
"in": "query",
|
|
86962
|
-
"name": "to",
|
|
86963
|
-
"required": true,
|
|
86964
|
-
"schema": {
|
|
86965
|
-
"description": "Type of record to link to",
|
|
86966
|
-
"enum": [
|
|
86967
|
-
"agents",
|
|
86968
|
-
"loans",
|
|
86969
|
-
"properties"
|
|
86970
|
-
],
|
|
88549
|
+
"description": "Saved-filter id (nanoid).",
|
|
88550
|
+
"example": "V1StGXR8_Z5jdHi6B-myT",
|
|
88551
|
+
"maxLength": 32,
|
|
88552
|
+
"minLength": 1,
|
|
88553
|
+
"pattern": "^[\\w-]+$",
|
|
86971
88554
|
"type": "string"
|
|
86972
88555
|
}
|
|
86973
|
-
},
|
|
86974
|
-
{
|
|
86975
|
-
"description": "Maximum ids to return (default 25, max 200)",
|
|
86976
|
-
"in": "query",
|
|
86977
|
-
"name": "limit",
|
|
86978
|
-
"required": false,
|
|
86979
|
-
"schema": {
|
|
86980
|
-
"description": "Maximum ids to return (default 25, max 200)",
|
|
86981
|
-
"maximum": 200,
|
|
86982
|
-
"minimum": 1,
|
|
86983
|
-
"type": "integer"
|
|
86984
|
-
}
|
|
86985
88556
|
}
|
|
86986
88557
|
],
|
|
86987
88558
|
"responses": {
|
|
@@ -86989,11 +88560,11 @@
|
|
|
86989
88560
|
"content": {
|
|
86990
88561
|
"application/json": {
|
|
86991
88562
|
"schema": {
|
|
86992
|
-
"$ref": "#/components/schemas/
|
|
88563
|
+
"$ref": "#/components/schemas/GetSavedFilterResult"
|
|
86993
88564
|
}
|
|
86994
88565
|
}
|
|
86995
88566
|
},
|
|
86996
|
-
"description": "
|
|
88567
|
+
"description": "The saved filter."
|
|
86997
88568
|
},
|
|
86998
88569
|
"400": {
|
|
86999
88570
|
"content": {
|
|
@@ -87029,11 +88600,11 @@
|
|
|
87029
88600
|
"content": {
|
|
87030
88601
|
"application/json": {
|
|
87031
88602
|
"schema": {
|
|
87032
|
-
"$ref": "#/components/schemas/
|
|
88603
|
+
"$ref": "#/components/schemas/SavedFilterError"
|
|
87033
88604
|
}
|
|
87034
88605
|
}
|
|
87035
88606
|
},
|
|
87036
|
-
"description": "
|
|
88607
|
+
"description": "No saved filter with that id is visible to the caller (their own, or shared with them)."
|
|
87037
88608
|
},
|
|
87038
88609
|
"413": {
|
|
87039
88610
|
"content": {
|
|
@@ -87056,88 +88627,59 @@
|
|
|
87056
88627
|
"description": "Search timed out or the cluster is overloaded — retry after `Retry-After` seconds."
|
|
87057
88628
|
}
|
|
87058
88629
|
},
|
|
87059
|
-
"summary": "
|
|
88630
|
+
"summary": "Get a saved filter (with the operation to run it)",
|
|
87060
88631
|
"tags": [
|
|
87061
|
-
"
|
|
88632
|
+
"Saved Filters"
|
|
87062
88633
|
]
|
|
87063
|
-
}
|
|
87064
|
-
|
|
87065
|
-
|
|
87066
|
-
|
|
87067
|
-
"description": "The caller's saved filters (and saved CRM views) in the active organization plus the ones shared with them, oldest first, optionally narrowed by target, kind and ownership. `isOwner` / `permission` / `canEdit` on each row say whose it is and what the caller may do.",
|
|
87068
|
-
"operationId": "listSavedFilters",
|
|
88634
|
+
},
|
|
88635
|
+
"patch": {
|
|
88636
|
+
"description": "Rename, re-icon, or replace the query / UI state (owner, `editor`, or workspace admin). The target is fixed. A new `query` is validated like on create. `visibility` / `orgWidePermission` change who can see it (owner or workspace admin only).",
|
|
88637
|
+
"operationId": "updateSavedFilter",
|
|
87069
88638
|
"parameters": [
|
|
87070
88639
|
{
|
|
87071
|
-
"description": "
|
|
87072
|
-
"in": "
|
|
87073
|
-
"name": "
|
|
87074
|
-
"required":
|
|
87075
|
-
"schema": {
|
|
87076
|
-
"description": "Which list the filter runs against. Market targets run against that entity's list operation (see `operationId`, e.g. listOriginators); `crm_people` / `crm_companies` are UI-only (filtered client-side).",
|
|
87077
|
-
"enum": [
|
|
87078
|
-
"originators",
|
|
87079
|
-
"agents",
|
|
87080
|
-
"companies",
|
|
87081
|
-
"branches",
|
|
87082
|
-
"offices",
|
|
87083
|
-
"loans",
|
|
87084
|
-
"properties",
|
|
87085
|
-
"sales",
|
|
87086
|
-
"crm_people",
|
|
87087
|
-
"crm_companies"
|
|
87088
|
-
],
|
|
87089
|
-
"type": "string"
|
|
87090
|
-
}
|
|
87091
|
-
},
|
|
87092
|
-
{
|
|
87093
|
-
"description": "`filter` (default) — a saved search; `view` — a saved CRM table layout (columns / order) kept in `uiState`. Views never carry a `query` and have their own 25-per-target quota. Fixed at create.",
|
|
87094
|
-
"in": "query",
|
|
87095
|
-
"name": "kind",
|
|
87096
|
-
"required": false,
|
|
87097
|
-
"schema": {
|
|
87098
|
-
"description": "`filter` (default) — a saved search; `view` — a saved CRM table layout (columns / order) kept in `uiState`. Views never carry a `query` and have their own 25-per-target quota. Fixed at create.",
|
|
87099
|
-
"enum": [
|
|
87100
|
-
"filter",
|
|
87101
|
-
"view"
|
|
87102
|
-
],
|
|
87103
|
-
"type": "string"
|
|
87104
|
-
}
|
|
87105
|
-
},
|
|
87106
|
-
{
|
|
87107
|
-
"description": "`mine` — only filters you own; `shared` — only filters shared with you. Omit for both.",
|
|
87108
|
-
"in": "query",
|
|
87109
|
-
"name": "ownership",
|
|
87110
|
-
"required": false,
|
|
88640
|
+
"description": "Saved-filter id (nanoid).",
|
|
88641
|
+
"in": "path",
|
|
88642
|
+
"name": "id",
|
|
88643
|
+
"required": true,
|
|
87111
88644
|
"schema": {
|
|
87112
|
-
"description": "
|
|
87113
|
-
"
|
|
87114
|
-
|
|
87115
|
-
|
|
87116
|
-
],
|
|
88645
|
+
"description": "Saved-filter id (nanoid).",
|
|
88646
|
+
"example": "V1StGXR8_Z5jdHi6B-myT",
|
|
88647
|
+
"maxLength": 32,
|
|
88648
|
+
"minLength": 1,
|
|
88649
|
+
"pattern": "^[\\w-]+$",
|
|
87117
88650
|
"type": "string"
|
|
87118
88651
|
}
|
|
87119
88652
|
}
|
|
87120
88653
|
],
|
|
88654
|
+
"requestBody": {
|
|
88655
|
+
"content": {
|
|
88656
|
+
"application/json": {
|
|
88657
|
+
"schema": {
|
|
88658
|
+
"$ref": "#/components/schemas/UpdateSavedFilterRequest"
|
|
88659
|
+
}
|
|
88660
|
+
}
|
|
88661
|
+
}
|
|
88662
|
+
},
|
|
87121
88663
|
"responses": {
|
|
87122
88664
|
"200": {
|
|
87123
88665
|
"content": {
|
|
87124
88666
|
"application/json": {
|
|
87125
88667
|
"schema": {
|
|
87126
|
-
"$ref": "#/components/schemas/
|
|
88668
|
+
"$ref": "#/components/schemas/UpdateSavedFilterResult"
|
|
87127
88669
|
}
|
|
87128
88670
|
}
|
|
87129
88671
|
},
|
|
87130
|
-
"description": "
|
|
88672
|
+
"description": "The updated filter."
|
|
87131
88673
|
},
|
|
87132
88674
|
"400": {
|
|
87133
88675
|
"content": {
|
|
87134
88676
|
"application/json": {
|
|
87135
88677
|
"schema": {
|
|
87136
|
-
"$ref": "#/components/schemas/
|
|
88678
|
+
"$ref": "#/components/schemas/SavedFilterError"
|
|
87137
88679
|
}
|
|
87138
88680
|
}
|
|
87139
88681
|
},
|
|
87140
|
-
"description": "Validation error"
|
|
88682
|
+
"description": "Validation error — including a `query` that is not a valid request for the target's operation (`issues` lists each problem)."
|
|
87141
88683
|
},
|
|
87142
88684
|
"401": {
|
|
87143
88685
|
"content": {
|
|
@@ -87153,21 +88695,21 @@
|
|
|
87153
88695
|
"content": {
|
|
87154
88696
|
"application/json": {
|
|
87155
88697
|
"schema": {
|
|
87156
|
-
"$ref": "#/components/schemas/
|
|
88698
|
+
"$ref": "#/components/schemas/SavedFilterError"
|
|
87157
88699
|
}
|
|
87158
88700
|
}
|
|
87159
88701
|
},
|
|
87160
|
-
"description": "
|
|
88702
|
+
"description": "No active organization, or (`code: FORBIDDEN`) the filter is shared with you at a level that does not allow this."
|
|
87161
88703
|
},
|
|
87162
88704
|
"404": {
|
|
87163
88705
|
"content": {
|
|
87164
88706
|
"application/json": {
|
|
87165
88707
|
"schema": {
|
|
87166
|
-
"$ref": "#/components/schemas/
|
|
88708
|
+
"$ref": "#/components/schemas/SavedFilterError"
|
|
87167
88709
|
}
|
|
87168
88710
|
}
|
|
87169
88711
|
},
|
|
87170
|
-
"description": "
|
|
88712
|
+
"description": "No saved filter with that id is visible to the caller (their own, or shared with them)."
|
|
87171
88713
|
},
|
|
87172
88714
|
"413": {
|
|
87173
88715
|
"content": {
|
|
@@ -87190,43 +88732,52 @@
|
|
|
87190
88732
|
"description": "Search timed out or the cluster is overloaded — retry after `Retry-After` seconds."
|
|
87191
88733
|
}
|
|
87192
88734
|
},
|
|
87193
|
-
"summary": "
|
|
88735
|
+
"summary": "Update a saved filter",
|
|
87194
88736
|
"tags": [
|
|
87195
88737
|
"Saved Filters"
|
|
87196
88738
|
]
|
|
87197
|
-
}
|
|
87198
|
-
|
|
87199
|
-
|
|
87200
|
-
|
|
87201
|
-
"
|
|
87202
|
-
|
|
87203
|
-
|
|
87204
|
-
|
|
87205
|
-
|
|
87206
|
-
|
|
88739
|
+
}
|
|
88740
|
+
},
|
|
88741
|
+
"/v1/saved-filters/{id}/shareable-members": {
|
|
88742
|
+
"get": {
|
|
88743
|
+
"description": "Owner or workspace admin only. Every member of the workspace, the owner and existing shares included — subtract them for the picker.",
|
|
88744
|
+
"operationId": "listSavedFilterShareableMembers",
|
|
88745
|
+
"parameters": [
|
|
88746
|
+
{
|
|
88747
|
+
"description": "Saved-filter id (nanoid).",
|
|
88748
|
+
"in": "path",
|
|
88749
|
+
"name": "id",
|
|
88750
|
+
"required": true,
|
|
88751
|
+
"schema": {
|
|
88752
|
+
"description": "Saved-filter id (nanoid).",
|
|
88753
|
+
"example": "V1StGXR8_Z5jdHi6B-myT",
|
|
88754
|
+
"maxLength": 32,
|
|
88755
|
+
"minLength": 1,
|
|
88756
|
+
"pattern": "^[\\w-]+$",
|
|
88757
|
+
"type": "string"
|
|
87207
88758
|
}
|
|
87208
88759
|
}
|
|
87209
|
-
|
|
88760
|
+
],
|
|
87210
88761
|
"responses": {
|
|
87211
|
-
"
|
|
88762
|
+
"200": {
|
|
87212
88763
|
"content": {
|
|
87213
88764
|
"application/json": {
|
|
87214
88765
|
"schema": {
|
|
87215
|
-
"$ref": "#/components/schemas/
|
|
88766
|
+
"$ref": "#/components/schemas/SavedFilterShareableMemberList"
|
|
87216
88767
|
}
|
|
87217
88768
|
}
|
|
87218
88769
|
},
|
|
87219
|
-
"description": "The
|
|
88770
|
+
"description": "The workspace roster."
|
|
87220
88771
|
},
|
|
87221
88772
|
"400": {
|
|
87222
88773
|
"content": {
|
|
87223
88774
|
"application/json": {
|
|
87224
88775
|
"schema": {
|
|
87225
|
-
"$ref": "#/components/schemas/
|
|
88776
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
87226
88777
|
}
|
|
87227
88778
|
}
|
|
87228
88779
|
},
|
|
87229
|
-
"description": "Validation error
|
|
88780
|
+
"description": "Validation error"
|
|
87230
88781
|
},
|
|
87231
88782
|
"401": {
|
|
87232
88783
|
"content": {
|
|
@@ -87242,41 +88793,41 @@
|
|
|
87242
88793
|
"content": {
|
|
87243
88794
|
"application/json": {
|
|
87244
88795
|
"schema": {
|
|
87245
|
-
"$ref": "#/components/schemas/
|
|
88796
|
+
"$ref": "#/components/schemas/SavedFilterError"
|
|
87246
88797
|
}
|
|
87247
88798
|
}
|
|
87248
88799
|
},
|
|
87249
|
-
"description": "
|
|
88800
|
+
"description": "No active organization, or (`code: FORBIDDEN`) the filter is shared with you at a level that does not allow this."
|
|
87250
88801
|
},
|
|
87251
88802
|
"404": {
|
|
87252
88803
|
"content": {
|
|
87253
88804
|
"application/json": {
|
|
87254
88805
|
"schema": {
|
|
87255
|
-
"$ref": "#/components/schemas/
|
|
88806
|
+
"$ref": "#/components/schemas/SavedFilterError"
|
|
87256
88807
|
}
|
|
87257
88808
|
}
|
|
87258
88809
|
},
|
|
87259
|
-
"description": "
|
|
88810
|
+
"description": "No saved filter with that id is visible to the caller (their own, or shared with them)."
|
|
87260
88811
|
},
|
|
87261
|
-
"
|
|
88812
|
+
"413": {
|
|
87262
88813
|
"content": {
|
|
87263
88814
|
"application/json": {
|
|
87264
88815
|
"schema": {
|
|
87265
|
-
"$ref": "#/components/schemas/
|
|
88816
|
+
"$ref": "#/components/schemas/PayloadTooLarge"
|
|
87266
88817
|
}
|
|
87267
88818
|
}
|
|
87268
88819
|
},
|
|
87269
|
-
"description": "
|
|
88820
|
+
"description": "Response payload too large — detail endpoint capped to fit Lambda response limits"
|
|
87270
88821
|
},
|
|
87271
|
-
"
|
|
88822
|
+
"502": {
|
|
87272
88823
|
"content": {
|
|
87273
88824
|
"application/json": {
|
|
87274
88825
|
"schema": {
|
|
87275
|
-
"$ref": "#/components/schemas/
|
|
88826
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
87276
88827
|
}
|
|
87277
88828
|
}
|
|
87278
88829
|
},
|
|
87279
|
-
"description": "
|
|
88830
|
+
"description": "Workspace members could not be read (auth service unavailable)."
|
|
87280
88831
|
},
|
|
87281
88832
|
"503": {
|
|
87282
88833
|
"content": {
|
|
@@ -87289,16 +88840,16 @@
|
|
|
87289
88840
|
"description": "Search timed out or the cluster is overloaded — retry after `Retry-After` seconds."
|
|
87290
88841
|
}
|
|
87291
88842
|
},
|
|
87292
|
-
"summary": "
|
|
88843
|
+
"summary": "List the workspace members a saved filter can be shared with",
|
|
87293
88844
|
"tags": [
|
|
87294
88845
|
"Saved Filters"
|
|
87295
88846
|
]
|
|
87296
88847
|
}
|
|
87297
88848
|
},
|
|
87298
|
-
"/v1/saved-filters/{id}": {
|
|
88849
|
+
"/v1/saved-filters/{id}/shares": {
|
|
87299
88850
|
"delete": {
|
|
87300
|
-
"description": "Owner or workspace admin only
|
|
87301
|
-
"operationId": "
|
|
88851
|
+
"description": "Owner or workspace admin only. Removes that member's share; a no-op (`revoked: false`) when there was none.",
|
|
88852
|
+
"operationId": "revokeSavedFilterAccess",
|
|
87302
88853
|
"parameters": [
|
|
87303
88854
|
{
|
|
87304
88855
|
"description": "Saved-filter id (nanoid).",
|
|
@@ -87315,16 +88866,25 @@
|
|
|
87315
88866
|
}
|
|
87316
88867
|
}
|
|
87317
88868
|
],
|
|
88869
|
+
"requestBody": {
|
|
88870
|
+
"content": {
|
|
88871
|
+
"application/json": {
|
|
88872
|
+
"schema": {
|
|
88873
|
+
"$ref": "#/components/schemas/RevokeSavedFilterAccessRequest"
|
|
88874
|
+
}
|
|
88875
|
+
}
|
|
88876
|
+
}
|
|
88877
|
+
},
|
|
87318
88878
|
"responses": {
|
|
87319
88879
|
"200": {
|
|
87320
88880
|
"content": {
|
|
87321
88881
|
"application/json": {
|
|
87322
88882
|
"schema": {
|
|
87323
|
-
"$ref": "#/components/schemas/
|
|
88883
|
+
"$ref": "#/components/schemas/RevokeSavedFilterAccessResult"
|
|
87324
88884
|
}
|
|
87325
88885
|
}
|
|
87326
88886
|
},
|
|
87327
|
-
"description": "
|
|
88887
|
+
"description": "Whether a share was removed."
|
|
87328
88888
|
},
|
|
87329
88889
|
"400": {
|
|
87330
88890
|
"content": {
|
|
@@ -87387,14 +88947,14 @@
|
|
|
87387
88947
|
"description": "Search timed out or the cluster is overloaded — retry after `Retry-After` seconds."
|
|
87388
88948
|
}
|
|
87389
88949
|
},
|
|
87390
|
-
"summary": "
|
|
88950
|
+
"summary": "Stop sharing a saved filter with a member",
|
|
87391
88951
|
"tags": [
|
|
87392
88952
|
"Saved Filters"
|
|
87393
88953
|
]
|
|
87394
88954
|
},
|
|
87395
88955
|
"get": {
|
|
87396
|
-
"description": "
|
|
87397
|
-
"operationId": "
|
|
88956
|
+
"description": "Visibility, owner, the workspace-wide role and every per-user share. Readable by the owner, an `editor`, or a workspace admin.",
|
|
88957
|
+
"operationId": "getSavedFilterShares",
|
|
87398
88958
|
"parameters": [
|
|
87399
88959
|
{
|
|
87400
88960
|
"description": "Saved-filter id (nanoid).",
|
|
@@ -87416,11 +88976,11 @@
|
|
|
87416
88976
|
"content": {
|
|
87417
88977
|
"application/json": {
|
|
87418
88978
|
"schema": {
|
|
87419
|
-
"$ref": "#/components/schemas/
|
|
88979
|
+
"$ref": "#/components/schemas/GetSavedFilterSharesResult"
|
|
87420
88980
|
}
|
|
87421
88981
|
}
|
|
87422
88982
|
},
|
|
87423
|
-
"description": "The
|
|
88983
|
+
"description": "The filter's sharing state."
|
|
87424
88984
|
},
|
|
87425
88985
|
"400": {
|
|
87426
88986
|
"content": {
|
|
@@ -87446,11 +89006,11 @@
|
|
|
87446
89006
|
"content": {
|
|
87447
89007
|
"application/json": {
|
|
87448
89008
|
"schema": {
|
|
87449
|
-
"$ref": "#/components/schemas/
|
|
89009
|
+
"$ref": "#/components/schemas/SavedFilterError"
|
|
87450
89010
|
}
|
|
87451
89011
|
}
|
|
87452
89012
|
},
|
|
87453
|
-
"description": "
|
|
89013
|
+
"description": "No active organization, or (`code: FORBIDDEN`) the filter is shared with you at a level that does not allow this."
|
|
87454
89014
|
},
|
|
87455
89015
|
"404": {
|
|
87456
89016
|
"content": {
|
|
@@ -87472,6 +89032,16 @@
|
|
|
87472
89032
|
},
|
|
87473
89033
|
"description": "Response payload too large — detail endpoint capped to fit Lambda response limits"
|
|
87474
89034
|
},
|
|
89035
|
+
"502": {
|
|
89036
|
+
"content": {
|
|
89037
|
+
"application/json": {
|
|
89038
|
+
"schema": {
|
|
89039
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
89040
|
+
}
|
|
89041
|
+
}
|
|
89042
|
+
},
|
|
89043
|
+
"description": "Workspace members could not be read (auth service unavailable)."
|
|
89044
|
+
},
|
|
87475
89045
|
"503": {
|
|
87476
89046
|
"content": {
|
|
87477
89047
|
"application/json": {
|
|
@@ -87483,14 +89053,14 @@
|
|
|
87483
89053
|
"description": "Search timed out or the cluster is overloaded — retry after `Retry-After` seconds."
|
|
87484
89054
|
}
|
|
87485
89055
|
},
|
|
87486
|
-
"summary": "Get a saved filter
|
|
89056
|
+
"summary": "Get who a saved filter is shared with",
|
|
87487
89057
|
"tags": [
|
|
87488
89058
|
"Saved Filters"
|
|
87489
89059
|
]
|
|
87490
89060
|
},
|
|
87491
|
-
"
|
|
87492
|
-
"description": "
|
|
87493
|
-
"operationId": "
|
|
89061
|
+
"post": {
|
|
89062
|
+
"description": "Owner or workspace admin only. Re-sharing updates the member's role. Sharing a private filter makes it `shared`. Sharing with the owner is a no-op (`granted: false`).",
|
|
89063
|
+
"operationId": "grantSavedFilterAccess",
|
|
87494
89064
|
"parameters": [
|
|
87495
89065
|
{
|
|
87496
89066
|
"description": "Saved-filter id (nanoid).",
|
|
@@ -87511,7 +89081,7 @@
|
|
|
87511
89081
|
"content": {
|
|
87512
89082
|
"application/json": {
|
|
87513
89083
|
"schema": {
|
|
87514
|
-
"$ref": "#/components/schemas/
|
|
89084
|
+
"$ref": "#/components/schemas/GrantSavedFilterAccessRequest"
|
|
87515
89085
|
}
|
|
87516
89086
|
}
|
|
87517
89087
|
}
|
|
@@ -87521,11 +89091,11 @@
|
|
|
87521
89091
|
"content": {
|
|
87522
89092
|
"application/json": {
|
|
87523
89093
|
"schema": {
|
|
87524
|
-
"$ref": "#/components/schemas/
|
|
89094
|
+
"$ref": "#/components/schemas/GrantSavedFilterAccessResult"
|
|
87525
89095
|
}
|
|
87526
89096
|
}
|
|
87527
89097
|
},
|
|
87528
|
-
"description": "
|
|
89098
|
+
"description": "Whether a new share was created (false when an existing one was updated)."
|
|
87529
89099
|
},
|
|
87530
89100
|
"400": {
|
|
87531
89101
|
"content": {
|
|
@@ -87535,7 +89105,7 @@
|
|
|
87535
89105
|
}
|
|
87536
89106
|
}
|
|
87537
89107
|
},
|
|
87538
|
-
"description": "Validation error
|
|
89108
|
+
"description": "Validation error, or (`code: NOT_ORG_MEMBER`) the user is not a member of your workspace."
|
|
87539
89109
|
},
|
|
87540
89110
|
"401": {
|
|
87541
89111
|
"content": {
|
|
@@ -87577,6 +89147,16 @@
|
|
|
87577
89147
|
},
|
|
87578
89148
|
"description": "Response payload too large — detail endpoint capped to fit Lambda response limits"
|
|
87579
89149
|
},
|
|
89150
|
+
"502": {
|
|
89151
|
+
"content": {
|
|
89152
|
+
"application/json": {
|
|
89153
|
+
"schema": {
|
|
89154
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
89155
|
+
}
|
|
89156
|
+
}
|
|
89157
|
+
},
|
|
89158
|
+
"description": "Workspace members could not be read (auth service unavailable)."
|
|
89159
|
+
},
|
|
87580
89160
|
"503": {
|
|
87581
89161
|
"content": {
|
|
87582
89162
|
"application/json": {
|
|
@@ -87588,28 +89168,132 @@
|
|
|
87588
89168
|
"description": "Search timed out or the cluster is overloaded — retry after `Retry-After` seconds."
|
|
87589
89169
|
}
|
|
87590
89170
|
},
|
|
87591
|
-
"summary": "
|
|
89171
|
+
"summary": "Share a saved filter with a workspace member",
|
|
87592
89172
|
"tags": [
|
|
87593
89173
|
"Saved Filters"
|
|
87594
89174
|
]
|
|
87595
89175
|
}
|
|
87596
89176
|
},
|
|
87597
|
-
"/v1/
|
|
89177
|
+
"/v1/search-token": {
|
|
87598
89178
|
"get": {
|
|
87599
|
-
"description": "
|
|
87600
|
-
"operationId": "
|
|
89179
|
+
"description": "Returns a short-lived scoped search token plus the host to query, so a trusted client can search the entity indexes directly with per-query controls (e.g. attributesToSearchOn for name-only matching).",
|
|
89180
|
+
"operationId": "getSearchToken",
|
|
89181
|
+
"responses": {
|
|
89182
|
+
"200": {
|
|
89183
|
+
"content": {
|
|
89184
|
+
"application/json": {
|
|
89185
|
+
"schema": {
|
|
89186
|
+
"$ref": "#/components/schemas/SearchTokenResponse"
|
|
89187
|
+
}
|
|
89188
|
+
}
|
|
89189
|
+
},
|
|
89190
|
+
"description": "Scoped search token"
|
|
89191
|
+
},
|
|
89192
|
+
"400": {
|
|
89193
|
+
"content": {
|
|
89194
|
+
"application/json": {
|
|
89195
|
+
"schema": {
|
|
89196
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
89197
|
+
}
|
|
89198
|
+
}
|
|
89199
|
+
},
|
|
89200
|
+
"description": "Validation error"
|
|
89201
|
+
},
|
|
89202
|
+
"401": {
|
|
89203
|
+
"content": {
|
|
89204
|
+
"application/json": {
|
|
89205
|
+
"schema": {
|
|
89206
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
89207
|
+
}
|
|
89208
|
+
}
|
|
89209
|
+
},
|
|
89210
|
+
"description": "Unauthorized"
|
|
89211
|
+
},
|
|
89212
|
+
"403": {
|
|
89213
|
+
"content": {
|
|
89214
|
+
"application/json": {
|
|
89215
|
+
"schema": {
|
|
89216
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
89217
|
+
}
|
|
89218
|
+
}
|
|
89219
|
+
},
|
|
89220
|
+
"description": "Forbidden (authenticated, but missing required context — e.g. no active organization)"
|
|
89221
|
+
},
|
|
89222
|
+
"404": {
|
|
89223
|
+
"content": {
|
|
89224
|
+
"application/json": {
|
|
89225
|
+
"schema": {
|
|
89226
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
89227
|
+
}
|
|
89228
|
+
}
|
|
89229
|
+
},
|
|
89230
|
+
"description": "Not found"
|
|
89231
|
+
},
|
|
89232
|
+
"413": {
|
|
89233
|
+
"content": {
|
|
89234
|
+
"application/json": {
|
|
89235
|
+
"schema": {
|
|
89236
|
+
"$ref": "#/components/schemas/PayloadTooLarge"
|
|
89237
|
+
}
|
|
89238
|
+
}
|
|
89239
|
+
},
|
|
89240
|
+
"description": "Response payload too large — detail endpoint capped to fit Lambda response limits"
|
|
89241
|
+
},
|
|
89242
|
+
"503": {
|
|
89243
|
+
"content": {
|
|
89244
|
+
"application/json": {
|
|
89245
|
+
"schema": {
|
|
89246
|
+
"$ref": "#/components/schemas/SearchTokenUnavailable"
|
|
89247
|
+
}
|
|
89248
|
+
}
|
|
89249
|
+
},
|
|
89250
|
+
"description": "Search backend not configured"
|
|
89251
|
+
}
|
|
89252
|
+
},
|
|
89253
|
+
"summary": "Mint a scoped search token",
|
|
89254
|
+
"tags": [
|
|
89255
|
+
"Search"
|
|
89256
|
+
]
|
|
89257
|
+
}
|
|
89258
|
+
},
|
|
89259
|
+
"/v1/signals/lo-move": {
|
|
89260
|
+
"get": {
|
|
89261
|
+
"description": "Recruiting Radar: loan officers active in `state`, ordered by priority for recruiting outreach (highest first), based on signs they may start at a new company within the next six months. Each row carries a priority score (0–1, higher is higher priority), its priority percentile among all scored loan officers nationally (not just this state), and up to three plain-language reasons. Use it to find recruiting targets in a market. `state` is required and must be a two-letter US state code. Pages with `limit` / `cursor`. 1 credit per row returned.",
|
|
89262
|
+
"operationId": "listLoMoveSignals",
|
|
87601
89263
|
"parameters": [
|
|
87602
89264
|
{
|
|
87603
|
-
"description": "
|
|
87604
|
-
"in": "
|
|
87605
|
-
"name": "
|
|
87606
|
-
"required": true,
|
|
89265
|
+
"description": "Two-letter US state code (e.g. `CO`). Ranks the loan officers active in that state.",
|
|
89266
|
+
"in": "query",
|
|
89267
|
+
"name": "state",
|
|
89268
|
+
"required": true,
|
|
89269
|
+
"schema": {
|
|
89270
|
+
"description": "Two-letter US state code (e.g. `CO`). Ranks the loan officers active in that state.",
|
|
89271
|
+
"example": "CO",
|
|
89272
|
+
"pattern": "^[A-Za-z]{2}$",
|
|
89273
|
+
"type": "string"
|
|
89274
|
+
}
|
|
89275
|
+
},
|
|
89276
|
+
{
|
|
89277
|
+
"description": "Rows per page (1–100, default 25)",
|
|
89278
|
+
"in": "query",
|
|
89279
|
+
"name": "limit",
|
|
89280
|
+
"required": false,
|
|
89281
|
+
"schema": {
|
|
89282
|
+
"default": 25,
|
|
89283
|
+
"description": "Rows per page (1–100, default 25)",
|
|
89284
|
+
"maximum": 100,
|
|
89285
|
+
"minimum": 1,
|
|
89286
|
+
"type": "integer"
|
|
89287
|
+
}
|
|
89288
|
+
},
|
|
89289
|
+
{
|
|
89290
|
+
"description": "Opaque cursor from the previous page's `cursor`.",
|
|
89291
|
+
"in": "query",
|
|
89292
|
+
"name": "cursor",
|
|
89293
|
+
"required": false,
|
|
87607
89294
|
"schema": {
|
|
87608
|
-
"description": "
|
|
87609
|
-
"
|
|
87610
|
-
"maxLength": 32,
|
|
87611
|
-
"minLength": 1,
|
|
87612
|
-
"pattern": "^[\\w-]+$",
|
|
89295
|
+
"description": "Opaque cursor from the previous page's `cursor`.",
|
|
89296
|
+
"maxLength": 2048,
|
|
87613
89297
|
"type": "string"
|
|
87614
89298
|
}
|
|
87615
89299
|
}
|
|
@@ -87619,11 +89303,11 @@
|
|
|
87619
89303
|
"content": {
|
|
87620
89304
|
"application/json": {
|
|
87621
89305
|
"schema": {
|
|
87622
|
-
"$ref": "#/components/schemas/
|
|
89306
|
+
"$ref": "#/components/schemas/LoMoveSignalList"
|
|
87623
89307
|
}
|
|
87624
89308
|
}
|
|
87625
89309
|
},
|
|
87626
|
-
"description": "
|
|
89310
|
+
"description": "A page of ranked loan officers"
|
|
87627
89311
|
},
|
|
87628
89312
|
"400": {
|
|
87629
89313
|
"content": {
|
|
@@ -87633,7 +89317,7 @@
|
|
|
87633
89317
|
}
|
|
87634
89318
|
}
|
|
87635
89319
|
},
|
|
87636
|
-
"description": "
|
|
89320
|
+
"description": "Invalid parameters or cursor"
|
|
87637
89321
|
},
|
|
87638
89322
|
"401": {
|
|
87639
89323
|
"content": {
|
|
@@ -87646,36 +89330,6 @@
|
|
|
87646
89330
|
"description": "Unauthorized"
|
|
87647
89331
|
},
|
|
87648
89332
|
"403": {
|
|
87649
|
-
"content": {
|
|
87650
|
-
"application/json": {
|
|
87651
|
-
"schema": {
|
|
87652
|
-
"$ref": "#/components/schemas/SavedFilterError"
|
|
87653
|
-
}
|
|
87654
|
-
}
|
|
87655
|
-
},
|
|
87656
|
-
"description": "No active organization, or (`code: FORBIDDEN`) the filter is shared with you at a level that does not allow this."
|
|
87657
|
-
},
|
|
87658
|
-
"404": {
|
|
87659
|
-
"content": {
|
|
87660
|
-
"application/json": {
|
|
87661
|
-
"schema": {
|
|
87662
|
-
"$ref": "#/components/schemas/SavedFilterError"
|
|
87663
|
-
}
|
|
87664
|
-
}
|
|
87665
|
-
},
|
|
87666
|
-
"description": "No saved filter with that id is visible to the caller (their own, or shared with them)."
|
|
87667
|
-
},
|
|
87668
|
-
"413": {
|
|
87669
|
-
"content": {
|
|
87670
|
-
"application/json": {
|
|
87671
|
-
"schema": {
|
|
87672
|
-
"$ref": "#/components/schemas/PayloadTooLarge"
|
|
87673
|
-
}
|
|
87674
|
-
}
|
|
87675
|
-
},
|
|
87676
|
-
"description": "Response payload too large — detail endpoint capped to fit Lambda response limits"
|
|
87677
|
-
},
|
|
87678
|
-
"502": {
|
|
87679
89333
|
"content": {
|
|
87680
89334
|
"application/json": {
|
|
87681
89335
|
"schema": {
|
|
@@ -87683,473 +89337,467 @@
|
|
|
87683
89337
|
}
|
|
87684
89338
|
}
|
|
87685
89339
|
},
|
|
87686
|
-
"description": "
|
|
89340
|
+
"description": "Forbidden (authenticated, but missing required context — e.g. no active organization)"
|
|
87687
89341
|
},
|
|
87688
89342
|
"503": {
|
|
87689
89343
|
"content": {
|
|
87690
89344
|
"application/json": {
|
|
87691
89345
|
"schema": {
|
|
87692
|
-
"$ref": "#/components/schemas/
|
|
89346
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
87693
89347
|
}
|
|
87694
89348
|
}
|
|
87695
89349
|
},
|
|
87696
|
-
"description": "
|
|
89350
|
+
"description": "Signals are temporarily unavailable. Retry later."
|
|
87697
89351
|
}
|
|
87698
89352
|
},
|
|
87699
|
-
"summary": "
|
|
89353
|
+
"summary": "Loan officers to prioritize for recruiting, by state",
|
|
87700
89354
|
"tags": [
|
|
87701
|
-
"
|
|
89355
|
+
"Signals"
|
|
87702
89356
|
]
|
|
87703
89357
|
}
|
|
87704
89358
|
},
|
|
87705
|
-
"/v1/
|
|
87706
|
-
"
|
|
87707
|
-
"description": "
|
|
87708
|
-
"operationId": "
|
|
87709
|
-
"parameters": [
|
|
87710
|
-
{
|
|
87711
|
-
"description": "Saved-filter id (nanoid).",
|
|
87712
|
-
"in": "path",
|
|
87713
|
-
"name": "id",
|
|
87714
|
-
"required": true,
|
|
87715
|
-
"schema": {
|
|
87716
|
-
"description": "Saved-filter id (nanoid).",
|
|
87717
|
-
"example": "V1StGXR8_Z5jdHi6B-myT",
|
|
87718
|
-
"maxLength": 32,
|
|
87719
|
-
"minLength": 1,
|
|
87720
|
-
"pattern": "^[\\w-]+$",
|
|
87721
|
-
"type": "string"
|
|
87722
|
-
}
|
|
87723
|
-
}
|
|
87724
|
-
],
|
|
87725
|
-
"requestBody": {
|
|
87726
|
-
"content": {
|
|
87727
|
-
"application/json": {
|
|
87728
|
-
"schema": {
|
|
87729
|
-
"$ref": "#/components/schemas/RevokeSavedFilterAccessRequest"
|
|
87730
|
-
}
|
|
87731
|
-
}
|
|
87732
|
-
}
|
|
87733
|
-
},
|
|
89359
|
+
"/v1/studio/catalog": {
|
|
89360
|
+
"get": {
|
|
89361
|
+
"description": "Everything a Studio question can read: the market tables (recorded mortgage loans, home listings and sales), the result tables of your organization's own saved jobs, the files your organization uploaded (`upload_…`) and your organization's CRM (`crm_…`: the lists shared with the whole organization and the records in them, refreshed about every 15 minutes; they join to market data on NMLS ids). Each table lists its columns with a type and a plain-language description, and notes worth reading before writing SQL. `limits` says how many rows an answer can carry and how long a question may run; `guidance` says how to write SQL that works here. `notes` carries anything worth telling the user about the catalog itself, such as why there are no CRM tables yet. Read this before the first question in a conversation. Free.",
|
|
89362
|
+
"operationId": "getStudioCatalog",
|
|
87734
89363
|
"responses": {
|
|
87735
89364
|
"200": {
|
|
87736
89365
|
"content": {
|
|
87737
89366
|
"application/json": {
|
|
87738
89367
|
"schema": {
|
|
87739
|
-
"$ref": "#/components/schemas/
|
|
89368
|
+
"$ref": "#/components/schemas/StudioCatalog"
|
|
87740
89369
|
}
|
|
87741
89370
|
}
|
|
87742
89371
|
},
|
|
87743
|
-
"description": "
|
|
89372
|
+
"description": "The tables, their columns, the limits and guidance"
|
|
87744
89373
|
},
|
|
87745
89374
|
"400": {
|
|
87746
89375
|
"content": {
|
|
87747
89376
|
"application/json": {
|
|
87748
89377
|
"schema": {
|
|
87749
|
-
"$ref": "#/components/schemas/
|
|
89378
|
+
"$ref": "#/components/schemas/StudioError"
|
|
87750
89379
|
}
|
|
87751
89380
|
}
|
|
87752
89381
|
},
|
|
87753
|
-
"description": "
|
|
89382
|
+
"description": "The request was refused, and `error` says why: SQL that is not a single read-only SELECT, an unknown table (`details.table`, `details.availableTables`), an unknown column (`details.column`, `details.suggestions`), a function that is not available (`details.function`), or a job that could not run as written (`invalid_job`)."
|
|
87754
89383
|
},
|
|
87755
89384
|
"401": {
|
|
87756
89385
|
"content": {
|
|
87757
89386
|
"application/json": {
|
|
87758
89387
|
"schema": {
|
|
87759
|
-
"$ref": "#/components/schemas/
|
|
89388
|
+
"$ref": "#/components/schemas/StudioError"
|
|
87760
89389
|
}
|
|
87761
89390
|
}
|
|
87762
89391
|
},
|
|
87763
|
-
"description": "
|
|
89392
|
+
"description": "Authentication required."
|
|
87764
89393
|
},
|
|
87765
89394
|
"403": {
|
|
87766
89395
|
"content": {
|
|
87767
89396
|
"application/json": {
|
|
87768
89397
|
"schema": {
|
|
87769
|
-
"$ref": "#/components/schemas/
|
|
89398
|
+
"$ref": "#/components/schemas/StudioError"
|
|
87770
89399
|
}
|
|
87771
89400
|
}
|
|
87772
89401
|
},
|
|
87773
|
-
"description": "
|
|
89402
|
+
"description": "`no_organization` — Studio works inside an organization: select one and retry. `studio_not_enabled` — Studio is in a limited preview and is not enabled for this account."
|
|
87774
89403
|
},
|
|
87775
89404
|
"404": {
|
|
87776
89405
|
"content": {
|
|
87777
89406
|
"application/json": {
|
|
87778
89407
|
"schema": {
|
|
87779
|
-
"$ref": "#/components/schemas/
|
|
89408
|
+
"$ref": "#/components/schemas/StudioError"
|
|
87780
89409
|
}
|
|
87781
89410
|
}
|
|
87782
89411
|
},
|
|
87783
|
-
"description": "
|
|
89412
|
+
"description": "`job_not_found` — your organization has no job of that name. `query_not_found` — your organization has no background question of that id."
|
|
87784
89413
|
},
|
|
87785
|
-
"
|
|
89414
|
+
"409": {
|
|
87786
89415
|
"content": {
|
|
87787
89416
|
"application/json": {
|
|
87788
89417
|
"schema": {
|
|
87789
|
-
"$ref": "#/components/schemas/
|
|
89418
|
+
"$ref": "#/components/schemas/StudioError"
|
|
87790
89419
|
}
|
|
87791
89420
|
}
|
|
87792
89421
|
},
|
|
87793
|
-
"description": "
|
|
89422
|
+
"description": "`job_exists` — the name is taken; `job_limit_reached` — your organization is at its limit of saved jobs (`details.limit`); `job_running` — another job is running for your organization, retry when it has finished."
|
|
89423
|
+
},
|
|
89424
|
+
"422": {
|
|
89425
|
+
"content": {
|
|
89426
|
+
"application/json": {
|
|
89427
|
+
"schema": {
|
|
89428
|
+
"$ref": "#/components/schemas/StudioError"
|
|
89429
|
+
}
|
|
89430
|
+
}
|
|
89431
|
+
},
|
|
89432
|
+
"description": "The SQL is valid but asks for more than one answer may cost: `timeout` (it ran for its whole time, in the background included, and was stopped — narrow it by state or date; or it could not carry on in the background because another question of your organization already is), `result_too_large`, `resource_limit`. For a job run, `job_failed`."
|
|
89433
|
+
},
|
|
89434
|
+
"429": {
|
|
89435
|
+
"content": {
|
|
89436
|
+
"application/json": {
|
|
89437
|
+
"schema": {
|
|
89438
|
+
"$ref": "#/components/schemas/StudioError"
|
|
89439
|
+
}
|
|
89440
|
+
}
|
|
89441
|
+
},
|
|
89442
|
+
"description": "`rate_limited` — too many requests from your organization in the last minute; or `busy` — every slot is taken right now. Wait `details.retryAfterSeconds` (also sent as `Retry-After`)."
|
|
87794
89443
|
},
|
|
87795
89444
|
"503": {
|
|
87796
89445
|
"content": {
|
|
87797
89446
|
"application/json": {
|
|
87798
89447
|
"schema": {
|
|
87799
|
-
"$ref": "#/components/schemas/
|
|
89448
|
+
"$ref": "#/components/schemas/StudioError"
|
|
87800
89449
|
}
|
|
87801
89450
|
}
|
|
87802
89451
|
},
|
|
87803
|
-
"description": "
|
|
89452
|
+
"description": "`studio_unavailable` — Studio is not available right now."
|
|
87804
89453
|
}
|
|
87805
89454
|
},
|
|
87806
|
-
"summary": "
|
|
89455
|
+
"summary": "Tables you can query in Studio, with their columns",
|
|
87807
89456
|
"tags": [
|
|
87808
|
-
"
|
|
89457
|
+
"Studio"
|
|
87809
89458
|
]
|
|
87810
|
-
}
|
|
89459
|
+
}
|
|
89460
|
+
},
|
|
89461
|
+
"/v1/studio/jobs": {
|
|
87811
89462
|
"get": {
|
|
87812
|
-
"description": "
|
|
87813
|
-
"operationId": "
|
|
87814
|
-
"parameters": [
|
|
87815
|
-
{
|
|
87816
|
-
"description": "Saved-filter id (nanoid).",
|
|
87817
|
-
"in": "path",
|
|
87818
|
-
"name": "id",
|
|
87819
|
-
"required": true,
|
|
87820
|
-
"schema": {
|
|
87821
|
-
"description": "Saved-filter id (nanoid).",
|
|
87822
|
-
"example": "V1StGXR8_Z5jdHi6B-myT",
|
|
87823
|
-
"maxLength": 32,
|
|
87824
|
-
"minLength": 1,
|
|
87825
|
-
"pattern": "^[\\w-]+$",
|
|
87826
|
-
"type": "string"
|
|
87827
|
-
}
|
|
87828
|
-
}
|
|
87829
|
-
],
|
|
89463
|
+
"description": "Every job your organization has saved, each with its schedule, when it next runs, the table its result is in, and how its last run went. Free.",
|
|
89464
|
+
"operationId": "listStudioJobs",
|
|
87830
89465
|
"responses": {
|
|
87831
89466
|
"200": {
|
|
87832
89467
|
"content": {
|
|
87833
89468
|
"application/json": {
|
|
87834
89469
|
"schema": {
|
|
87835
|
-
"$ref": "#/components/schemas/
|
|
89470
|
+
"$ref": "#/components/schemas/StudioJobList"
|
|
87836
89471
|
}
|
|
87837
89472
|
}
|
|
87838
89473
|
},
|
|
87839
|
-
"description": "The
|
|
89474
|
+
"description": "The saved jobs"
|
|
87840
89475
|
},
|
|
87841
89476
|
"400": {
|
|
87842
89477
|
"content": {
|
|
87843
89478
|
"application/json": {
|
|
87844
89479
|
"schema": {
|
|
87845
|
-
"$ref": "#/components/schemas/
|
|
89480
|
+
"$ref": "#/components/schemas/StudioError"
|
|
87846
89481
|
}
|
|
87847
89482
|
}
|
|
87848
89483
|
},
|
|
87849
|
-
"description": "
|
|
89484
|
+
"description": "The request was refused, and `error` says why: SQL that is not a single read-only SELECT, an unknown table (`details.table`, `details.availableTables`), an unknown column (`details.column`, `details.suggestions`), a function that is not available (`details.function`), or a job that could not run as written (`invalid_job`)."
|
|
87850
89485
|
},
|
|
87851
89486
|
"401": {
|
|
87852
89487
|
"content": {
|
|
87853
89488
|
"application/json": {
|
|
87854
89489
|
"schema": {
|
|
87855
|
-
"$ref": "#/components/schemas/
|
|
89490
|
+
"$ref": "#/components/schemas/StudioError"
|
|
87856
89491
|
}
|
|
87857
89492
|
}
|
|
87858
89493
|
},
|
|
87859
|
-
"description": "
|
|
89494
|
+
"description": "Authentication required."
|
|
87860
89495
|
},
|
|
87861
89496
|
"403": {
|
|
87862
89497
|
"content": {
|
|
87863
89498
|
"application/json": {
|
|
87864
89499
|
"schema": {
|
|
87865
|
-
"$ref": "#/components/schemas/
|
|
89500
|
+
"$ref": "#/components/schemas/StudioError"
|
|
87866
89501
|
}
|
|
87867
89502
|
}
|
|
87868
89503
|
},
|
|
87869
|
-
"description": "
|
|
89504
|
+
"description": "`no_organization` — Studio works inside an organization: select one and retry. `studio_not_enabled` — Studio is in a limited preview and is not enabled for this account."
|
|
87870
89505
|
},
|
|
87871
89506
|
"404": {
|
|
87872
89507
|
"content": {
|
|
87873
89508
|
"application/json": {
|
|
87874
89509
|
"schema": {
|
|
87875
|
-
"$ref": "#/components/schemas/
|
|
89510
|
+
"$ref": "#/components/schemas/StudioError"
|
|
87876
89511
|
}
|
|
87877
89512
|
}
|
|
87878
89513
|
},
|
|
87879
|
-
"description": "
|
|
89514
|
+
"description": "`job_not_found` — your organization has no job of that name. `query_not_found` — your organization has no background question of that id."
|
|
87880
89515
|
},
|
|
87881
|
-
"
|
|
89516
|
+
"409": {
|
|
87882
89517
|
"content": {
|
|
87883
89518
|
"application/json": {
|
|
87884
89519
|
"schema": {
|
|
87885
|
-
"$ref": "#/components/schemas/
|
|
89520
|
+
"$ref": "#/components/schemas/StudioError"
|
|
87886
89521
|
}
|
|
87887
89522
|
}
|
|
87888
89523
|
},
|
|
87889
|
-
"description": "
|
|
89524
|
+
"description": "`job_exists` — the name is taken; `job_limit_reached` — your organization is at its limit of saved jobs (`details.limit`); `job_running` — another job is running for your organization, retry when it has finished."
|
|
87890
89525
|
},
|
|
87891
|
-
"
|
|
89526
|
+
"422": {
|
|
87892
89527
|
"content": {
|
|
87893
89528
|
"application/json": {
|
|
87894
89529
|
"schema": {
|
|
87895
|
-
"$ref": "#/components/schemas/
|
|
89530
|
+
"$ref": "#/components/schemas/StudioError"
|
|
87896
89531
|
}
|
|
87897
89532
|
}
|
|
87898
89533
|
},
|
|
87899
|
-
"description": "
|
|
89534
|
+
"description": "The SQL is valid but asks for more than one answer may cost: `timeout` (it ran for its whole time, in the background included, and was stopped — narrow it by state or date; or it could not carry on in the background because another question of your organization already is), `result_too_large`, `resource_limit`. For a job run, `job_failed`."
|
|
89535
|
+
},
|
|
89536
|
+
"429": {
|
|
89537
|
+
"content": {
|
|
89538
|
+
"application/json": {
|
|
89539
|
+
"schema": {
|
|
89540
|
+
"$ref": "#/components/schemas/StudioError"
|
|
89541
|
+
}
|
|
89542
|
+
}
|
|
89543
|
+
},
|
|
89544
|
+
"description": "`rate_limited` — too many requests from your organization in the last minute; or `busy` — every slot is taken right now. Wait `details.retryAfterSeconds` (also sent as `Retry-After`)."
|
|
87900
89545
|
},
|
|
87901
89546
|
"503": {
|
|
87902
89547
|
"content": {
|
|
87903
89548
|
"application/json": {
|
|
87904
89549
|
"schema": {
|
|
87905
|
-
"$ref": "#/components/schemas/
|
|
89550
|
+
"$ref": "#/components/schemas/StudioError"
|
|
87906
89551
|
}
|
|
87907
89552
|
}
|
|
87908
89553
|
},
|
|
87909
|
-
"description": "
|
|
89554
|
+
"description": "`studio_unavailable` — Studio is not available right now."
|
|
87910
89555
|
}
|
|
87911
89556
|
},
|
|
87912
|
-
"summary": "
|
|
89557
|
+
"summary": "Your organization's saved jobs",
|
|
87913
89558
|
"tags": [
|
|
87914
|
-
"
|
|
89559
|
+
"Studio"
|
|
87915
89560
|
]
|
|
87916
89561
|
},
|
|
87917
89562
|
"post": {
|
|
87918
|
-
"description": "
|
|
87919
|
-
"operationId": "
|
|
87920
|
-
"parameters": [
|
|
87921
|
-
{
|
|
87922
|
-
"description": "Saved-filter id (nanoid).",
|
|
87923
|
-
"in": "path",
|
|
87924
|
-
"name": "id",
|
|
87925
|
-
"required": true,
|
|
87926
|
-
"schema": {
|
|
87927
|
-
"description": "Saved-filter id (nanoid).",
|
|
87928
|
-
"example": "V1StGXR8_Z5jdHi6B-myT",
|
|
87929
|
-
"maxLength": 32,
|
|
87930
|
-
"minLength": 1,
|
|
87931
|
-
"pattern": "^[\\w-]+$",
|
|
87932
|
-
"type": "string"
|
|
87933
|
-
}
|
|
87934
|
-
}
|
|
87935
|
-
],
|
|
89563
|
+
"description": "Save a SQL question to run again: on a schedule (`daily`, `weekly`) or only when asked (`manual`). Each run stores its result as a table named after the job, which later questions — and later jobs — can query like any other table. Name the `keys` (the columns that identify one row) to get 'what changed since the last run', and add `alerts` to flag new rows, removed rows or a number crossing a threshold. The SQL is checked when the job is saved: an unknown table or column, or a key that is not in the result, is refused here rather than at the first run. Saving does not run the job. Saving is free; each run that succeeds costs 10 credits, including the runs a `daily` or `weekly` schedule starts.",
|
|
89564
|
+
"operationId": "createStudioJob",
|
|
87936
89565
|
"requestBody": {
|
|
87937
89566
|
"content": {
|
|
87938
89567
|
"application/json": {
|
|
87939
89568
|
"schema": {
|
|
87940
|
-
"$ref": "#/components/schemas/
|
|
89569
|
+
"$ref": "#/components/schemas/StudioJobRequest"
|
|
87941
89570
|
}
|
|
87942
89571
|
}
|
|
87943
|
-
}
|
|
89572
|
+
},
|
|
89573
|
+
"required": true
|
|
87944
89574
|
},
|
|
87945
89575
|
"responses": {
|
|
87946
|
-
"
|
|
89576
|
+
"201": {
|
|
87947
89577
|
"content": {
|
|
87948
89578
|
"application/json": {
|
|
87949
89579
|
"schema": {
|
|
87950
|
-
"$ref": "#/components/schemas/
|
|
89580
|
+
"$ref": "#/components/schemas/StudioJobSaved"
|
|
87951
89581
|
}
|
|
87952
89582
|
}
|
|
87953
89583
|
},
|
|
87954
|
-
"description": "
|
|
89584
|
+
"description": "The saved job"
|
|
87955
89585
|
},
|
|
87956
89586
|
"400": {
|
|
87957
89587
|
"content": {
|
|
87958
89588
|
"application/json": {
|
|
87959
89589
|
"schema": {
|
|
87960
|
-
"$ref": "#/components/schemas/
|
|
89590
|
+
"$ref": "#/components/schemas/StudioError"
|
|
87961
89591
|
}
|
|
87962
89592
|
}
|
|
87963
89593
|
},
|
|
87964
|
-
"description": "
|
|
89594
|
+
"description": "The request was refused, and `error` says why: SQL that is not a single read-only SELECT, an unknown table (`details.table`, `details.availableTables`), an unknown column (`details.column`, `details.suggestions`), a function that is not available (`details.function`), or a job that could not run as written (`invalid_job`)."
|
|
87965
89595
|
},
|
|
87966
89596
|
"401": {
|
|
87967
89597
|
"content": {
|
|
87968
89598
|
"application/json": {
|
|
87969
89599
|
"schema": {
|
|
87970
|
-
"$ref": "#/components/schemas/
|
|
89600
|
+
"$ref": "#/components/schemas/StudioError"
|
|
87971
89601
|
}
|
|
87972
89602
|
}
|
|
87973
89603
|
},
|
|
87974
|
-
"description": "
|
|
89604
|
+
"description": "Authentication required."
|
|
87975
89605
|
},
|
|
87976
89606
|
"403": {
|
|
87977
89607
|
"content": {
|
|
87978
89608
|
"application/json": {
|
|
87979
89609
|
"schema": {
|
|
87980
|
-
"$ref": "#/components/schemas/
|
|
89610
|
+
"$ref": "#/components/schemas/StudioError"
|
|
87981
89611
|
}
|
|
87982
89612
|
}
|
|
87983
89613
|
},
|
|
87984
|
-
"description": "
|
|
89614
|
+
"description": "`no_organization` — Studio works inside an organization: select one and retry. `studio_not_enabled` — Studio is in a limited preview and is not enabled for this account."
|
|
87985
89615
|
},
|
|
87986
89616
|
"404": {
|
|
87987
89617
|
"content": {
|
|
87988
89618
|
"application/json": {
|
|
87989
89619
|
"schema": {
|
|
87990
|
-
"$ref": "#/components/schemas/
|
|
89620
|
+
"$ref": "#/components/schemas/StudioError"
|
|
87991
89621
|
}
|
|
87992
89622
|
}
|
|
87993
89623
|
},
|
|
87994
|
-
"description": "
|
|
89624
|
+
"description": "`job_not_found` — your organization has no job of that name. `query_not_found` — your organization has no background question of that id."
|
|
87995
89625
|
},
|
|
87996
|
-
"
|
|
89626
|
+
"409": {
|
|
87997
89627
|
"content": {
|
|
87998
89628
|
"application/json": {
|
|
87999
89629
|
"schema": {
|
|
88000
|
-
"$ref": "#/components/schemas/
|
|
89630
|
+
"$ref": "#/components/schemas/StudioError"
|
|
88001
89631
|
}
|
|
88002
89632
|
}
|
|
88003
89633
|
},
|
|
88004
|
-
"description": "
|
|
89634
|
+
"description": "`job_exists` — the name is taken; `job_limit_reached` — your organization is at its limit of saved jobs (`details.limit`); `job_running` — another job is running for your organization, retry when it has finished."
|
|
88005
89635
|
},
|
|
88006
|
-
"
|
|
89636
|
+
"422": {
|
|
88007
89637
|
"content": {
|
|
88008
89638
|
"application/json": {
|
|
88009
89639
|
"schema": {
|
|
88010
|
-
"$ref": "#/components/schemas/
|
|
89640
|
+
"$ref": "#/components/schemas/StudioError"
|
|
88011
89641
|
}
|
|
88012
89642
|
}
|
|
88013
89643
|
},
|
|
88014
|
-
"description": "
|
|
89644
|
+
"description": "The SQL is valid but asks for more than one answer may cost: `timeout` (it ran for its whole time, in the background included, and was stopped — narrow it by state or date; or it could not carry on in the background because another question of your organization already is), `result_too_large`, `resource_limit`. For a job run, `job_failed`."
|
|
89645
|
+
},
|
|
89646
|
+
"429": {
|
|
89647
|
+
"content": {
|
|
89648
|
+
"application/json": {
|
|
89649
|
+
"schema": {
|
|
89650
|
+
"$ref": "#/components/schemas/StudioError"
|
|
89651
|
+
}
|
|
89652
|
+
}
|
|
89653
|
+
},
|
|
89654
|
+
"description": "`rate_limited` — too many requests from your organization in the last minute; or `busy` — every slot is taken right now. Wait `details.retryAfterSeconds` (also sent as `Retry-After`)."
|
|
88015
89655
|
},
|
|
88016
89656
|
"503": {
|
|
88017
89657
|
"content": {
|
|
88018
89658
|
"application/json": {
|
|
88019
89659
|
"schema": {
|
|
88020
|
-
"$ref": "#/components/schemas/
|
|
89660
|
+
"$ref": "#/components/schemas/StudioError"
|
|
88021
89661
|
}
|
|
88022
89662
|
}
|
|
88023
89663
|
},
|
|
88024
|
-
"description": "
|
|
89664
|
+
"description": "`studio_unavailable` — Studio is not available right now."
|
|
88025
89665
|
}
|
|
88026
89666
|
},
|
|
88027
|
-
"summary": "
|
|
89667
|
+
"summary": "Save a question as a job",
|
|
88028
89668
|
"tags": [
|
|
88029
|
-
"
|
|
89669
|
+
"Studio"
|
|
88030
89670
|
]
|
|
88031
89671
|
}
|
|
88032
89672
|
},
|
|
88033
|
-
"/v1/
|
|
88034
|
-
"
|
|
88035
|
-
"description": "
|
|
88036
|
-
"operationId": "
|
|
89673
|
+
"/v1/studio/jobs/{name}": {
|
|
89674
|
+
"delete": {
|
|
89675
|
+
"description": "Delete a saved job, its run history and its result tables. Questions and jobs that read its table stop working. Free.",
|
|
89676
|
+
"operationId": "deleteStudioJob",
|
|
89677
|
+
"parameters": [
|
|
89678
|
+
{
|
|
89679
|
+
"description": "The job's name: lower-case letters, digits and underscores, starting with a letter. It is also the name of the table that holds the job's result.",
|
|
89680
|
+
"in": "path",
|
|
89681
|
+
"name": "name",
|
|
89682
|
+
"required": true,
|
|
89683
|
+
"schema": {
|
|
89684
|
+
"description": "The job's name: lower-case letters, digits and underscores, starting with a letter. It is also the name of the table that holds the job's result.",
|
|
89685
|
+
"example": "top_lenders_tx",
|
|
89686
|
+
"pattern": "^[a-z][a-z0-9_]{0,62}$",
|
|
89687
|
+
"type": "string"
|
|
89688
|
+
}
|
|
89689
|
+
}
|
|
89690
|
+
],
|
|
88037
89691
|
"responses": {
|
|
88038
89692
|
"200": {
|
|
88039
89693
|
"content": {
|
|
88040
89694
|
"application/json": {
|
|
88041
89695
|
"schema": {
|
|
88042
|
-
"$ref": "#/components/schemas/
|
|
89696
|
+
"$ref": "#/components/schemas/StudioJobDeleted"
|
|
88043
89697
|
}
|
|
88044
89698
|
}
|
|
88045
89699
|
},
|
|
88046
|
-
"description": "
|
|
89700
|
+
"description": "Deleted"
|
|
88047
89701
|
},
|
|
88048
89702
|
"400": {
|
|
88049
89703
|
"content": {
|
|
88050
89704
|
"application/json": {
|
|
88051
89705
|
"schema": {
|
|
88052
|
-
"$ref": "#/components/schemas/
|
|
89706
|
+
"$ref": "#/components/schemas/StudioError"
|
|
88053
89707
|
}
|
|
88054
89708
|
}
|
|
88055
89709
|
},
|
|
88056
|
-
"description": "
|
|
89710
|
+
"description": "The request was refused, and `error` says why: SQL that is not a single read-only SELECT, an unknown table (`details.table`, `details.availableTables`), an unknown column (`details.column`, `details.suggestions`), a function that is not available (`details.function`), or a job that could not run as written (`invalid_job`)."
|
|
88057
89711
|
},
|
|
88058
89712
|
"401": {
|
|
88059
89713
|
"content": {
|
|
88060
89714
|
"application/json": {
|
|
88061
89715
|
"schema": {
|
|
88062
|
-
"$ref": "#/components/schemas/
|
|
89716
|
+
"$ref": "#/components/schemas/StudioError"
|
|
88063
89717
|
}
|
|
88064
89718
|
}
|
|
88065
89719
|
},
|
|
88066
|
-
"description": "
|
|
89720
|
+
"description": "Authentication required."
|
|
88067
89721
|
},
|
|
88068
89722
|
"403": {
|
|
88069
89723
|
"content": {
|
|
88070
89724
|
"application/json": {
|
|
88071
89725
|
"schema": {
|
|
88072
|
-
"$ref": "#/components/schemas/
|
|
89726
|
+
"$ref": "#/components/schemas/StudioError"
|
|
88073
89727
|
}
|
|
88074
89728
|
}
|
|
88075
89729
|
},
|
|
88076
|
-
"description": "
|
|
89730
|
+
"description": "`no_organization` — Studio works inside an organization: select one and retry. `studio_not_enabled` — Studio is in a limited preview and is not enabled for this account."
|
|
88077
89731
|
},
|
|
88078
89732
|
"404": {
|
|
88079
89733
|
"content": {
|
|
88080
89734
|
"application/json": {
|
|
88081
89735
|
"schema": {
|
|
88082
|
-
"$ref": "#/components/schemas/
|
|
89736
|
+
"$ref": "#/components/schemas/StudioError"
|
|
88083
89737
|
}
|
|
88084
89738
|
}
|
|
88085
89739
|
},
|
|
88086
|
-
"description": "
|
|
89740
|
+
"description": "`job_not_found` — your organization has no job of that name. `query_not_found` — your organization has no background question of that id."
|
|
88087
89741
|
},
|
|
88088
|
-
"
|
|
89742
|
+
"409": {
|
|
88089
89743
|
"content": {
|
|
88090
89744
|
"application/json": {
|
|
88091
89745
|
"schema": {
|
|
88092
|
-
"$ref": "#/components/schemas/
|
|
89746
|
+
"$ref": "#/components/schemas/StudioError"
|
|
88093
89747
|
}
|
|
88094
89748
|
}
|
|
88095
89749
|
},
|
|
88096
|
-
"description": "
|
|
89750
|
+
"description": "`job_exists` — the name is taken; `job_limit_reached` — your organization is at its limit of saved jobs (`details.limit`); `job_running` — another job is running for your organization, retry when it has finished."
|
|
89751
|
+
},
|
|
89752
|
+
"422": {
|
|
89753
|
+
"content": {
|
|
89754
|
+
"application/json": {
|
|
89755
|
+
"schema": {
|
|
89756
|
+
"$ref": "#/components/schemas/StudioError"
|
|
89757
|
+
}
|
|
89758
|
+
}
|
|
89759
|
+
},
|
|
89760
|
+
"description": "The SQL is valid but asks for more than one answer may cost: `timeout` (it ran for its whole time, in the background included, and was stopped — narrow it by state or date; or it could not carry on in the background because another question of your organization already is), `result_too_large`, `resource_limit`. For a job run, `job_failed`."
|
|
89761
|
+
},
|
|
89762
|
+
"429": {
|
|
89763
|
+
"content": {
|
|
89764
|
+
"application/json": {
|
|
89765
|
+
"schema": {
|
|
89766
|
+
"$ref": "#/components/schemas/StudioError"
|
|
89767
|
+
}
|
|
89768
|
+
}
|
|
89769
|
+
},
|
|
89770
|
+
"description": "`rate_limited` — too many requests from your organization in the last minute; or `busy` — every slot is taken right now. Wait `details.retryAfterSeconds` (also sent as `Retry-After`)."
|
|
88097
89771
|
},
|
|
88098
89772
|
"503": {
|
|
88099
89773
|
"content": {
|
|
88100
89774
|
"application/json": {
|
|
88101
89775
|
"schema": {
|
|
88102
|
-
"$ref": "#/components/schemas/
|
|
89776
|
+
"$ref": "#/components/schemas/StudioError"
|
|
88103
89777
|
}
|
|
88104
89778
|
}
|
|
88105
89779
|
},
|
|
88106
|
-
"description": "
|
|
89780
|
+
"description": "`studio_unavailable` — Studio is not available right now."
|
|
88107
89781
|
}
|
|
88108
89782
|
},
|
|
88109
|
-
"summary": "
|
|
89783
|
+
"summary": "Delete a job and its results",
|
|
88110
89784
|
"tags": [
|
|
88111
|
-
"
|
|
89785
|
+
"Studio"
|
|
88112
89786
|
]
|
|
88113
|
-
}
|
|
88114
|
-
},
|
|
88115
|
-
"/v1/signals/lo-move": {
|
|
89787
|
+
},
|
|
88116
89788
|
"get": {
|
|
88117
|
-
"description": "
|
|
88118
|
-
"operationId": "
|
|
89789
|
+
"description": "A saved job with its recent runs (newest first), what changed in the latest successful run since the one before it, the alert rules that matched, and `result.table` — the table to query for its rows. Poll this after starting a run that answered `running`. Free.",
|
|
89790
|
+
"operationId": "getStudioJob",
|
|
88119
89791
|
"parameters": [
|
|
88120
89792
|
{
|
|
88121
|
-
"description": "
|
|
88122
|
-
"in": "
|
|
88123
|
-
"name": "
|
|
89793
|
+
"description": "The job's name: lower-case letters, digits and underscores, starting with a letter. It is also the name of the table that holds the job's result.",
|
|
89794
|
+
"in": "path",
|
|
89795
|
+
"name": "name",
|
|
88124
89796
|
"required": true,
|
|
88125
89797
|
"schema": {
|
|
88126
|
-
"description": "
|
|
88127
|
-
"example": "
|
|
88128
|
-
"pattern": "^[
|
|
88129
|
-
"type": "string"
|
|
88130
|
-
}
|
|
88131
|
-
},
|
|
88132
|
-
{
|
|
88133
|
-
"description": "Rows per page (1–100, default 25)",
|
|
88134
|
-
"in": "query",
|
|
88135
|
-
"name": "limit",
|
|
88136
|
-
"required": false,
|
|
88137
|
-
"schema": {
|
|
88138
|
-
"default": 25,
|
|
88139
|
-
"description": "Rows per page (1–100, default 25)",
|
|
88140
|
-
"maximum": 100,
|
|
88141
|
-
"minimum": 1,
|
|
88142
|
-
"type": "integer"
|
|
88143
|
-
}
|
|
88144
|
-
},
|
|
88145
|
-
{
|
|
88146
|
-
"description": "Opaque cursor from the previous page's `cursor`.",
|
|
88147
|
-
"in": "query",
|
|
88148
|
-
"name": "cursor",
|
|
88149
|
-
"required": false,
|
|
88150
|
-
"schema": {
|
|
88151
|
-
"description": "Opaque cursor from the previous page's `cursor`.",
|
|
88152
|
-
"maxLength": 2048,
|
|
89798
|
+
"description": "The job's name: lower-case letters, digits and underscores, starting with a letter. It is also the name of the table that holds the job's result.",
|
|
89799
|
+
"example": "top_lenders_tx",
|
|
89800
|
+
"pattern": "^[a-z][a-z0-9_]{0,62}$",
|
|
88153
89801
|
"type": "string"
|
|
88154
89802
|
}
|
|
88155
89803
|
}
|
|
@@ -88159,73 +89807,137 @@
|
|
|
88159
89807
|
"content": {
|
|
88160
89808
|
"application/json": {
|
|
88161
89809
|
"schema": {
|
|
88162
|
-
"$ref": "#/components/schemas/
|
|
89810
|
+
"$ref": "#/components/schemas/StudioJobDetail"
|
|
88163
89811
|
}
|
|
88164
89812
|
}
|
|
88165
89813
|
},
|
|
88166
|
-
"description": "
|
|
89814
|
+
"description": "The job, its runs and its result table"
|
|
88167
89815
|
},
|
|
88168
89816
|
"400": {
|
|
88169
89817
|
"content": {
|
|
88170
89818
|
"application/json": {
|
|
88171
89819
|
"schema": {
|
|
88172
|
-
"$ref": "#/components/schemas/
|
|
89820
|
+
"$ref": "#/components/schemas/StudioError"
|
|
88173
89821
|
}
|
|
88174
89822
|
}
|
|
88175
89823
|
},
|
|
88176
|
-
"description": "
|
|
89824
|
+
"description": "The request was refused, and `error` says why: SQL that is not a single read-only SELECT, an unknown table (`details.table`, `details.availableTables`), an unknown column (`details.column`, `details.suggestions`), a function that is not available (`details.function`), or a job that could not run as written (`invalid_job`)."
|
|
88177
89825
|
},
|
|
88178
89826
|
"401": {
|
|
88179
89827
|
"content": {
|
|
88180
89828
|
"application/json": {
|
|
88181
89829
|
"schema": {
|
|
88182
|
-
"$ref": "#/components/schemas/
|
|
89830
|
+
"$ref": "#/components/schemas/StudioError"
|
|
88183
89831
|
}
|
|
88184
89832
|
}
|
|
88185
89833
|
},
|
|
88186
|
-
"description": "
|
|
89834
|
+
"description": "Authentication required."
|
|
88187
89835
|
},
|
|
88188
89836
|
"403": {
|
|
88189
89837
|
"content": {
|
|
88190
89838
|
"application/json": {
|
|
88191
89839
|
"schema": {
|
|
88192
|
-
"$ref": "#/components/schemas/
|
|
89840
|
+
"$ref": "#/components/schemas/StudioError"
|
|
88193
89841
|
}
|
|
88194
89842
|
}
|
|
88195
89843
|
},
|
|
88196
|
-
"description": "
|
|
89844
|
+
"description": "`no_organization` — Studio works inside an organization: select one and retry. `studio_not_enabled` — Studio is in a limited preview and is not enabled for this account."
|
|
89845
|
+
},
|
|
89846
|
+
"404": {
|
|
89847
|
+
"content": {
|
|
89848
|
+
"application/json": {
|
|
89849
|
+
"schema": {
|
|
89850
|
+
"$ref": "#/components/schemas/StudioError"
|
|
89851
|
+
}
|
|
89852
|
+
}
|
|
89853
|
+
},
|
|
89854
|
+
"description": "`job_not_found` — your organization has no job of that name. `query_not_found` — your organization has no background question of that id."
|
|
89855
|
+
},
|
|
89856
|
+
"409": {
|
|
89857
|
+
"content": {
|
|
89858
|
+
"application/json": {
|
|
89859
|
+
"schema": {
|
|
89860
|
+
"$ref": "#/components/schemas/StudioError"
|
|
89861
|
+
}
|
|
89862
|
+
}
|
|
89863
|
+
},
|
|
89864
|
+
"description": "`job_exists` — the name is taken; `job_limit_reached` — your organization is at its limit of saved jobs (`details.limit`); `job_running` — another job is running for your organization, retry when it has finished."
|
|
89865
|
+
},
|
|
89866
|
+
"422": {
|
|
89867
|
+
"content": {
|
|
89868
|
+
"application/json": {
|
|
89869
|
+
"schema": {
|
|
89870
|
+
"$ref": "#/components/schemas/StudioError"
|
|
89871
|
+
}
|
|
89872
|
+
}
|
|
89873
|
+
},
|
|
89874
|
+
"description": "The SQL is valid but asks for more than one answer may cost: `timeout` (it ran for its whole time, in the background included, and was stopped — narrow it by state or date; or it could not carry on in the background because another question of your organization already is), `result_too_large`, `resource_limit`. For a job run, `job_failed`."
|
|
89875
|
+
},
|
|
89876
|
+
"429": {
|
|
89877
|
+
"content": {
|
|
89878
|
+
"application/json": {
|
|
89879
|
+
"schema": {
|
|
89880
|
+
"$ref": "#/components/schemas/StudioError"
|
|
89881
|
+
}
|
|
89882
|
+
}
|
|
89883
|
+
},
|
|
89884
|
+
"description": "`rate_limited` — too many requests from your organization in the last minute; or `busy` — every slot is taken right now. Wait `details.retryAfterSeconds` (also sent as `Retry-After`)."
|
|
88197
89885
|
},
|
|
88198
89886
|
"503": {
|
|
88199
89887
|
"content": {
|
|
88200
89888
|
"application/json": {
|
|
88201
89889
|
"schema": {
|
|
88202
|
-
"$ref": "#/components/schemas/
|
|
89890
|
+
"$ref": "#/components/schemas/StudioError"
|
|
88203
89891
|
}
|
|
88204
89892
|
}
|
|
88205
89893
|
},
|
|
88206
|
-
"description": "
|
|
89894
|
+
"description": "`studio_unavailable` — Studio is not available right now."
|
|
88207
89895
|
}
|
|
88208
89896
|
},
|
|
88209
|
-
"summary": "
|
|
89897
|
+
"summary": "One job: its runs, what changed, and where its result is",
|
|
88210
89898
|
"tags": [
|
|
88211
|
-
"
|
|
89899
|
+
"Studio"
|
|
88212
89900
|
]
|
|
88213
89901
|
}
|
|
88214
89902
|
},
|
|
88215
|
-
"/v1/studio/
|
|
88216
|
-
"
|
|
88217
|
-
"description": "
|
|
88218
|
-
"operationId": "
|
|
89903
|
+
"/v1/studio/jobs/{name}/run": {
|
|
89904
|
+
"post": {
|
|
89905
|
+
"description": "Run a saved job now. Answers `200` with the finished run (its row count, what changed and any alerts) when it ends within a few seconds; otherwise `202` with `status: running`, and the run carries on — read the job to see how it ended. A run that fails answers `422` with `code: job_failed` and the reason. One job runs at a time per organization. 10 credits for a run that succeeds; a failed run is free. A run that has succeeded by the time this returns is charged now (`credits.charged`, with `credits.remaining`). One still running is charged when it finishes successfully: `credits.charged` is 0 and `credits.pending` says what it will cost.",
|
|
89906
|
+
"operationId": "runStudioJob",
|
|
89907
|
+
"parameters": [
|
|
89908
|
+
{
|
|
89909
|
+
"description": "The job's name: lower-case letters, digits and underscores, starting with a letter. It is also the name of the table that holds the job's result.",
|
|
89910
|
+
"in": "path",
|
|
89911
|
+
"name": "name",
|
|
89912
|
+
"required": true,
|
|
89913
|
+
"schema": {
|
|
89914
|
+
"description": "The job's name: lower-case letters, digits and underscores, starting with a letter. It is also the name of the table that holds the job's result.",
|
|
89915
|
+
"example": "top_lenders_tx",
|
|
89916
|
+
"pattern": "^[a-z][a-z0-9_]{0,62}$",
|
|
89917
|
+
"type": "string"
|
|
89918
|
+
}
|
|
89919
|
+
}
|
|
89920
|
+
],
|
|
88219
89921
|
"responses": {
|
|
88220
89922
|
"200": {
|
|
88221
89923
|
"content": {
|
|
88222
89924
|
"application/json": {
|
|
88223
89925
|
"schema": {
|
|
88224
|
-
"$ref": "#/components/schemas/
|
|
89926
|
+
"$ref": "#/components/schemas/StudioJobRunResult"
|
|
88225
89927
|
}
|
|
88226
89928
|
}
|
|
88227
89929
|
},
|
|
88228
|
-
"description": "The
|
|
89930
|
+
"description": "The run finished"
|
|
89931
|
+
},
|
|
89932
|
+
"202": {
|
|
89933
|
+
"content": {
|
|
89934
|
+
"application/json": {
|
|
89935
|
+
"schema": {
|
|
89936
|
+
"$ref": "#/components/schemas/StudioJobRunResult"
|
|
89937
|
+
}
|
|
89938
|
+
}
|
|
89939
|
+
},
|
|
89940
|
+
"description": "The run is still going; read the job for its outcome"
|
|
88229
89941
|
},
|
|
88230
89942
|
"400": {
|
|
88231
89943
|
"content": {
|
|
@@ -88265,7 +89977,7 @@
|
|
|
88265
89977
|
}
|
|
88266
89978
|
}
|
|
88267
89979
|
},
|
|
88268
|
-
"description": "`job_not_found` — your organization has no job of that name."
|
|
89980
|
+
"description": "`job_not_found` — your organization has no job of that name. `query_not_found` — your organization has no background question of that id."
|
|
88269
89981
|
},
|
|
88270
89982
|
"409": {
|
|
88271
89983
|
"content": {
|
|
@@ -88281,11 +89993,11 @@
|
|
|
88281
89993
|
"content": {
|
|
88282
89994
|
"application/json": {
|
|
88283
89995
|
"schema": {
|
|
88284
|
-
"$ref": "#/components/schemas/
|
|
89996
|
+
"$ref": "#/components/schemas/StudioJobFailed"
|
|
88285
89997
|
}
|
|
88286
89998
|
}
|
|
88287
89999
|
},
|
|
88288
|
-
"description": "
|
|
90000
|
+
"description": "`job_failed` — the run failed; `run.error` says why."
|
|
88289
90001
|
},
|
|
88290
90002
|
"429": {
|
|
88291
90003
|
"content": {
|
|
@@ -88308,121 +90020,121 @@
|
|
|
88308
90020
|
"description": "`studio_unavailable` — Studio is not available right now."
|
|
88309
90021
|
}
|
|
88310
90022
|
},
|
|
88311
|
-
"summary": "
|
|
90023
|
+
"summary": "Run a job now",
|
|
88312
90024
|
"tags": [
|
|
88313
90025
|
"Studio"
|
|
88314
90026
|
]
|
|
88315
90027
|
}
|
|
88316
90028
|
},
|
|
88317
|
-
"/v1/studio/
|
|
90029
|
+
"/v1/studio/models": {
|
|
88318
90030
|
"get": {
|
|
88319
|
-
"description": "Every
|
|
88320
|
-
"operationId": "
|
|
90031
|
+
"description": "Every model your organization has: its status, what it predicts, the data points it uses, its report card and where its scores are. Only your organization's models are listed. Listing is free; a model that has just finished is charged for here if this is the first call to see it (`credits`), exactly as getStudioModel would.",
|
|
90032
|
+
"operationId": "listStudioModels",
|
|
88321
90033
|
"responses": {
|
|
88322
90034
|
"200": {
|
|
88323
90035
|
"content": {
|
|
88324
90036
|
"application/json": {
|
|
88325
90037
|
"schema": {
|
|
88326
|
-
"$ref": "#/components/schemas/
|
|
90038
|
+
"$ref": "#/components/schemas/StudioModelList"
|
|
88327
90039
|
}
|
|
88328
90040
|
}
|
|
88329
90041
|
},
|
|
88330
|
-
"description": "The
|
|
90042
|
+
"description": "The models"
|
|
88331
90043
|
},
|
|
88332
90044
|
"400": {
|
|
88333
90045
|
"content": {
|
|
88334
90046
|
"application/json": {
|
|
88335
90047
|
"schema": {
|
|
88336
|
-
"$ref": "#/components/schemas/
|
|
90048
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
88337
90049
|
}
|
|
88338
90050
|
}
|
|
88339
90051
|
},
|
|
88340
|
-
"description": "The request
|
|
90052
|
+
"description": "The request cannot be used: it is malformed, names an outcome or data point we do not have, or asks for a data point that could show the model the answer. `error` says which and what to use instead."
|
|
88341
90053
|
},
|
|
88342
90054
|
"401": {
|
|
88343
90055
|
"content": {
|
|
88344
90056
|
"application/json": {
|
|
88345
90057
|
"schema": {
|
|
88346
|
-
"$ref": "#/components/schemas/
|
|
90058
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
88347
90059
|
}
|
|
88348
90060
|
}
|
|
88349
90061
|
},
|
|
88350
|
-
"description": "
|
|
90062
|
+
"description": "`unauthenticated` — sign in, or send a valid credential."
|
|
88351
90063
|
},
|
|
88352
90064
|
"403": {
|
|
88353
90065
|
"content": {
|
|
88354
90066
|
"application/json": {
|
|
88355
90067
|
"schema": {
|
|
88356
|
-
"$ref": "#/components/schemas/
|
|
90068
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
88357
90069
|
}
|
|
88358
90070
|
}
|
|
88359
90071
|
},
|
|
88360
|
-
"description": "`no_organization` —
|
|
90072
|
+
"description": "`no_organization` — models belong to an organization; select one and try again."
|
|
88361
90073
|
},
|
|
88362
90074
|
"404": {
|
|
88363
90075
|
"content": {
|
|
88364
90076
|
"application/json": {
|
|
88365
90077
|
"schema": {
|
|
88366
|
-
"$ref": "#/components/schemas/
|
|
90078
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
88367
90079
|
}
|
|
88368
90080
|
}
|
|
88369
90081
|
},
|
|
88370
|
-
"description": "`
|
|
90082
|
+
"description": "`model_not_found` — your organization has no model of that name."
|
|
88371
90083
|
},
|
|
88372
90084
|
"409": {
|
|
88373
90085
|
"content": {
|
|
88374
90086
|
"application/json": {
|
|
88375
90087
|
"schema": {
|
|
88376
|
-
"$ref": "#/components/schemas/
|
|
90088
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
88377
90089
|
}
|
|
88378
90090
|
}
|
|
88379
90091
|
},
|
|
88380
|
-
"description": "`
|
|
90092
|
+
"description": "`model_exists` — the name is taken (pass `replace: true` for a new version); `model_limit_reached` — your organization is at its limit of models; `model_training_in_progress` — one model runs at a time per organization; `model_not_ready` — the model has no trained version to refresh."
|
|
88381
90093
|
},
|
|
88382
90094
|
"422": {
|
|
88383
90095
|
"content": {
|
|
88384
90096
|
"application/json": {
|
|
88385
90097
|
"schema": {
|
|
88386
|
-
"$ref": "#/components/schemas/
|
|
90098
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
88387
90099
|
}
|
|
88388
90100
|
}
|
|
88389
90101
|
},
|
|
88390
|
-
"description": "
|
|
90102
|
+
"description": "Your own data cannot support this model as asked: no date column, too few rows or too few of one outcome, every row the same outcome, dates in the future, too few rows matched to homes, or a data point that is the outcome or was recorded after it. `error` states the numbers and what would help."
|
|
88391
90103
|
},
|
|
88392
90104
|
"429": {
|
|
88393
90105
|
"content": {
|
|
88394
90106
|
"application/json": {
|
|
88395
90107
|
"schema": {
|
|
88396
|
-
"$ref": "#/components/schemas/
|
|
90108
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
88397
90109
|
}
|
|
88398
90110
|
}
|
|
88399
90111
|
},
|
|
88400
|
-
"description": "`rate_limited` — too many requests from your organization in the last minute; or `busy` — every slot is taken
|
|
90112
|
+
"description": "`rate_limited` — too many model requests from your organization in the last minute; or `busy` — every training slot is taken. Wait `details.retryAfterSeconds` (also sent as `Retry-After`)."
|
|
88401
90113
|
},
|
|
88402
90114
|
"503": {
|
|
88403
90115
|
"content": {
|
|
88404
90116
|
"application/json": {
|
|
88405
90117
|
"schema": {
|
|
88406
|
-
"$ref": "#/components/schemas/
|
|
90118
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
88407
90119
|
}
|
|
88408
90120
|
}
|
|
88409
90121
|
},
|
|
88410
|
-
"description": "`studio_unavailable` —
|
|
90122
|
+
"description": "`models_unavailable` — training is switched off right now (reading models and querying published scores still work); `studio_unavailable` — try again in a minute. `billing_unavailable` — the model is finished but could not be charged for right now, so it is not published yet; read it again in a minute (it is never charged twice)."
|
|
88411
90123
|
}
|
|
88412
90124
|
},
|
|
88413
|
-
"summary": "Your organization's
|
|
90125
|
+
"summary": "Your organization's models",
|
|
88414
90126
|
"tags": [
|
|
88415
90127
|
"Studio"
|
|
88416
90128
|
]
|
|
88417
90129
|
},
|
|
88418
90130
|
"post": {
|
|
88419
|
-
"description": "
|
|
88420
|
-
"operationId": "
|
|
90131
|
+
"description": "Define a model — what to predict, for whom, in which state, and the data points to use — and start training it. It answers at once with `status: training`; training takes a few minutes, so read the model with getStudioModel until it is `ready` or `refused`. `features` is the heart of it: the data points the person believes matter. Their own knowledge can be data points too — columns of their uploaded outcomes table such as a lead source or a rating their team gives. To learn from their own results instead of a market outcome, pass `outcomeSource` (an uploaded table with a home, a date and what happened on every row); that usually helps most. Everything a model learns from is taken strictly before each case's date, and a data point that could show it the answer is refused with the reason. To try a different list of data points, send the same `name` with `replace: true`, or a new name with `basedOn`: the new report card says what changed. A request that cannot work is refused now with a clear reason (`error`, `code`, and the numbers in `details`). One model trains at a time per organization, up to 10 models. 50 credits for a model that passes its checks, charged once when it has finished: by the first call that reads it or, if nobody does, on its own within about two hours. A model that is refused or fails is free.",
|
|
90132
|
+
"operationId": "createStudioModel",
|
|
88421
90133
|
"requestBody": {
|
|
88422
90134
|
"content": {
|
|
88423
90135
|
"application/json": {
|
|
88424
90136
|
"schema": {
|
|
88425
|
-
"$ref": "#/components/schemas/
|
|
90137
|
+
"$ref": "#/components/schemas/StudioModelCreate"
|
|
88426
90138
|
}
|
|
88427
90139
|
}
|
|
88428
90140
|
},
|
|
@@ -88433,113 +90145,215 @@
|
|
|
88433
90145
|
"content": {
|
|
88434
90146
|
"application/json": {
|
|
88435
90147
|
"schema": {
|
|
88436
|
-
"$ref": "#/components/schemas/
|
|
90148
|
+
"$ref": "#/components/schemas/StudioModelCreated"
|
|
88437
90149
|
}
|
|
88438
90150
|
}
|
|
88439
90151
|
},
|
|
88440
|
-
"description": "
|
|
90152
|
+
"description": "Training has started"
|
|
88441
90153
|
},
|
|
88442
90154
|
"400": {
|
|
88443
90155
|
"content": {
|
|
88444
90156
|
"application/json": {
|
|
88445
90157
|
"schema": {
|
|
88446
|
-
"$ref": "#/components/schemas/
|
|
90158
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
88447
90159
|
}
|
|
88448
90160
|
}
|
|
88449
90161
|
},
|
|
88450
|
-
"description": "The request
|
|
90162
|
+
"description": "The request cannot be used: it is malformed, names an outcome or data point we do not have, or asks for a data point that could show the model the answer. `error` says which and what to use instead."
|
|
88451
90163
|
},
|
|
88452
90164
|
"401": {
|
|
88453
90165
|
"content": {
|
|
88454
90166
|
"application/json": {
|
|
88455
90167
|
"schema": {
|
|
88456
|
-
"$ref": "#/components/schemas/
|
|
90168
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
88457
90169
|
}
|
|
88458
90170
|
}
|
|
88459
90171
|
},
|
|
88460
|
-
"description": "
|
|
90172
|
+
"description": "`unauthenticated` — sign in, or send a valid credential."
|
|
88461
90173
|
},
|
|
88462
90174
|
"403": {
|
|
88463
90175
|
"content": {
|
|
88464
90176
|
"application/json": {
|
|
88465
90177
|
"schema": {
|
|
88466
|
-
"$ref": "#/components/schemas/
|
|
90178
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
88467
90179
|
}
|
|
88468
90180
|
}
|
|
88469
90181
|
},
|
|
88470
|
-
"description": "`no_organization` —
|
|
90182
|
+
"description": "`no_organization` — models belong to an organization; select one and try again."
|
|
88471
90183
|
},
|
|
88472
90184
|
"404": {
|
|
88473
90185
|
"content": {
|
|
88474
90186
|
"application/json": {
|
|
88475
90187
|
"schema": {
|
|
88476
|
-
"$ref": "#/components/schemas/
|
|
90188
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
88477
90189
|
}
|
|
88478
90190
|
}
|
|
88479
90191
|
},
|
|
88480
|
-
"description": "`
|
|
90192
|
+
"description": "`model_not_found` — your organization has no model of that name."
|
|
88481
90193
|
},
|
|
88482
90194
|
"409": {
|
|
88483
90195
|
"content": {
|
|
88484
90196
|
"application/json": {
|
|
88485
90197
|
"schema": {
|
|
88486
|
-
"$ref": "#/components/schemas/
|
|
90198
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
88487
90199
|
}
|
|
88488
90200
|
}
|
|
88489
90201
|
},
|
|
88490
|
-
"description": "`
|
|
90202
|
+
"description": "`model_exists` — the name is taken (pass `replace: true` for a new version); `model_limit_reached` — your organization is at its limit of models; `model_training_in_progress` — one model runs at a time per organization; `model_not_ready` — the model has no trained version to refresh."
|
|
88491
90203
|
},
|
|
88492
90204
|
"422": {
|
|
88493
90205
|
"content": {
|
|
88494
90206
|
"application/json": {
|
|
88495
90207
|
"schema": {
|
|
88496
|
-
"$ref": "#/components/schemas/
|
|
90208
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
88497
90209
|
}
|
|
88498
90210
|
}
|
|
88499
90211
|
},
|
|
88500
|
-
"description": "
|
|
90212
|
+
"description": "Your own data cannot support this model as asked: no date column, too few rows or too few of one outcome, every row the same outcome, dates in the future, too few rows matched to homes, or a data point that is the outcome or was recorded after it. `error` states the numbers and what would help."
|
|
88501
90213
|
},
|
|
88502
90214
|
"429": {
|
|
88503
90215
|
"content": {
|
|
88504
90216
|
"application/json": {
|
|
88505
90217
|
"schema": {
|
|
88506
|
-
"$ref": "#/components/schemas/
|
|
90218
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
88507
90219
|
}
|
|
88508
90220
|
}
|
|
88509
90221
|
},
|
|
88510
|
-
"description": "`rate_limited` — too many requests from your organization in the last minute; or `busy` — every slot is taken
|
|
90222
|
+
"description": "`rate_limited` — too many model requests from your organization in the last minute; or `busy` — every training slot is taken. Wait `details.retryAfterSeconds` (also sent as `Retry-After`)."
|
|
88511
90223
|
},
|
|
88512
90224
|
"503": {
|
|
88513
90225
|
"content": {
|
|
88514
90226
|
"application/json": {
|
|
88515
90227
|
"schema": {
|
|
88516
|
-
"$ref": "#/components/schemas/
|
|
90228
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
88517
90229
|
}
|
|
88518
90230
|
}
|
|
88519
90231
|
},
|
|
88520
|
-
"description": "`studio_unavailable` —
|
|
90232
|
+
"description": "`models_unavailable` — training is switched off right now (reading models and querying published scores still work); `studio_unavailable` — try again in a minute. `billing_unavailable` — the model is finished but could not be charged for right now, so it is not published yet; read it again in a minute (it is never charged twice)."
|
|
88521
90233
|
}
|
|
88522
90234
|
},
|
|
88523
|
-
"summary": "
|
|
90235
|
+
"summary": "Create a prediction model and start training it",
|
|
88524
90236
|
"tags": [
|
|
88525
90237
|
"Studio"
|
|
88526
90238
|
]
|
|
88527
90239
|
}
|
|
88528
90240
|
},
|
|
88529
|
-
"/v1/studio/
|
|
90241
|
+
"/v1/studio/models/options": {
|
|
90242
|
+
"get": {
|
|
90243
|
+
"description": "Everything needed to define a model: the outcomes that can be predicted, who can be scored (`populations`), the data points a model may use, grouped by theme, each with a line on why someone might believe it matters, the limits, and what a table of your own outcomes must contain. Call this first, show the themes, and ASK which data points the person believes matter: a model is trained on exactly their picks, and its report card tests that belief. Free.",
|
|
90244
|
+
"operationId": "getStudioModelOptions",
|
|
90245
|
+
"responses": {
|
|
90246
|
+
"200": {
|
|
90247
|
+
"content": {
|
|
90248
|
+
"application/json": {
|
|
90249
|
+
"schema": {
|
|
90250
|
+
"$ref": "#/components/schemas/StudioModelOptionsResult"
|
|
90251
|
+
}
|
|
90252
|
+
}
|
|
90253
|
+
},
|
|
90254
|
+
"description": "The choices"
|
|
90255
|
+
},
|
|
90256
|
+
"400": {
|
|
90257
|
+
"content": {
|
|
90258
|
+
"application/json": {
|
|
90259
|
+
"schema": {
|
|
90260
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
90261
|
+
}
|
|
90262
|
+
}
|
|
90263
|
+
},
|
|
90264
|
+
"description": "The request cannot be used: it is malformed, names an outcome or data point we do not have, or asks for a data point that could show the model the answer. `error` says which and what to use instead."
|
|
90265
|
+
},
|
|
90266
|
+
"401": {
|
|
90267
|
+
"content": {
|
|
90268
|
+
"application/json": {
|
|
90269
|
+
"schema": {
|
|
90270
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
90271
|
+
}
|
|
90272
|
+
}
|
|
90273
|
+
},
|
|
90274
|
+
"description": "`unauthenticated` — sign in, or send a valid credential."
|
|
90275
|
+
},
|
|
90276
|
+
"403": {
|
|
90277
|
+
"content": {
|
|
90278
|
+
"application/json": {
|
|
90279
|
+
"schema": {
|
|
90280
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
90281
|
+
}
|
|
90282
|
+
}
|
|
90283
|
+
},
|
|
90284
|
+
"description": "`no_organization` — models belong to an organization; select one and try again."
|
|
90285
|
+
},
|
|
90286
|
+
"404": {
|
|
90287
|
+
"content": {
|
|
90288
|
+
"application/json": {
|
|
90289
|
+
"schema": {
|
|
90290
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
90291
|
+
}
|
|
90292
|
+
}
|
|
90293
|
+
},
|
|
90294
|
+
"description": "`model_not_found` — your organization has no model of that name."
|
|
90295
|
+
},
|
|
90296
|
+
"409": {
|
|
90297
|
+
"content": {
|
|
90298
|
+
"application/json": {
|
|
90299
|
+
"schema": {
|
|
90300
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
90301
|
+
}
|
|
90302
|
+
}
|
|
90303
|
+
},
|
|
90304
|
+
"description": "`model_exists` — the name is taken (pass `replace: true` for a new version); `model_limit_reached` — your organization is at its limit of models; `model_training_in_progress` — one model runs at a time per organization; `model_not_ready` — the model has no trained version to refresh."
|
|
90305
|
+
},
|
|
90306
|
+
"422": {
|
|
90307
|
+
"content": {
|
|
90308
|
+
"application/json": {
|
|
90309
|
+
"schema": {
|
|
90310
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
90311
|
+
}
|
|
90312
|
+
}
|
|
90313
|
+
},
|
|
90314
|
+
"description": "Your own data cannot support this model as asked: no date column, too few rows or too few of one outcome, every row the same outcome, dates in the future, too few rows matched to homes, or a data point that is the outcome or was recorded after it. `error` states the numbers and what would help."
|
|
90315
|
+
},
|
|
90316
|
+
"429": {
|
|
90317
|
+
"content": {
|
|
90318
|
+
"application/json": {
|
|
90319
|
+
"schema": {
|
|
90320
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
90321
|
+
}
|
|
90322
|
+
}
|
|
90323
|
+
},
|
|
90324
|
+
"description": "`rate_limited` — too many model requests from your organization in the last minute; or `busy` — every training slot is taken. Wait `details.retryAfterSeconds` (also sent as `Retry-After`)."
|
|
90325
|
+
},
|
|
90326
|
+
"503": {
|
|
90327
|
+
"content": {
|
|
90328
|
+
"application/json": {
|
|
90329
|
+
"schema": {
|
|
90330
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
90331
|
+
}
|
|
90332
|
+
}
|
|
90333
|
+
},
|
|
90334
|
+
"description": "`models_unavailable` — training is switched off right now (reading models and querying published scores still work); `studio_unavailable` — try again in a minute. `billing_unavailable` — the model is finished but could not be charged for right now, so it is not published yet; read it again in a minute (it is never charged twice)."
|
|
90335
|
+
}
|
|
90336
|
+
},
|
|
90337
|
+
"summary": "What a prediction model can be built from",
|
|
90338
|
+
"tags": [
|
|
90339
|
+
"Studio"
|
|
90340
|
+
]
|
|
90341
|
+
}
|
|
90342
|
+
},
|
|
90343
|
+
"/v1/studio/models/{name}": {
|
|
88530
90344
|
"delete": {
|
|
88531
|
-
"description": "Delete a
|
|
88532
|
-
"operationId": "
|
|
90345
|
+
"description": "Delete a model: the trained model, its report card and its scores table. The table leaves the catalog at once, and questions and jobs that read it stop working. A run in progress is stopped. This cannot be undone. Free.",
|
|
90346
|
+
"operationId": "deleteStudioModel",
|
|
88533
90347
|
"parameters": [
|
|
88534
90348
|
{
|
|
88535
|
-
"description": "The
|
|
90349
|
+
"description": "The model's name: 3 to 40 lower-case letters, digits and underscores, starting with a letter. Its scores are the table `model_<name>`.",
|
|
88536
90350
|
"in": "path",
|
|
88537
90351
|
"name": "name",
|
|
88538
90352
|
"required": true,
|
|
88539
90353
|
"schema": {
|
|
88540
|
-
"description": "The
|
|
88541
|
-
"example": "
|
|
88542
|
-
"pattern": "^[a-z][a-z0-9_]{
|
|
90354
|
+
"description": "The model's name: 3 to 40 lower-case letters, digits and underscores, starting with a letter. Its scores are the table `model_<name>`.",
|
|
90355
|
+
"example": "refi_watch",
|
|
90356
|
+
"pattern": "^[a-z][a-z0-9_]{2,39}$",
|
|
88543
90357
|
"type": "string"
|
|
88544
90358
|
}
|
|
88545
90359
|
}
|
|
@@ -88549,7 +90363,7 @@
|
|
|
88549
90363
|
"content": {
|
|
88550
90364
|
"application/json": {
|
|
88551
90365
|
"schema": {
|
|
88552
|
-
"$ref": "#/components/schemas/
|
|
90366
|
+
"$ref": "#/components/schemas/StudioModelDeleted"
|
|
88553
90367
|
}
|
|
88554
90368
|
}
|
|
88555
90369
|
},
|
|
@@ -88559,101 +90373,101 @@
|
|
|
88559
90373
|
"content": {
|
|
88560
90374
|
"application/json": {
|
|
88561
90375
|
"schema": {
|
|
88562
|
-
"$ref": "#/components/schemas/
|
|
90376
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
88563
90377
|
}
|
|
88564
90378
|
}
|
|
88565
90379
|
},
|
|
88566
|
-
"description": "The request
|
|
90380
|
+
"description": "The request cannot be used: it is malformed, names an outcome or data point we do not have, or asks for a data point that could show the model the answer. `error` says which and what to use instead."
|
|
88567
90381
|
},
|
|
88568
90382
|
"401": {
|
|
88569
90383
|
"content": {
|
|
88570
90384
|
"application/json": {
|
|
88571
90385
|
"schema": {
|
|
88572
|
-
"$ref": "#/components/schemas/
|
|
90386
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
88573
90387
|
}
|
|
88574
90388
|
}
|
|
88575
90389
|
},
|
|
88576
|
-
"description": "
|
|
90390
|
+
"description": "`unauthenticated` — sign in, or send a valid credential."
|
|
88577
90391
|
},
|
|
88578
90392
|
"403": {
|
|
88579
90393
|
"content": {
|
|
88580
90394
|
"application/json": {
|
|
88581
90395
|
"schema": {
|
|
88582
|
-
"$ref": "#/components/schemas/
|
|
90396
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
88583
90397
|
}
|
|
88584
90398
|
}
|
|
88585
90399
|
},
|
|
88586
|
-
"description": "`no_organization` —
|
|
90400
|
+
"description": "`no_organization` — models belong to an organization; select one and try again."
|
|
88587
90401
|
},
|
|
88588
90402
|
"404": {
|
|
88589
90403
|
"content": {
|
|
88590
90404
|
"application/json": {
|
|
88591
90405
|
"schema": {
|
|
88592
|
-
"$ref": "#/components/schemas/
|
|
90406
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
88593
90407
|
}
|
|
88594
90408
|
}
|
|
88595
90409
|
},
|
|
88596
|
-
"description": "`
|
|
90410
|
+
"description": "`model_not_found` — your organization has no model of that name."
|
|
88597
90411
|
},
|
|
88598
90412
|
"409": {
|
|
88599
90413
|
"content": {
|
|
88600
90414
|
"application/json": {
|
|
88601
90415
|
"schema": {
|
|
88602
|
-
"$ref": "#/components/schemas/
|
|
90416
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
88603
90417
|
}
|
|
88604
90418
|
}
|
|
88605
90419
|
},
|
|
88606
|
-
"description": "`
|
|
90420
|
+
"description": "`model_exists` — the name is taken (pass `replace: true` for a new version); `model_limit_reached` — your organization is at its limit of models; `model_training_in_progress` — one model runs at a time per organization; `model_not_ready` — the model has no trained version to refresh."
|
|
88607
90421
|
},
|
|
88608
90422
|
"422": {
|
|
88609
90423
|
"content": {
|
|
88610
90424
|
"application/json": {
|
|
88611
90425
|
"schema": {
|
|
88612
|
-
"$ref": "#/components/schemas/
|
|
90426
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
88613
90427
|
}
|
|
88614
90428
|
}
|
|
88615
90429
|
},
|
|
88616
|
-
"description": "
|
|
90430
|
+
"description": "Your own data cannot support this model as asked: no date column, too few rows or too few of one outcome, every row the same outcome, dates in the future, too few rows matched to homes, or a data point that is the outcome or was recorded after it. `error` states the numbers and what would help."
|
|
88617
90431
|
},
|
|
88618
90432
|
"429": {
|
|
88619
90433
|
"content": {
|
|
88620
90434
|
"application/json": {
|
|
88621
90435
|
"schema": {
|
|
88622
|
-
"$ref": "#/components/schemas/
|
|
90436
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
88623
90437
|
}
|
|
88624
90438
|
}
|
|
88625
90439
|
},
|
|
88626
|
-
"description": "`rate_limited` — too many requests from your organization in the last minute; or `busy` — every slot is taken
|
|
90440
|
+
"description": "`rate_limited` — too many model requests from your organization in the last minute; or `busy` — every training slot is taken. Wait `details.retryAfterSeconds` (also sent as `Retry-After`)."
|
|
88627
90441
|
},
|
|
88628
90442
|
"503": {
|
|
88629
90443
|
"content": {
|
|
88630
90444
|
"application/json": {
|
|
88631
90445
|
"schema": {
|
|
88632
|
-
"$ref": "#/components/schemas/
|
|
90446
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
88633
90447
|
}
|
|
88634
90448
|
}
|
|
88635
90449
|
},
|
|
88636
|
-
"description": "`studio_unavailable` —
|
|
90450
|
+
"description": "`models_unavailable` — training is switched off right now (reading models and querying published scores still work); `studio_unavailable` — try again in a minute. `billing_unavailable` — the model is finished but could not be charged for right now, so it is not published yet; read it again in a minute (it is never charged twice)."
|
|
88637
90451
|
}
|
|
88638
90452
|
},
|
|
88639
|
-
"summary": "Delete a
|
|
90453
|
+
"summary": "Delete a model, its report card and its scores, permanently",
|
|
88640
90454
|
"tags": [
|
|
88641
90455
|
"Studio"
|
|
88642
90456
|
]
|
|
88643
90457
|
},
|
|
88644
90458
|
"get": {
|
|
88645
|
-
"description": "
|
|
88646
|
-
"operationId": "
|
|
90459
|
+
"description": "The model and, once training has finished, its report card (`card`). Read the card as it is written. It says how many past cases the model learned from and was tested on; the lift (`in the top 10% of the list, X of every 100 had the outcome, against Y at random and Z for the best simple rule`); three checks, each passed or not; how much each chosen data point mattered; how the person's picks compare with using every data point; and the caveats. Never promise accuracy, and never call a score a probability unless `card.calibration.calibrated` is true (then `estimatedChance` is an estimate from past cases). `status: refused` means the model is not dependable enough to publish: `card.refusal.reason` says why and `card.refusal.whatWouldHelp` what to try; a refused model has no scores. When `scores` is not null, query `scores.table` with runStudioQuery: one row per home with `rank`, `percentile`, `score`, `topReason`, and `propertyId` to join to `loans` and `sales`. Reading is free. 50 credits for a model that passes its checks, charged once when it has finished: by the first call that reads it or, if nobody does, on its own within about two hours. A model that is refused or fails is free. 10 credits for refreshed scores, charged once, the same way (a scheduled refresh too). The charge is reported in `credits`.",
|
|
90460
|
+
"operationId": "getStudioModel",
|
|
88647
90461
|
"parameters": [
|
|
88648
90462
|
{
|
|
88649
|
-
"description": "The
|
|
90463
|
+
"description": "The model's name: 3 to 40 lower-case letters, digits and underscores, starting with a letter. Its scores are the table `model_<name>`.",
|
|
88650
90464
|
"in": "path",
|
|
88651
90465
|
"name": "name",
|
|
88652
90466
|
"required": true,
|
|
88653
90467
|
"schema": {
|
|
88654
|
-
"description": "The
|
|
88655
|
-
"example": "
|
|
88656
|
-
"pattern": "^[a-z][a-z0-9_]{
|
|
90468
|
+
"description": "The model's name: 3 to 40 lower-case letters, digits and underscores, starting with a letter. Its scores are the table `model_<name>`.",
|
|
90469
|
+
"example": "refi_watch",
|
|
90470
|
+
"pattern": "^[a-z][a-z0-9_]{2,39}$",
|
|
88657
90471
|
"type": "string"
|
|
88658
90472
|
}
|
|
88659
90473
|
}
|
|
@@ -88663,137 +90477,273 @@
|
|
|
88663
90477
|
"content": {
|
|
88664
90478
|
"application/json": {
|
|
88665
90479
|
"schema": {
|
|
88666
|
-
"$ref": "#/components/schemas/
|
|
90480
|
+
"$ref": "#/components/schemas/StudioModelResult"
|
|
88667
90481
|
}
|
|
88668
90482
|
}
|
|
88669
90483
|
},
|
|
88670
|
-
"description": "The
|
|
90484
|
+
"description": "The model"
|
|
88671
90485
|
},
|
|
88672
90486
|
"400": {
|
|
88673
90487
|
"content": {
|
|
88674
90488
|
"application/json": {
|
|
88675
90489
|
"schema": {
|
|
88676
|
-
"$ref": "#/components/schemas/
|
|
90490
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
88677
90491
|
}
|
|
88678
90492
|
}
|
|
88679
90493
|
},
|
|
88680
|
-
"description": "The request
|
|
90494
|
+
"description": "The request cannot be used: it is malformed, names an outcome or data point we do not have, or asks for a data point that could show the model the answer. `error` says which and what to use instead."
|
|
88681
90495
|
},
|
|
88682
90496
|
"401": {
|
|
88683
90497
|
"content": {
|
|
88684
90498
|
"application/json": {
|
|
88685
90499
|
"schema": {
|
|
88686
|
-
"$ref": "#/components/schemas/
|
|
90500
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
88687
90501
|
}
|
|
88688
90502
|
}
|
|
88689
90503
|
},
|
|
88690
|
-
"description": "
|
|
90504
|
+
"description": "`unauthenticated` — sign in, or send a valid credential."
|
|
90505
|
+
},
|
|
90506
|
+
"402": {
|
|
90507
|
+
"content": {
|
|
90508
|
+
"application/json": {
|
|
90509
|
+
"schema": {
|
|
90510
|
+
"$ref": "#/components/schemas/StudioModelPaymentRequired"
|
|
90511
|
+
}
|
|
90512
|
+
}
|
|
90513
|
+
},
|
|
90514
|
+
"description": "The model finished and is waiting to be published, but your organization does not have the credits for it. Nothing was charged. Add credits and read the model again: it does not need to be trained again."
|
|
88691
90515
|
},
|
|
88692
90516
|
"403": {
|
|
88693
90517
|
"content": {
|
|
88694
90518
|
"application/json": {
|
|
88695
90519
|
"schema": {
|
|
88696
|
-
"$ref": "#/components/schemas/
|
|
90520
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
88697
90521
|
}
|
|
88698
90522
|
}
|
|
88699
90523
|
},
|
|
88700
|
-
"description": "`no_organization` —
|
|
90524
|
+
"description": "`no_organization` — models belong to an organization; select one and try again."
|
|
88701
90525
|
},
|
|
88702
90526
|
"404": {
|
|
88703
90527
|
"content": {
|
|
88704
90528
|
"application/json": {
|
|
88705
90529
|
"schema": {
|
|
88706
|
-
"$ref": "#/components/schemas/
|
|
90530
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
88707
90531
|
}
|
|
88708
90532
|
}
|
|
88709
90533
|
},
|
|
88710
|
-
"description": "`
|
|
90534
|
+
"description": "`model_not_found` — your organization has no model of that name."
|
|
88711
90535
|
},
|
|
88712
90536
|
"409": {
|
|
88713
90537
|
"content": {
|
|
88714
90538
|
"application/json": {
|
|
88715
90539
|
"schema": {
|
|
88716
|
-
"$ref": "#/components/schemas/
|
|
90540
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
88717
90541
|
}
|
|
88718
90542
|
}
|
|
88719
90543
|
},
|
|
88720
|
-
"description": "`
|
|
90544
|
+
"description": "`model_exists` — the name is taken (pass `replace: true` for a new version); `model_limit_reached` — your organization is at its limit of models; `model_training_in_progress` — one model runs at a time per organization; `model_not_ready` — the model has no trained version to refresh."
|
|
88721
90545
|
},
|
|
88722
90546
|
"422": {
|
|
88723
90547
|
"content": {
|
|
88724
90548
|
"application/json": {
|
|
88725
90549
|
"schema": {
|
|
88726
|
-
"$ref": "#/components/schemas/
|
|
90550
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
88727
90551
|
}
|
|
88728
90552
|
}
|
|
88729
90553
|
},
|
|
88730
|
-
"description": "
|
|
90554
|
+
"description": "Your own data cannot support this model as asked: no date column, too few rows or too few of one outcome, every row the same outcome, dates in the future, too few rows matched to homes, or a data point that is the outcome or was recorded after it. `error` states the numbers and what would help."
|
|
88731
90555
|
},
|
|
88732
90556
|
"429": {
|
|
88733
90557
|
"content": {
|
|
88734
90558
|
"application/json": {
|
|
88735
90559
|
"schema": {
|
|
88736
|
-
"$ref": "#/components/schemas/
|
|
90560
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
88737
90561
|
}
|
|
88738
90562
|
}
|
|
88739
90563
|
},
|
|
88740
|
-
"description": "`rate_limited` — too many requests from your organization in the last minute; or `busy` — every slot is taken
|
|
90564
|
+
"description": "`rate_limited` — too many model requests from your organization in the last minute; or `busy` — every training slot is taken. Wait `details.retryAfterSeconds` (also sent as `Retry-After`)."
|
|
88741
90565
|
},
|
|
88742
90566
|
"503": {
|
|
88743
90567
|
"content": {
|
|
88744
90568
|
"application/json": {
|
|
88745
90569
|
"schema": {
|
|
88746
|
-
"$ref": "#/components/schemas/
|
|
90570
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
88747
90571
|
}
|
|
88748
90572
|
}
|
|
88749
90573
|
},
|
|
88750
|
-
"description": "`studio_unavailable` —
|
|
90574
|
+
"description": "`models_unavailable` — training is switched off right now (reading models and querying published scores still work); `studio_unavailable` — try again in a minute. `billing_unavailable` — the model is finished but could not be charged for right now, so it is not published yet; read it again in a minute (it is never charged twice)."
|
|
88751
90575
|
}
|
|
88752
90576
|
},
|
|
88753
|
-
"summary": "
|
|
90577
|
+
"summary": "A model: its status and its report card",
|
|
88754
90578
|
"tags": [
|
|
88755
90579
|
"Studio"
|
|
88756
90580
|
]
|
|
88757
90581
|
}
|
|
88758
90582
|
},
|
|
88759
|
-
"/v1/studio/
|
|
90583
|
+
"/v1/studio/models/{name}/refresh": {
|
|
88760
90584
|
"post": {
|
|
88761
|
-
"description": "
|
|
88762
|
-
"operationId": "
|
|
90585
|
+
"description": "Score the model's population again as of today, with the trained model as it is. The current scores stay queryable until the new ones are ready; read the model with getStudioModel to see when (`refresh` goes back to null and `scores.asOf` moves). Pass `retrain: true` to also train it again on the latest data (the same data points, a fresh report card; if it no longer passes its checks it becomes `refused` and its scores are taken down). A model with a `weekly` or `monthly` schedule is refreshed on its own. 10 credits for refreshed scores, charged once, the same way (a scheduled refresh too). 50 credits for a model that passes its checks, charged once when it has finished: by the first call that reads it or, if nobody does, on its own within about two hours. A model that is refused or fails is free.",
|
|
90586
|
+
"operationId": "refreshStudioModel",
|
|
88763
90587
|
"parameters": [
|
|
88764
90588
|
{
|
|
88765
|
-
"description": "The
|
|
90589
|
+
"description": "The model's name: 3 to 40 lower-case letters, digits and underscores, starting with a letter. Its scores are the table `model_<name>`.",
|
|
88766
90590
|
"in": "path",
|
|
88767
90591
|
"name": "name",
|
|
88768
90592
|
"required": true,
|
|
88769
90593
|
"schema": {
|
|
88770
|
-
"description": "The
|
|
88771
|
-
"example": "
|
|
88772
|
-
"pattern": "^[a-z][a-z0-9_]{
|
|
90594
|
+
"description": "The model's name: 3 to 40 lower-case letters, digits and underscores, starting with a letter. Its scores are the table `model_<name>`.",
|
|
90595
|
+
"example": "refi_watch",
|
|
90596
|
+
"pattern": "^[a-z][a-z0-9_]{2,39}$",
|
|
88773
90597
|
"type": "string"
|
|
88774
90598
|
}
|
|
88775
90599
|
}
|
|
88776
90600
|
],
|
|
90601
|
+
"requestBody": {
|
|
90602
|
+
"content": {
|
|
90603
|
+
"application/json": {
|
|
90604
|
+
"schema": {
|
|
90605
|
+
"$ref": "#/components/schemas/StudioModelRefresh"
|
|
90606
|
+
}
|
|
90607
|
+
}
|
|
90608
|
+
},
|
|
90609
|
+
"required": false
|
|
90610
|
+
},
|
|
88777
90611
|
"responses": {
|
|
88778
|
-
"
|
|
90612
|
+
"202": {
|
|
88779
90613
|
"content": {
|
|
88780
90614
|
"application/json": {
|
|
88781
90615
|
"schema": {
|
|
88782
|
-
"$ref": "#/components/schemas/
|
|
90616
|
+
"$ref": "#/components/schemas/StudioModelResult"
|
|
88783
90617
|
}
|
|
88784
90618
|
}
|
|
88785
90619
|
},
|
|
88786
|
-
"description": "The
|
|
90620
|
+
"description": "The refresh has started"
|
|
88787
90621
|
},
|
|
88788
|
-
"
|
|
90622
|
+
"400": {
|
|
88789
90623
|
"content": {
|
|
88790
90624
|
"application/json": {
|
|
88791
90625
|
"schema": {
|
|
88792
|
-
"$ref": "#/components/schemas/
|
|
90626
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
88793
90627
|
}
|
|
88794
90628
|
}
|
|
88795
90629
|
},
|
|
88796
|
-
"description": "The
|
|
90630
|
+
"description": "The request cannot be used: it is malformed, names an outcome or data point we do not have, or asks for a data point that could show the model the answer. `error` says which and what to use instead."
|
|
90631
|
+
},
|
|
90632
|
+
"401": {
|
|
90633
|
+
"content": {
|
|
90634
|
+
"application/json": {
|
|
90635
|
+
"schema": {
|
|
90636
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
90637
|
+
}
|
|
90638
|
+
}
|
|
90639
|
+
},
|
|
90640
|
+
"description": "`unauthenticated` — sign in, or send a valid credential."
|
|
90641
|
+
},
|
|
90642
|
+
"402": {
|
|
90643
|
+
"content": {
|
|
90644
|
+
"application/json": {
|
|
90645
|
+
"schema": {
|
|
90646
|
+
"$ref": "#/components/schemas/StudioModelPaymentRequired"
|
|
90647
|
+
}
|
|
90648
|
+
}
|
|
90649
|
+
},
|
|
90650
|
+
"description": "The model finished and is waiting to be published, but your organization does not have the credits for it. Nothing was charged. Add credits and read the model again: it does not need to be trained again."
|
|
90651
|
+
},
|
|
90652
|
+
"403": {
|
|
90653
|
+
"content": {
|
|
90654
|
+
"application/json": {
|
|
90655
|
+
"schema": {
|
|
90656
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
90657
|
+
}
|
|
90658
|
+
}
|
|
90659
|
+
},
|
|
90660
|
+
"description": "`no_organization` — models belong to an organization; select one and try again."
|
|
90661
|
+
},
|
|
90662
|
+
"404": {
|
|
90663
|
+
"content": {
|
|
90664
|
+
"application/json": {
|
|
90665
|
+
"schema": {
|
|
90666
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
90667
|
+
}
|
|
90668
|
+
}
|
|
90669
|
+
},
|
|
90670
|
+
"description": "`model_not_found` — your organization has no model of that name."
|
|
90671
|
+
},
|
|
90672
|
+
"409": {
|
|
90673
|
+
"content": {
|
|
90674
|
+
"application/json": {
|
|
90675
|
+
"schema": {
|
|
90676
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
90677
|
+
}
|
|
90678
|
+
}
|
|
90679
|
+
},
|
|
90680
|
+
"description": "`model_exists` — the name is taken (pass `replace: true` for a new version); `model_limit_reached` — your organization is at its limit of models; `model_training_in_progress` — one model runs at a time per organization; `model_not_ready` — the model has no trained version to refresh."
|
|
90681
|
+
},
|
|
90682
|
+
"422": {
|
|
90683
|
+
"content": {
|
|
90684
|
+
"application/json": {
|
|
90685
|
+
"schema": {
|
|
90686
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
90687
|
+
}
|
|
90688
|
+
}
|
|
90689
|
+
},
|
|
90690
|
+
"description": "Your own data cannot support this model as asked: no date column, too few rows or too few of one outcome, every row the same outcome, dates in the future, too few rows matched to homes, or a data point that is the outcome or was recorded after it. `error` states the numbers and what would help."
|
|
90691
|
+
},
|
|
90692
|
+
"429": {
|
|
90693
|
+
"content": {
|
|
90694
|
+
"application/json": {
|
|
90695
|
+
"schema": {
|
|
90696
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
90697
|
+
}
|
|
90698
|
+
}
|
|
90699
|
+
},
|
|
90700
|
+
"description": "`rate_limited` — too many model requests from your organization in the last minute; or `busy` — every training slot is taken. Wait `details.retryAfterSeconds` (also sent as `Retry-After`)."
|
|
90701
|
+
},
|
|
90702
|
+
"503": {
|
|
90703
|
+
"content": {
|
|
90704
|
+
"application/json": {
|
|
90705
|
+
"schema": {
|
|
90706
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
90707
|
+
}
|
|
90708
|
+
}
|
|
90709
|
+
},
|
|
90710
|
+
"description": "`models_unavailable` — training is switched off right now (reading models and querying published scores still work); `studio_unavailable` — try again in a minute. `billing_unavailable` — the model is finished but could not be charged for right now, so it is not published yet; read it again in a minute (it is never charged twice)."
|
|
90711
|
+
}
|
|
90712
|
+
},
|
|
90713
|
+
"summary": "Refresh a model's scores with the latest data",
|
|
90714
|
+
"tags": [
|
|
90715
|
+
"Studio"
|
|
90716
|
+
]
|
|
90717
|
+
}
|
|
90718
|
+
},
|
|
90719
|
+
"/v1/studio/queries/{queryId}": {
|
|
90720
|
+
"get": {
|
|
90721
|
+
"description": "What became of a question `runStudioQuery` answered `202` for. `running`: wait `pollAfterSeconds` and fetch again — after a few tries, tell the user it is still running and can be checked later. `succeeded`: the same answer a quick question gets (`columns`, `rows`, `rowCount`, `truncated`, `elapsedMs`), kept for an hour. `failed`: `error` and `code`, as the question itself would have been refused or stopped. `expired`: the answer is no longer kept. Fetching is free. A question that succeeded in the background costs 5 credits once, whether or not its result is fetched: `credits.pending` on the result says what your organization is charged for it. Only the organization that asked can fetch a result.",
|
|
90722
|
+
"operationId": "getStudioQueryResult",
|
|
90723
|
+
"parameters": [
|
|
90724
|
+
{
|
|
90725
|
+
"description": "The `queryId` a `202` from `runStudioQuery` returned.",
|
|
90726
|
+
"in": "path",
|
|
90727
|
+
"name": "queryId",
|
|
90728
|
+
"required": true,
|
|
90729
|
+
"schema": {
|
|
90730
|
+
"description": "The `queryId` a `202` from `runStudioQuery` returned.",
|
|
90731
|
+
"example": "q_3f9a1c0b7d2e4a6f8b1c0d2e",
|
|
90732
|
+
"pattern": "^q_[0-9a-f]{24}$",
|
|
90733
|
+
"type": "string"
|
|
90734
|
+
}
|
|
90735
|
+
}
|
|
90736
|
+
],
|
|
90737
|
+
"responses": {
|
|
90738
|
+
"200": {
|
|
90739
|
+
"content": {
|
|
90740
|
+
"application/json": {
|
|
90741
|
+
"schema": {
|
|
90742
|
+
"$ref": "#/components/schemas/StudioQueryResultState"
|
|
90743
|
+
}
|
|
90744
|
+
}
|
|
90745
|
+
},
|
|
90746
|
+
"description": "The question's state, and its answer once it has one"
|
|
88797
90747
|
},
|
|
88798
90748
|
"400": {
|
|
88799
90749
|
"content": {
|
|
@@ -88833,7 +90783,7 @@
|
|
|
88833
90783
|
}
|
|
88834
90784
|
}
|
|
88835
90785
|
},
|
|
88836
|
-
"description": "`job_not_found` — your organization has no job of that name."
|
|
90786
|
+
"description": "`job_not_found` — your organization has no job of that name. `query_not_found` — your organization has no background question of that id."
|
|
88837
90787
|
},
|
|
88838
90788
|
"409": {
|
|
88839
90789
|
"content": {
|
|
@@ -88849,11 +90799,11 @@
|
|
|
88849
90799
|
"content": {
|
|
88850
90800
|
"application/json": {
|
|
88851
90801
|
"schema": {
|
|
88852
|
-
"$ref": "#/components/schemas/
|
|
90802
|
+
"$ref": "#/components/schemas/StudioError"
|
|
88853
90803
|
}
|
|
88854
90804
|
}
|
|
88855
90805
|
},
|
|
88856
|
-
"description": "`
|
|
90806
|
+
"description": "The SQL is valid but asks for more than one answer may cost: `timeout` (it ran for its whole time, in the background included, and was stopped — narrow it by state or date; or it could not carry on in the background because another question of your organization already is), `result_too_large`, `resource_limit`. For a job run, `job_failed`."
|
|
88857
90807
|
},
|
|
88858
90808
|
"429": {
|
|
88859
90809
|
"content": {
|
|
@@ -88876,7 +90826,7 @@
|
|
|
88876
90826
|
"description": "`studio_unavailable` — Studio is not available right now."
|
|
88877
90827
|
}
|
|
88878
90828
|
},
|
|
88879
|
-
"summary": "
|
|
90829
|
+
"summary": "The result of a question that ran in the background",
|
|
88880
90830
|
"tags": [
|
|
88881
90831
|
"Studio"
|
|
88882
90832
|
]
|
|
@@ -88884,7 +90834,7 @@
|
|
|
88884
90834
|
},
|
|
88885
90835
|
"/v1/studio/query": {
|
|
88886
90836
|
"post": {
|
|
88887
|
-
"description": "Run one read-only SQL SELECT over the tables in the catalog and get the rows back. Use it for questions the list and analytics routes cannot answer in one call: a ranking across every company or agent in a market, a join between loans and sales, a custom roll-up. The data is stored by state: filter by `state` (and a date range) whenever the question allows, and aggregate in SQL instead of fetching rows. `rows` carries up to `limit` rows (default 200, at most 1000); `rowCount` is always the full count and `truncated` says when there are more. A question that
|
|
90837
|
+
"description": "Run one read-only SQL SELECT over the tables in the catalog and get the rows back. Use it for questions the list and analytics routes cannot answer in one call: a ranking across every company or agent in a market, a join between loans and sales, a custom roll-up. The data is stored by state: filter by `state` (and a date range) whenever the question allows, and aggregate in SQL instead of fetching rows. `rows` carries up to `limit` rows (default 200, at most 1000); `rowCount` is always the full count and `truncated` says when there are more. A quick question is answered here (`200`). One that is still running after about twelve seconds is NOT stopped: this call answers `202` with `status: \"running\"` and a `queryId`, the question carries on in the background for up to five minutes, and `getStudioQueryResult` returns its answer. A `202` is not a failure — do not ask the question again (that starts a second run) and do not rewrite it; wait `pollAfterSeconds` and fetch the result. One question per organization runs in the background at a time. Only tables in the catalog can be read; nothing can be written. 5 credits per answered question, charged once whether it was answered here or in the background; a refused or failed question is free. `credits` in the answer says what this question was charged and how many credits are left; on `202`, `credits.pending` is what will be charged if the question succeeds.",
|
|
88888
90838
|
"operationId": "runStudioQuery",
|
|
88889
90839
|
"requestBody": {
|
|
88890
90840
|
"content": {
|
|
@@ -88907,6 +90857,16 @@
|
|
|
88907
90857
|
},
|
|
88908
90858
|
"description": "The answer"
|
|
88909
90859
|
},
|
|
90860
|
+
"202": {
|
|
90861
|
+
"content": {
|
|
90862
|
+
"application/json": {
|
|
90863
|
+
"schema": {
|
|
90864
|
+
"$ref": "#/components/schemas/StudioQueryRunning"
|
|
90865
|
+
}
|
|
90866
|
+
}
|
|
90867
|
+
},
|
|
90868
|
+
"description": "Still running in the background: fetch the result with `getStudioQueryResult`"
|
|
90869
|
+
},
|
|
88910
90870
|
"400": {
|
|
88911
90871
|
"content": {
|
|
88912
90872
|
"application/json": {
|
|
@@ -88945,7 +90905,7 @@
|
|
|
88945
90905
|
}
|
|
88946
90906
|
}
|
|
88947
90907
|
},
|
|
88948
|
-
"description": "`job_not_found` — your organization has no job of that name."
|
|
90908
|
+
"description": "`job_not_found` — your organization has no job of that name. `query_not_found` — your organization has no background question of that id."
|
|
88949
90909
|
},
|
|
88950
90910
|
"409": {
|
|
88951
90911
|
"content": {
|
|
@@ -88965,7 +90925,7 @@
|
|
|
88965
90925
|
}
|
|
88966
90926
|
}
|
|
88967
90927
|
},
|
|
88968
|
-
"description": "The SQL is valid but asks for more than one answer may cost: `timeout` (it ran
|
|
90928
|
+
"description": "The SQL is valid but asks for more than one answer may cost: `timeout` (it ran for its whole time, in the background included, and was stopped — narrow it by state or date; or it could not carry on in the background because another question of your organization already is), `result_too_large`, `resource_limit`. For a job run, `job_failed`."
|
|
88969
90929
|
},
|
|
88970
90930
|
"429": {
|
|
88971
90931
|
"content": {
|