{ "uuid": "cefd64c2-717d-4037-9492-ed5603462eb5", "lastMigration": 29, "name": "Numbers API", "endpointPrefix": "", "latency": 0, "port": 3000, "hostname": "", "routes": [ { "uuid": "c0e5c66d-73bb-40f1-904a-14bbe868b124", "documentation": "List the numbers you own", "method": "get", "endpoint": "account/numbers", "responses": [ { "uuid": "35900fa4-c2c2-4159-b857-b6dec34aa6fc", "body": "{\n \"count\": 1,\n \"numbers\": [\n {\n \"country\": \"GB\",\n \"features\": [\n \"VOICE\",\n \"SMS\",\n \"MMS\"\n ],\n \"messagesCallbackType\": \"app\",\n \"messagesCallbackValue\": \"aaaaaaaa-bbbb-cccc-dddd-0123456789ab\",\n \"moHttpUrl\": \"https://example.com/webhooks/inbound-sms\",\n \"msisdn\": \"447700900000\",\n \"type\": \"mobile-lvn\",\n \"voiceCallbackType\": \"app\",\n \"voiceCallbackValue\": \"aaaaaaaa-bbbb-cccc-dddd-0123456789ab\"\n }\n ]\n}", "latency": 0, "statusCode": 200, "label": "OK", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "8cfc4d60-ce48-45b0-a538-b1e72f9ec867", "body": "{\n \"error-code\": \"401\",\n \"error-code-label\": \"authentication failed\"\n}", "latency": 0, "statusCode": 401, "label": "Unauthorized", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "ce5f1c22-2f8c-400c-b7e9-6982a2c81dca", "documentation": "Buy a number", "method": "post", "endpoint": "number/buy", "responses": [ { "uuid": "6b0b3bd3-a080-4254-8ce2-da6d88ff227a", "body": "{\n \"error-code\": \"200\",\n \"error-code-label\": \"success\"\n}", "latency": 0, "statusCode": 200, "label": "OK", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "66d2549d-4e0d-4b13-afb6-d20473ffbdba", "body": "{\n \"error-code\": \"401\",\n \"error-code-label\": \"authentication failed\"\n}", "latency": 0, "statusCode": 401, "label": "Unauthorized", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "0179037b-6de3-4e45-b0d3-f5628c990cb4", "body": "{\n \"error-code\": \"420\",\n \"error-code-label\": \"Numbers from this country can be requested from the Dashboard (https://dashboard.nexmo.com/buy-numbers) as they require a valid local address to be provided before being purchased.\"\n}", "latency": 0, "statusCode": 420, "label": "Action failed", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "f2f75b8a-eb22-4413-9771-41f3f1f21b95", "documentation": "Cancel a number", "method": "post", "endpoint": "number/cancel", "responses": [ { "uuid": "1bfb4c6d-9fa9-494e-a1a2-761fc74d0f20", "body": "{\n \"error-code\": \"200\",\n \"error-code-label\": \"success\"\n}", "latency": 0, "statusCode": 200, "label": "OK", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "523d1fc5-14ff-4bc6-8109-60179e92e6c0", "body": "{\n \"error-code\": \"401\",\n \"error-code-label\": \"authentication failed\"\n}", "latency": 0, "statusCode": 401, "label": "Unauthorized", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "681b00f0-9454-4705-b832-e0263ce23d83", "documentation": "Search available numbers", "method": "get", "endpoint": "number/search", "responses": [ { "uuid": "c51689d9-3bd4-4846-b73e-787097f01dbc", "body": "{\n \"count\": 1234,\n \"numbers\": [\n {\n \"cost\": \"1.25\",\n \"country\": \"GB\",\n \"features\": [\n \"VOICE\",\n \"SMS\",\n \"MMS\"\n ],\n \"msisdn\": \"447700900000\",\n \"type\": \"mobile-lvn\"\n }\n ]\n}", "latency": 0, "statusCode": 200, "label": "OK", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "a3dd34f9-a73c-4245-90dd-dddcef8da9fb", "body": "{\n \"error-code\": \"401\",\n \"error-code-label\": \"authentication failed\"\n}", "latency": 0, "statusCode": 401, "label": "Unauthorized", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "7b5792c3-52b1-4427-a7cd-102241f2312c", "documentation": "Update a number", "method": "post", "endpoint": "number/update", "responses": [ { "uuid": "3644451b-2570-4a02-aed4-13f9f3626d1d", "body": "{\n \"error-code\": \"200\",\n \"error-code-label\": \"success\"\n}", "latency": 0, "statusCode": 200, "label": "OK", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "5cf06cf0-4701-4a88-84d3-f5a26ed63a3f", "body": "{\n \"error-code\": \"401\",\n \"error-code-label\": \"authentication failed\"\n}", "latency": 0, "statusCode": 401, "label": "Unauthorized", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" } ], "proxyMode": false, "proxyHost": "", "proxyRemovePrefix": false, "tlsOptions": { "enabled": false, "type": "CERT", "pfxPath": "", "certPath": "", "keyPath": "", "caPath": "", "passphrase": "" }, "cors": true, "headers": [], "proxyReqHeaders": [{ "key": "", "value": "" }], "proxyResHeaders": [{ "key": "", "value": "" }], "data": [], "folders": [], "rootChildren": [ { "type": "route", "uuid": "c0e5c66d-73bb-40f1-904a-14bbe868b124" }, { "type": "route", "uuid": "ce5f1c22-2f8c-400c-b7e9-6982a2c81dca" }, { "type": "route", "uuid": "f2f75b8a-eb22-4413-9771-41f3f1f21b95" }, { "type": "route", "uuid": "681b00f0-9454-4705-b832-e0263ce23d83" }, { "type": "route", "uuid": "7b5792c3-52b1-4427-a7cd-102241f2312c" } ] }