{ "uuid": "53d6ce00-faeb-4c6e-a871-d87577c931d7", "lastMigration": 29, "name": "Lead API", "endpointPrefix": "", "latency": 0, "port": 3000, "hostname": "", "routes": [ { "uuid": "e35c8bde-c7a2-4e9d-b17e-128aea7b268f", "documentation": "List leads", "method": "get", "endpoint": "lead/leads", "responses": [ { "uuid": "6ad46c44-a765-4a46-8e2b-4ff7faf5703f", "body": "{\n \"data\": [\n {\n \"addresses\": [\n {\n \"city\": \"San Francisco\",\n \"contact_name\": \"Elon Musk\",\n \"country\": \"US\",\n \"county\": \"Santa Clara\",\n \"email\": \"elon@musk.com\",\n \"fax\": \"122-111-1111\",\n \"id\": \"123\",\n \"latitude\": \"40.759211\",\n \"line1\": \"Main street\",\n \"line2\": \"apt #\",\n \"line3\": \"Suite #\",\n \"line4\": \"delivery instructions\",\n \"longitude\": \"-73.984638\",\n \"name\": \"HQ US\",\n \"phone_number\": \"111-111-1111\",\n \"postal_code\": \"94104\",\n \"row_version\": \"1-12345\",\n \"salutation\": \"Mr\",\n \"state\": \"CA\",\n \"street_number\": \"25\",\n \"string\": \"25 Spring Street, Blackburn, VIC 3130\",\n \"type\": \"{{oneOf (array 'primary' 'secondary' 'home' 'office' 'shipping' 'billing' 'other')}}\",\n \"website\": \"https://elonmusk.com\"\n }\n ],\n \"company_id\": \"2\",\n \"company_name\": \"Spacex\",\n \"contact_id\": \"2\",\n \"created_at\": \"2020-09-30T07:43:32.000Z\",\n \"currency\": \"{{oneOf (array 'UNKNOWN_CURRENCY' 'AED' 'AFN' 'ALL' 'AMD' 'ANG' 'AOA' 'ARS' 'AUD' 'AWG' 'AZN' 'BAM' 'BBD' 'BDT' 'BGN' 'BHD' 'BIF' 'BMD' 'BND' 'BOB' 'BOV' 'BRL' 'BSD' 'BTN' 'BWP' 'BYR' 'BZD' 'CAD' 'CDF' 'CHE' 'CHF' 'CHW' 'CLF' 'CLP' 'CNY' 'COP' 'COU' 'CRC' 'CUC' 'CUP' 'CVE' 'CZK' 'DJF' 'DKK' 'DOP' 'DZD' 'EGP' 'ERN' 'ETB' 'EUR' 'FJD' 'FKP' 'GBP' 'GEL' 'GHS' 'GIP' 'GMD' 'GNF' 'GTQ' 'GYD' 'HKD' 'HNL' 'HRK' 'HTG' 'HUF' 'IDR' 'ILS' 'INR' 'IQD' 'IRR' 'ISK' 'JMD' 'JOD' 'JPY' 'KES' 'KGS' 'KHR' 'KMF' 'KPW' 'KRW' 'KWD' 'KYD' 'KZT' 'LAK' 'LBP' 'LKR' 'LRD' 'LSL' 'LTL' 'LVL' 'LYD' 'MAD' 'MDL' 'MGA' 'MKD' 'MMK' 'MNT' 'MOP' 'MRO' 'MUR' 'MVR' 'MWK' 'MXN' 'MXV' 'MYR' 'MZN' 'NAD' 'NGN' 'NIO' 'NOK' 'NPR' 'NZD' 'OMR' 'PAB' 'PEN' 'PGK' 'PHP' 'PKR' 'PLN' 'PYG' 'QAR' 'RON' 'RSD' 'RUB' 'RWF' 'SAR' 'SBD' 'SCR' 'SDG' 'SEK' 'SGD' 'SHP' 'SLL' 'SOS' 'SRD' 'SSP' 'STD' 'SVC' 'SYP' 'SZL' 'THB' 'TJS' 'TMT' 'TND' 'TOP' 'TRC' 'TRY' 'TTD' 'TWD' 'TZS' 'UAH' 'UGX' 'USD' 'USN' 'USS' 'UYI' 'UYU' 'UZS' 'VEF' 'VND' 'VUV' 'WST' 'XAF' 'XAG' 'XAU' 'XBA' 'XBB' 'XBC' 'XBD' 'XCD' 'XDR' 'XOF' 'XPD' 'XPF' 'XPT' 'XTS' 'XXX' 'YER' 'ZAR' 'ZMK' 'ZMW' 'BTC')}}\",\n \"custom_fields\": [\n {\n \"description\": \"Employee Level\",\n \"id\": \"2389328923893298\",\n \"name\": \"employee_level\",\n \"value\": \"\"\n }\n ],\n \"description\": \"A thinker\",\n \"emails\": [\n {\n \"email\": \"elon@musk.com\",\n \"id\": \"123\",\n \"type\": \"{{oneOf (array 'primary' 'secondary' 'work' 'personal' 'billing' 'other')}}\"\n }\n ],\n \"fax\": \"+12129876543\",\n \"first_name\": \"Elon\",\n \"id\": \"12345\",\n \"language\": \"EN\",\n \"last_name\": \"Musk\",\n \"lead_source\": \"Cold Call\",\n \"monetary_amount\": 75000,\n \"name\": \"Elon Musk\",\n \"owner_id\": \"54321\",\n \"phone_numbers\": [\n {\n \"area_code\": \"323\",\n \"country_code\": \"1\",\n \"extension\": \"105\",\n \"id\": \"12345\",\n \"number\": \"111-111-1111\",\n \"type\": \"{{oneOf (array 'primary' 'secondary' 'home' 'work' 'office' 'mobile' 'assistant' 'fax' 'direct-dial-in' 'personal' 'other')}}\"\n }\n ],\n \"prefix\": \"Sir\",\n \"social_links\": [\n {\n \"id\": \"12345\",\n \"type\": \"twitter\",\n \"url\": \"https://www.twitter.com/apideck-io\"\n }\n ],\n \"status\": \"New\",\n \"tags\": [\n \"New\"\n ],\n \"title\": \"CEO\",\n \"updated_at\": \"2020-09-30T07:43:32.000Z\",\n \"websites\": [\n {\n \"id\": \"12345\",\n \"type\": \"{{oneOf (array 'primary' 'secondary' 'work' 'personal' 'other')}}\",\n \"url\": \"http://example.com\"\n }\n ]\n }\n ],\n \"links\": {\n \"current\": \"https://unify.apideck.com/crm/companies\",\n \"next\": \"https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM\",\n \"previous\": \"https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D\"\n },\n \"meta\": {\n \"cursors\": {\n \"current\": \"em9oby1jcm06OnBhZ2U6OjI=\",\n \"next\": \"em9oby1jcm06OnBhZ2U6OjM=\",\n \"previous\": \"em9oby1jcm06OnBhZ2U6OjE=\"\n },\n \"items_on_page\": 50\n },\n \"operation\": \"all\",\n \"resource\": \"companies\",\n \"service\": \"zoho-crm\",\n \"status\": \"OK\",\n \"status_code\": 200\n}", "latency": 0, "statusCode": 200, "label": "Leads", "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": "2e193f00-51b8-4d73-a6cc-ad4f8747db01", "body": "{\n \"detail\": \"\",\n \"error\": \"Bad Request\",\n \"message\": \"Invalid Params\",\n \"ref\": \"https://developers.apideck.com/errors#requestvalidationerror\",\n \"status_code\": 400,\n \"type_name\": \"RequestValidationError\"\n}", "latency": 0, "statusCode": 400, "label": "Bad Request", "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": "b1879219-b9a5-4773-8bb1-7f8bf1e4cf06", "body": "{\n \"detail\": \"Failed to generate valid JWT Session. Verify applicationId is correct\",\n \"error\": \"Unauthorized\",\n \"message\": \"Unauthorized Request\",\n \"ref\": \"https://developers.apideck.com/errors#unauthorizederror\",\n \"status_code\": 401,\n \"type_name\": \"UnauthorizedError\"\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": "0de11609-3511-4c69-a6c5-75aaa04eec72", "body": "{\n \"detail\": \"You have reached your limit of 2000\",\n \"error\": \"Payment Required\",\n \"message\": \"Request Limit Reached\",\n \"ref\": \"https://developers.apideck.com/errors#requestlimiterror\",\n \"status_code\": 402,\n \"type_name\": \"RequestLimitError\"\n}", "latency": 0, "statusCode": 402, "label": "Payment Required", "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": "0dda053e-adeb-4287-b5ad-dc99603e5cad", "body": "{\n \"detail\": \"\",\n \"error\": \"Not Found\",\n \"message\": \"Unknown Widget\",\n \"ref\": \"https://developers.apideck.com/errors#entitynotfounderror\",\n \"status_code\": 404,\n \"type_name\": \"EntityNotFoundError\"\n}", "latency": 0, "statusCode": 404, "label": "The specified resource was not found", "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": "d210dfc1-d771-45a6-a06c-9ff25d2375bf", "body": "{\n \"detail\": \"Unprocessable request, please verify your request headers and body.\",\n \"error\": \"Unprocessable Entity\",\n \"message\": \"Invalid State\",\n \"ref\": \"https://developers.apideck.com/errors#invalidstateerror\",\n \"status_code\": 422,\n \"type_name\": \"InvalidStateError\"\n}", "latency": 0, "statusCode": 422, "label": "Unprocessable", "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": "42bd7be8-d32d-479f-a2ef-8896a4bb4366", "body": "{\n \"detail\": \"\",\n \"error\": \"Bad Request\",\n \"message\": \"Invalid Params\",\n \"ref\": \"https://developers.apideck.com/errors#unauthorizederror\",\n \"status_code\": 400,\n \"type_name\": \"RequestHeadersValidationError\"\n}", "latency": 0, "statusCode": 200, "label": "Unexpected error", "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": "135db2ab-703b-41f4-a3c7-de722396aabc", "documentation": "Create lead", "method": "post", "endpoint": "lead/leads", "responses": [ { "uuid": "b124fe86-8cd5-44ef-82e0-4c932692ba71", "body": "{\n \"data\": {\n \"id\": \"12345\"\n },\n \"operation\": \"add\",\n \"resource\": \"companies\",\n \"service\": \"zoho-crm\",\n \"status\": \"OK\",\n \"status_code\": 200\n}", "latency": 0, "statusCode": 201, "label": "Lead created", "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": "1c1d68ee-4291-4fab-b028-21949e5d1a8e", "body": "{\n \"detail\": \"\",\n \"error\": \"Bad Request\",\n \"message\": \"Invalid Params\",\n \"ref\": \"https://developers.apideck.com/errors#requestvalidationerror\",\n \"status_code\": 400,\n \"type_name\": \"RequestValidationError\"\n}", "latency": 0, "statusCode": 400, "label": "Bad Request", "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": "a35bdaf8-de5c-4d2f-9b72-72173505c640", "body": "{\n \"detail\": \"Failed to generate valid JWT Session. Verify applicationId is correct\",\n \"error\": \"Unauthorized\",\n \"message\": \"Unauthorized Request\",\n \"ref\": \"https://developers.apideck.com/errors#unauthorizederror\",\n \"status_code\": 401,\n \"type_name\": \"UnauthorizedError\"\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": "7117e00f-ff0e-4865-8934-67db5bb769a5", "body": "{\n \"detail\": \"You have reached your limit of 2000\",\n \"error\": \"Payment Required\",\n \"message\": \"Request Limit Reached\",\n \"ref\": \"https://developers.apideck.com/errors#requestlimiterror\",\n \"status_code\": 402,\n \"type_name\": \"RequestLimitError\"\n}", "latency": 0, "statusCode": 402, "label": "Payment Required", "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": "bdc9f730-e990-45e4-b696-b65614364b7b", "body": "{\n \"detail\": \"\",\n \"error\": \"Not Found\",\n \"message\": \"Unknown Widget\",\n \"ref\": \"https://developers.apideck.com/errors#entitynotfounderror\",\n \"status_code\": 404,\n \"type_name\": \"EntityNotFoundError\"\n}", "latency": 0, "statusCode": 404, "label": "The specified resource was not found", "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": "ba4ddb4a-b91a-47c1-85d0-228439c51388", "body": "{\n \"detail\": \"Unprocessable request, please verify your request headers and body.\",\n \"error\": \"Unprocessable Entity\",\n \"message\": \"Invalid State\",\n \"ref\": \"https://developers.apideck.com/errors#invalidstateerror\",\n \"status_code\": 422,\n \"type_name\": \"InvalidStateError\"\n}", "latency": 0, "statusCode": 422, "label": "Unprocessable", "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": "c75811ec-95ae-4c8f-9087-1b246632a952", "body": "{\n \"detail\": \"\",\n \"error\": \"Bad Request\",\n \"message\": \"Invalid Params\",\n \"ref\": \"https://developers.apideck.com/errors#unauthorizederror\",\n \"status_code\": 400,\n \"type_name\": \"RequestHeadersValidationError\"\n}", "latency": 0, "statusCode": 200, "label": "Unexpected error", "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": "7bfc5d08-9c11-4eb4-9e5e-e4ba846dc46d", "documentation": "Delete lead", "method": "delete", "endpoint": "lead/leads/:id", "responses": [ { "uuid": "e25b2c3a-99b4-4a44-bc97-35251a6f1609", "body": "{\n \"data\": {\n \"id\": \"12345\"\n },\n \"operation\": \"delete\",\n \"resource\": \"companies\",\n \"service\": \"zoho-crm\",\n \"status\": \"OK\",\n \"status_code\": 200\n}", "latency": 0, "statusCode": 200, "label": "Lead deleted", "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": "10845963-0a7b-443e-9ba9-ee30949c4855", "body": "{\n \"detail\": \"\",\n \"error\": \"Bad Request\",\n \"message\": \"Invalid Params\",\n \"ref\": \"https://developers.apideck.com/errors#requestvalidationerror\",\n \"status_code\": 400,\n \"type_name\": \"RequestValidationError\"\n}", "latency": 0, "statusCode": 400, "label": "Bad Request", "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": "dfbb82ee-7aae-4a55-985f-9b98f6afd305", "body": "{\n \"detail\": \"Failed to generate valid JWT Session. Verify applicationId is correct\",\n \"error\": \"Unauthorized\",\n \"message\": \"Unauthorized Request\",\n \"ref\": \"https://developers.apideck.com/errors#unauthorizederror\",\n \"status_code\": 401,\n \"type_name\": \"UnauthorizedError\"\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": "5cfbe9d8-02d9-4d86-a924-fdaa34bf0e21", "body": "{\n \"detail\": \"You have reached your limit of 2000\",\n \"error\": \"Payment Required\",\n \"message\": \"Request Limit Reached\",\n \"ref\": \"https://developers.apideck.com/errors#requestlimiterror\",\n \"status_code\": 402,\n \"type_name\": \"RequestLimitError\"\n}", "latency": 0, "statusCode": 402, "label": "Payment Required", "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": "c3ab83e7-f3c3-4b96-8a05-d85f075a0337", "body": "{\n \"detail\": \"\",\n \"error\": \"Not Found\",\n \"message\": \"Unknown Widget\",\n \"ref\": \"https://developers.apideck.com/errors#entitynotfounderror\",\n \"status_code\": 404,\n \"type_name\": \"EntityNotFoundError\"\n}", "latency": 0, "statusCode": 404, "label": "The specified resource was not found", "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": "0b0cb64d-ca68-40c4-aea5-f6501744db0c", "body": "{\n \"detail\": \"Unprocessable request, please verify your request headers and body.\",\n \"error\": \"Unprocessable Entity\",\n \"message\": \"Invalid State\",\n \"ref\": \"https://developers.apideck.com/errors#invalidstateerror\",\n \"status_code\": 422,\n \"type_name\": \"InvalidStateError\"\n}", "latency": 0, "statusCode": 422, "label": "Unprocessable", "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": "779ae900-c9a2-4cf8-b31c-76ae250e8932", "body": "{\n \"detail\": \"\",\n \"error\": \"Bad Request\",\n \"message\": \"Invalid Params\",\n \"ref\": \"https://developers.apideck.com/errors#unauthorizederror\",\n \"status_code\": 400,\n \"type_name\": \"RequestHeadersValidationError\"\n}", "latency": 0, "statusCode": 200, "label": "Unexpected error", "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": "4b2853f8-b41c-40d5-b2c0-e4fb5dfdf6aa", "documentation": "Get lead", "method": "get", "endpoint": "lead/leads/:id", "responses": [ { "uuid": "e35a0722-33e8-4a1f-a343-d3d09086420b", "body": "{\n \"data\": {\n \"addresses\": [\n {\n \"city\": \"San Francisco\",\n \"contact_name\": \"Elon Musk\",\n \"country\": \"US\",\n \"county\": \"Santa Clara\",\n \"email\": \"elon@musk.com\",\n \"fax\": \"122-111-1111\",\n \"id\": \"123\",\n \"latitude\": \"40.759211\",\n \"line1\": \"Main street\",\n \"line2\": \"apt #\",\n \"line3\": \"Suite #\",\n \"line4\": \"delivery instructions\",\n \"longitude\": \"-73.984638\",\n \"name\": \"HQ US\",\n \"phone_number\": \"111-111-1111\",\n \"postal_code\": \"94104\",\n \"row_version\": \"1-12345\",\n \"salutation\": \"Mr\",\n \"state\": \"CA\",\n \"street_number\": \"25\",\n \"string\": \"25 Spring Street, Blackburn, VIC 3130\",\n \"type\": \"{{oneOf (array 'primary' 'secondary' 'home' 'office' 'shipping' 'billing' 'other')}}\",\n \"website\": \"https://elonmusk.com\"\n }\n ],\n \"company_id\": \"2\",\n \"company_name\": \"Spacex\",\n \"contact_id\": \"2\",\n \"created_at\": \"2020-09-30T07:43:32.000Z\",\n \"currency\": \"{{oneOf (array 'UNKNOWN_CURRENCY' 'AED' 'AFN' 'ALL' 'AMD' 'ANG' 'AOA' 'ARS' 'AUD' 'AWG' 'AZN' 'BAM' 'BBD' 'BDT' 'BGN' 'BHD' 'BIF' 'BMD' 'BND' 'BOB' 'BOV' 'BRL' 'BSD' 'BTN' 'BWP' 'BYR' 'BZD' 'CAD' 'CDF' 'CHE' 'CHF' 'CHW' 'CLF' 'CLP' 'CNY' 'COP' 'COU' 'CRC' 'CUC' 'CUP' 'CVE' 'CZK' 'DJF' 'DKK' 'DOP' 'DZD' 'EGP' 'ERN' 'ETB' 'EUR' 'FJD' 'FKP' 'GBP' 'GEL' 'GHS' 'GIP' 'GMD' 'GNF' 'GTQ' 'GYD' 'HKD' 'HNL' 'HRK' 'HTG' 'HUF' 'IDR' 'ILS' 'INR' 'IQD' 'IRR' 'ISK' 'JMD' 'JOD' 'JPY' 'KES' 'KGS' 'KHR' 'KMF' 'KPW' 'KRW' 'KWD' 'KYD' 'KZT' 'LAK' 'LBP' 'LKR' 'LRD' 'LSL' 'LTL' 'LVL' 'LYD' 'MAD' 'MDL' 'MGA' 'MKD' 'MMK' 'MNT' 'MOP' 'MRO' 'MUR' 'MVR' 'MWK' 'MXN' 'MXV' 'MYR' 'MZN' 'NAD' 'NGN' 'NIO' 'NOK' 'NPR' 'NZD' 'OMR' 'PAB' 'PEN' 'PGK' 'PHP' 'PKR' 'PLN' 'PYG' 'QAR' 'RON' 'RSD' 'RUB' 'RWF' 'SAR' 'SBD' 'SCR' 'SDG' 'SEK' 'SGD' 'SHP' 'SLL' 'SOS' 'SRD' 'SSP' 'STD' 'SVC' 'SYP' 'SZL' 'THB' 'TJS' 'TMT' 'TND' 'TOP' 'TRC' 'TRY' 'TTD' 'TWD' 'TZS' 'UAH' 'UGX' 'USD' 'USN' 'USS' 'UYI' 'UYU' 'UZS' 'VEF' 'VND' 'VUV' 'WST' 'XAF' 'XAG' 'XAU' 'XBA' 'XBB' 'XBC' 'XBD' 'XCD' 'XDR' 'XOF' 'XPD' 'XPF' 'XPT' 'XTS' 'XXX' 'YER' 'ZAR' 'ZMK' 'ZMW' 'BTC')}}\",\n \"custom_fields\": [\n {\n \"description\": \"Employee Level\",\n \"id\": \"2389328923893298\",\n \"name\": \"employee_level\",\n \"value\": \"\"\n }\n ],\n \"description\": \"A thinker\",\n \"emails\": [\n {\n \"email\": \"elon@musk.com\",\n \"id\": \"123\",\n \"type\": \"{{oneOf (array 'primary' 'secondary' 'work' 'personal' 'billing' 'other')}}\"\n }\n ],\n \"fax\": \"+12129876543\",\n \"first_name\": \"Elon\",\n \"id\": \"12345\",\n \"language\": \"EN\",\n \"last_name\": \"Musk\",\n \"lead_source\": \"Cold Call\",\n \"monetary_amount\": 75000,\n \"name\": \"Elon Musk\",\n \"owner_id\": \"54321\",\n \"phone_numbers\": [\n {\n \"area_code\": \"323\",\n \"country_code\": \"1\",\n \"extension\": \"105\",\n \"id\": \"12345\",\n \"number\": \"111-111-1111\",\n \"type\": \"{{oneOf (array 'primary' 'secondary' 'home' 'work' 'office' 'mobile' 'assistant' 'fax' 'direct-dial-in' 'personal' 'other')}}\"\n }\n ],\n \"prefix\": \"Sir\",\n \"social_links\": [\n {\n \"id\": \"12345\",\n \"type\": \"twitter\",\n \"url\": \"https://www.twitter.com/apideck-io\"\n }\n ],\n \"status\": \"New\",\n \"tags\": [\n \"New\"\n ],\n \"title\": \"CEO\",\n \"updated_at\": \"2020-09-30T07:43:32.000Z\",\n \"websites\": [\n {\n \"id\": \"12345\",\n \"type\": \"{{oneOf (array 'primary' 'secondary' 'work' 'personal' 'other')}}\",\n \"url\": \"http://example.com\"\n }\n ]\n },\n \"operation\": \"one\",\n \"resource\": \"companies\",\n \"service\": \"zoho-crm\",\n \"status\": \"OK\",\n \"status_code\": 200\n}", "latency": 0, "statusCode": 200, "label": "Lead", "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": "76e1ba80-786c-4980-9357-c52ee2f11238", "body": "{\n \"detail\": \"\",\n \"error\": \"Bad Request\",\n \"message\": \"Invalid Params\",\n \"ref\": \"https://developers.apideck.com/errors#requestvalidationerror\",\n \"status_code\": 400,\n \"type_name\": \"RequestValidationError\"\n}", "latency": 0, "statusCode": 400, "label": "Bad Request", "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": "1cfca423-b82c-4873-a10e-334329781a25", "body": "{\n \"detail\": \"Failed to generate valid JWT Session. Verify applicationId is correct\",\n \"error\": \"Unauthorized\",\n \"message\": \"Unauthorized Request\",\n \"ref\": \"https://developers.apideck.com/errors#unauthorizederror\",\n \"status_code\": 401,\n \"type_name\": \"UnauthorizedError\"\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": "f20456c7-29f6-4e0c-8edb-9872e34429c3", "body": "{\n \"detail\": \"You have reached your limit of 2000\",\n \"error\": \"Payment Required\",\n \"message\": \"Request Limit Reached\",\n \"ref\": \"https://developers.apideck.com/errors#requestlimiterror\",\n \"status_code\": 402,\n \"type_name\": \"RequestLimitError\"\n}", "latency": 0, "statusCode": 402, "label": "Payment Required", "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": "cc429193-2e03-45bc-bff6-06f87d7f3b3c", "body": "{\n \"detail\": \"\",\n \"error\": \"Not Found\",\n \"message\": \"Unknown Widget\",\n \"ref\": \"https://developers.apideck.com/errors#entitynotfounderror\",\n \"status_code\": 404,\n \"type_name\": \"EntityNotFoundError\"\n}", "latency": 0, "statusCode": 404, "label": "The specified resource was not found", "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": "afaee9ea-c0f6-4d1b-8d9b-3c71daa116c8", "body": "{\n \"detail\": \"Unprocessable request, please verify your request headers and body.\",\n \"error\": \"Unprocessable Entity\",\n \"message\": \"Invalid State\",\n \"ref\": \"https://developers.apideck.com/errors#invalidstateerror\",\n \"status_code\": 422,\n \"type_name\": \"InvalidStateError\"\n}", "latency": 0, "statusCode": 422, "label": "Unprocessable", "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": "a8a8b29d-0888-4535-85bb-186ee956c4ca", "body": "{\n \"detail\": \"\",\n \"error\": \"Bad Request\",\n \"message\": \"Invalid Params\",\n \"ref\": \"https://developers.apideck.com/errors#unauthorizederror\",\n \"status_code\": 400,\n \"type_name\": \"RequestHeadersValidationError\"\n}", "latency": 0, "statusCode": 200, "label": "Unexpected error", "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": "f59ca8a3-a4bb-487d-954c-b9928cc5c3d6", "documentation": "Update lead", "method": "patch", "endpoint": "lead/leads/:id", "responses": [ { "uuid": "3960b0e8-e341-4857-aa58-7382f7bcf5a9", "body": "{\n \"data\": {\n \"id\": \"12345\"\n },\n \"operation\": \"update\",\n \"resource\": \"companies\",\n \"service\": \"zoho-crm\",\n \"status\": \"OK\",\n \"status_code\": 200\n}", "latency": 0, "statusCode": 200, "label": "Lead updated", "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": "c987fc6d-92d2-458a-95ba-99dfdb421242", "body": "{\n \"detail\": \"\",\n \"error\": \"Bad Request\",\n \"message\": \"Invalid Params\",\n \"ref\": \"https://developers.apideck.com/errors#requestvalidationerror\",\n \"status_code\": 400,\n \"type_name\": \"RequestValidationError\"\n}", "latency": 0, "statusCode": 400, "label": "Bad Request", "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": "ba1386b3-2e8a-4787-9d50-be734fd7019d", "body": "{\n \"detail\": \"Failed to generate valid JWT Session. Verify applicationId is correct\",\n \"error\": \"Unauthorized\",\n \"message\": \"Unauthorized Request\",\n \"ref\": \"https://developers.apideck.com/errors#unauthorizederror\",\n \"status_code\": 401,\n \"type_name\": \"UnauthorizedError\"\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": "5bf67f7b-518e-40df-89aa-717ced10e602", "body": "{\n \"detail\": \"You have reached your limit of 2000\",\n \"error\": \"Payment Required\",\n \"message\": \"Request Limit Reached\",\n \"ref\": \"https://developers.apideck.com/errors#requestlimiterror\",\n \"status_code\": 402,\n \"type_name\": \"RequestLimitError\"\n}", "latency": 0, "statusCode": 402, "label": "Payment Required", "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": "222ff36e-c733-4d04-92b4-10342a659b1c", "body": "{\n \"detail\": \"\",\n \"error\": \"Not Found\",\n \"message\": \"Unknown Widget\",\n \"ref\": \"https://developers.apideck.com/errors#entitynotfounderror\",\n \"status_code\": 404,\n \"type_name\": \"EntityNotFoundError\"\n}", "latency": 0, "statusCode": 404, "label": "The specified resource was not found", "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": "0944b849-6fa0-48dc-8b91-d7f7bc967253", "body": "{\n \"detail\": \"Unprocessable request, please verify your request headers and body.\",\n \"error\": \"Unprocessable Entity\",\n \"message\": \"Invalid State\",\n \"ref\": \"https://developers.apideck.com/errors#invalidstateerror\",\n \"status_code\": 422,\n \"type_name\": \"InvalidStateError\"\n}", "latency": 0, "statusCode": 422, "label": "Unprocessable", "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": "be50ece0-7015-404d-ab7d-3daf44eba56b", "body": "{\n \"detail\": \"\",\n \"error\": \"Bad Request\",\n \"message\": \"Invalid Params\",\n \"ref\": \"https://developers.apideck.com/errors#unauthorizederror\",\n \"status_code\": 400,\n \"type_name\": \"RequestHeadersValidationError\"\n}", "latency": 0, "statusCode": 200, "label": "Unexpected error", "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": "e35c8bde-c7a2-4e9d-b17e-128aea7b268f" }, { "type": "route", "uuid": "135db2ab-703b-41f4-a3c7-de722396aabc" }, { "type": "route", "uuid": "7bfc5d08-9c11-4eb4-9e5e-e4ba846dc46d" }, { "type": "route", "uuid": "4b2853f8-b41c-40d5-b2c0-e4fb5dfdf6aa" }, { "type": "route", "uuid": "f59ca8a3-a4bb-487d-954c-b9928cc5c3d6" } ] }