|
| 1 | +interactions: |
| 2 | +- request: |
| 3 | + body: grant_type=client_credentials |
| 4 | + headers: |
| 5 | + Accept: |
| 6 | + - '*/*' |
| 7 | + Accept-Encoding: |
| 8 | + - gzip, deflate |
| 9 | + Connection: |
| 10 | + - keep-alive |
| 11 | + Content-Length: |
| 12 | + - '29' |
| 13 | + Content-Type: |
| 14 | + - application/x-www-form-urlencoded |
| 15 | + User-Agent: |
| 16 | + - mati-python/0.3.2.dev10 |
| 17 | + method: POST |
| 18 | + uri: https://api.getmati.com/oauth |
| 19 | + response: |
| 20 | + body: |
| 21 | + string: '{"access_token": "ACCESS_TOKEN", "expiresIn": 3600, "payload": {"user": |
| 22 | + {"_id": "ID", "firstName": "FIRST_NAME", "lastName": "LAST_NAME"}}}' |
| 23 | + headers: |
| 24 | + Cache-Control: |
| 25 | + - no-store, no-cache, must-revalidate, proxy-revalidate |
| 26 | + Connection: |
| 27 | + - keep-alive |
| 28 | + Content-Length: |
| 29 | + - '641' |
| 30 | + Content-Security-Policy: |
| 31 | + - 'default-src ''self'';base-uri ''self'';block-all-mixed-content;font-src ''self'' |
| 32 | + https: data:;frame-ancestors ''self'';img-src ''self'' data:;object-src ''none'';script-src |
| 33 | + ''self'';script-src-attr ''none'';style-src ''self'' https: ''unsafe-inline'';upgrade-insecure-requests' |
| 34 | + Content-Type: |
| 35 | + - application/json; charset=utf-8 |
| 36 | + Date: |
| 37 | + - Thu, 03 Mar 2022 23:34:57 GMT |
| 38 | + Expect-Ct: |
| 39 | + - max-age=0 |
| 40 | + Expires: |
| 41 | + - '0' |
| 42 | + Pragma: |
| 43 | + - no-cache |
| 44 | + Referrer-Policy: |
| 45 | + - no-referrer |
| 46 | + Strict-Transport-Security: |
| 47 | + - max-age=15552000; includeSubDomains; preload |
| 48 | + Surrogate-Control: |
| 49 | + - no-store |
| 50 | + X-Content-Type-Options: |
| 51 | + - nosniff |
| 52 | + X-Dns-Prefetch-Control: |
| 53 | + - 'off' |
| 54 | + X-Download-Options: |
| 55 | + - noopen |
| 56 | + X-Frame-Options: |
| 57 | + - DENY |
| 58 | + X-Permitted-Cross-Domain-Policies: |
| 59 | + - none |
| 60 | + X-Request-Id: |
| 61 | + - e4d9d346-1dd9-4796-82ed-1a315d26a088 |
| 62 | + X-Xss-Protection: |
| 63 | + - '1' |
| 64 | + status: |
| 65 | + code: 200 |
| 66 | + message: OK |
| 67 | +- request: |
| 68 | + body: null |
| 69 | + headers: |
| 70 | + Accept: |
| 71 | + - '*/*' |
| 72 | + Accept-Encoding: |
| 73 | + - gzip, deflate |
| 74 | + Connection: |
| 75 | + - keep-alive |
| 76 | + User-Agent: |
| 77 | + - mati-python/0.3.2.dev10 |
| 78 | + method: GET |
| 79 | + uri: https://api.getmati.com/v2/verifications/621faa3869ef6d001cf439c7 |
| 80 | + response: |
| 81 | + body: |
| 82 | + string: '{"expired": false, "identity": {"status": "verified"}, "flow": {"id": |
| 83 | + "some_flow", "name": "Default flow"}, "documents": [{"country": "MX", "region": |
| 84 | + "", "type": "national-id", "photos": ["https://media.getmati.com/media/xxx", |
| 85 | + "https://media.getmati.com/media/yyy"], "steps": [{"error": null, "status": |
| 86 | + 200, "id": "template-matching"}, {"error": null, "status": 200, "id": "mexican-curp-validation", |
| 87 | + "data": {"curp": "CURP", "fullName": "LAST FIRST", "birthDate": "01/01/1980", |
| 88 | + "gender": "HOMBRE", "nationality": "MEXICO", "surname": "LAST", "secondSurname": |
| 89 | + "", "name": "FIRST"}}, {"error": null, "status": 200, "id": "document-reading", |
| 90 | + "data": {"fullName": {"value": "FIRST LAST", "label": "Name", "sensitive": |
| 91 | + true}, "documentNumber": {"value": "111", "label": "Document Number"}, "dateOfBirth": |
| 92 | + {"value": "1980-01-01", "label": "Day of Birth", "format": "date"}, "expirationDate": |
| 93 | + {"value": "2030-12-31", "label": "Date of Expiration", "format": "date"}, |
| 94 | + "curp": {"value": "CURP", "label": "CURP"}, "address": {"value": "Varsovia |
| 95 | + 36, 06600 CDMX", "label": "Address"}, "emissionDate": {"value": "2010-01-01", |
| 96 | + "label": "Emission Date", "format": "date"}}}, {"error": null, "status": 200, |
| 97 | + "id": "alteration-detection"}, {"error": null, "status": 200, "id": "watchlists"}], |
| 98 | + "fields": {"fullName": {"value": "FIRST LAST", "label": "Name", "sensitive": |
| 99 | + true}, "documentNumber": {"value": "111", "label": "Document Number"}, "dateOfBirth": |
| 100 | + {"value": "1980-01-01", "label": "Day of Birth", "format": "date"}, "expirationDate": |
| 101 | + {"value": "2030-12-31", "label": "Date of Expiration", "format": "date"}, |
| 102 | + "curp": {"value": "CURP", "label": "CURP"}, "address": {"value": "Varsovia |
| 103 | + 36, 06600 CDMX", "label": "Address"}, "emissionDate": {"value": "2010-01-01", |
| 104 | + "label": "Emission Date", "format": "date"}}}, {"country": "MX", "region": |
| 105 | + null, "type": "proof-of-residency", "steps": [{"status": 200, "id": "document-reading", |
| 106 | + "data": {"fullName": {"required": true, "label": "Name", "value": "FIRST NAME"}, |
| 107 | + "address": {"label": "Address", "value": "Varsovia 36, 06600 CDMX"}, "emissionDate": |
| 108 | + {"format": "date", "label": "Emission Date", "value": "1880-01-01"}}, "error": |
| 109 | + null}, {"status": 200, "id": "watchlists", "error": null}], "fields": {"address": |
| 110 | + {"value": "Varsovia 36, 06600 CDMX"}, "emissionDate": {"value": "1880-01-01"}, |
| 111 | + "fullName": {"value": "FIRST LASTNAME"}}, "photos": ["https://media.getmati.com/file?location=xyc"]}], |
| 112 | + "steps": [{"status": 200, "id": "liveness", "data": {"videoUrl": "https://media.getmati.com/file?location=abc", |
| 113 | + "spriteUrl": "https://media.getmati.com/file?location=def", "selfieUrl": "https://media.getmati.com/file?location=hij"}, |
| 114 | + "error": null}], "hasProblem": false, "computed": {"age": {"data": 100}, "isDocumentExpired": |
| 115 | + {"data": {"national-id": false, "proof-of-residency": false}}}, "id": "5d9fb1f5bfbfac001a349bfb", |
| 116 | + "metadata": {"name": "First Last", "dob": "1980-01-01"}}' |
| 117 | + headers: |
| 118 | + Cache-Control: |
| 119 | + - no-store, no-cache, must-revalidate, proxy-revalidate |
| 120 | + Connection: |
| 121 | + - keep-alive |
| 122 | + Content-Length: |
| 123 | + - '6082' |
| 124 | + Content-Security-Policy: |
| 125 | + - 'default-src ''self'';base-uri ''self'';block-all-mixed-content;font-src ''self'' |
| 126 | + https: data:;frame-ancestors ''self'';img-src ''self'' data:;object-src ''none'';script-src |
| 127 | + ''self'';script-src-attr ''none'';style-src ''self'' https: ''unsafe-inline'';upgrade-insecure-requests' |
| 128 | + Content-Type: |
| 129 | + - application/json; charset=utf-8 |
| 130 | + Date: |
| 131 | + - Thu, 03 Mar 2022 23:34:57 GMT |
| 132 | + Expect-Ct: |
| 133 | + - max-age=0 |
| 134 | + Expires: |
| 135 | + - '0' |
| 136 | + Pragma: |
| 137 | + - no-cache |
| 138 | + Referrer-Policy: |
| 139 | + - no-referrer |
| 140 | + Strict-Transport-Security: |
| 141 | + - max-age=15552000; includeSubDomains; preload |
| 142 | + Surrogate-Control: |
| 143 | + - no-store |
| 144 | + X-Content-Type-Options: |
| 145 | + - nosniff |
| 146 | + X-Dns-Prefetch-Control: |
| 147 | + - 'off' |
| 148 | + X-Download-Options: |
| 149 | + - noopen |
| 150 | + X-Frame-Options: |
| 151 | + - DENY |
| 152 | + X-Permitted-Cross-Domain-Policies: |
| 153 | + - none |
| 154 | + X-Request-Id: |
| 155 | + - 5142ba42-76d9-49b7-9f24-bca55a16c53f |
| 156 | + X-Xss-Protection: |
| 157 | + - '1' |
| 158 | + status: |
| 159 | + code: 200 |
| 160 | + message: OK |
| 161 | +version: 1 |
0 commit comments