{"info":{"_postman_id":"74b4a7f8-7e09-44db-b70d-0de084dcbddd","name":"Locker Premium Private Email API","description":"<html><head></head><body><p>The Locker Private Email API is organized around REST. These APIs return JSON responses and uses standard HTTP Response codes, authentication, and verbs.</p>\n<p>These APIs are used on Locker Password Manager (<a href=\"https://locker.io\">https://locker.io</a>).</p>\n<p><strong>Base API Host</strong></p>\n<p><a href=\"https://api.locker.io\">https://api.locker.io</a></p>\n<h1 id=\"authentication\">Authentication</h1>\n<p>The Locker API uses a <strong>Bearer token</strong> to authenticate requests. All APIs need to be authenticated by your API Key. This API Key is a JWT token with <code>cs.</code> prefix. After you upgrade your plan, you can get your API Key at Locker ID (<a href=\"https://id.locker.io/api-key\">https://id.locker.io/api-key</a>).</p>\n<p>One example API Key:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>Bearer cs.eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyIjoiMjMyM0Bwdy5jeXN0YWNrLm9yZyIsImNyZWF0ZWRfdGltZSI6MTY0MDYxNzAzNSwiZXhwaXJlZF90aW1lIjoxNjQwNjMxNDM1LCJ0b2tlbl90eXBlIjoiYXV0aGVudGljYXRpb24iLCJzY29wZSI6InB3ZG1hbmFnZXIifQ.xxxxxxxxxxxxxxxxxxxxxxxx_PrivateXXXX\n\n</code></pre><h1 id=\"errors\">Errors</h1>\n<p>The Private Email API uses conventional HTTP response codes to indicate the success or failure of an API request. In general:</p>\n<p>Code <code>2xx</code> range indicates success</p>\n<p>Code in <code>4xx</code> range indicates an error that failed given the information provided (e.g, a required parameter was omitted, authentication failed, etc.). Almost <code>4xx</code> errors have the format as:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"code\": \"0000\",\n    \"message\": \"xxx\",\n    \"details\": {}                   \n}\n\n</code></pre>\n<p>* <code>code</code> (string) This is an error code<br>* <code>message</code> (string) Error description<br>* <code>details</code> (object) An object indicates details of this error</p>\n<p>Code in <code>5xx</code> range indicates an error with our servers.</p>\n<h1 id=\"pagination\">Pagination</h1>\n<p>All top-level API resources have support for bulk fetch via \"list\" API methods. These list API methods share a common structure, taking these parameters: <code>page</code>, <code>size</code>, <code>paging.</code></p>\n<p>* <code>page</code> (optional, default is 1): The current index of \"list\"<br>* <code>size</code> (optional, default is 10): A limit on the number of objects to be returned. Only some APIs support this parameter<br>* <code>paging</code> (optional, default is 1): Paging or not. Only some APIs support this parameter</p>\n<h1 id=\"rate-limit\">Rate limit</h1>\n<p>To keep incoming traffic under control and maintain a great experience for all our users, our API is behind a rate limiter. Users who send many requests in quick succession may see error responses that show up as status code 429.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Authentication","slug":"authentication"},{"content":"Errors","slug":"errors"},{"content":"Pagination","slug":"pagination"},{"content":"Rate limit","slug":"rate-limit"}],"owner":"22756764","collectionId":"74b4a7f8-7e09-44db-b70d-0de084dcbddd","publishedId":"2s7ZE4KjKU","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2022-09-22T08:05:24.000Z"},"item":[{"name":"Private Email Addresses","item":[{"name":"List addresses","id":"ab93749d-a401-4cb7-bdbf-90c9bc08f64f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer  {{api_key}}","type":"text"}],"url":"{{host}}/v3/relay/addresses","description":"<p><strong>Returns</strong></p>\n<p>A dictionary with a <code>results</code> property that contains Private Email objects if the <code>paging</code> parameter value is 1. Else, this API returns a list of Private Email objects.<br />If no more Private Email objects are available, the resulting array will be empty. This request should never raise an error.</p>\n","urlObject":{"path":["v3","relay","addresses"],"host":["{{host}}"],"query":[{"disabled":true,"description":{"content":"<p>The page param. Default is 1</p>\n","type":"text/plain"},"key":"page","value":"1"},{"disabled":true,"description":{"content":"<p>Paging or not. if value is 1, the result will be paginated. Default is 0</p>\n","type":"text/plain"},"key":"paging","value":"0"},{"disabled":true,"description":{"content":"<p>Page size param. Default is 10</p>\n","type":"text/plain"},"key":"size","value":"10"}],"variable":[]}},"response":[{"id":"c87756fa-822e-4db9-add1-eec0e8737b31","name":"Get list addresses successfully","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer  {{api_key}}","type":"text"}],"url":{"raw":"{{host}}/v3/relay/addresses","host":["{{host}}"],"path":["v3","relay","addresses"],"query":[{"key":"page","value":"1","description":"The page param. Default is 1","disabled":true},{"key":"paging","value":"1","description":"Paging or not. if value is 1, the result will be paginated. Default is 0","disabled":true},{"key":"size","value":"10","description":"Page size param. Default is 10","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Allow","value":"GET, POST, HEAD, OPTIONS"},{"key":"Content-Length","value":"319"}],"cookie":[],"responseTime":null,"body":"{\n    \"count\": 1,\n    \"next\": null,\n    \"previous\": null,\n    \"results\": [\n        {\n            \"id\": 1,\n            \"address\": \"mycustomalias\",\n            \"enabled\": false,\n            \"block_spam\": true,\n            \"description\": \"\",\n            \"created_time\": 1657159423.0,\n            \"updated_time\": 1663832574.0,\n            \"num_forwarded\": 1,\n            \"num_blocked\": 0,\n            \"num_replied\": 0,\n            \"num_spam\": 0,\n            \"domain\": \"maily.org\",\n            \"subdomain\": null,\n            \"full_address\": \"mycustomalias@maily.org\"\n        }\n    ]\n}"}],"_postman_id":"ab93749d-a401-4cb7-bdbf-90c9bc08f64f"},{"name":"Generate new address","id":"fe82f9ec-e205-4466-b81c-05accdbed6be","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{api_key}}","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{host}}/v3/relay/addresses","description":"<p>Create a new Private Email object. This API does not require any body data.</p>\n<p><strong>Returns</strong></p>\n<p>Return a Private Email object if the request is successful</p>\n","urlObject":{"path":["v3","relay","addresses"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"0c3f05a9-a632-43a3-934e-4c17794308c0","name":"Generate new address successfully","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer  {{api_key}}","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://api.locker.io/v3/relay/addresses"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Allow","value":"GET, POST, HEAD, OPTIONS"},{"key":"Content-Length","value":"261"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 6,\n    \"address\": \"16pv4a\",\n    \"enabled\": true,\n    \"block_spam\": false,\n    \"description\": \"\",\n    \"created_time\": 1663832455,\n    \"updated_time\": null,\n    \"num_forwarded\": 0,\n    \"num_blocked\": 0,\n    \"num_replied\": 0,\n    \"num_spam\": 0,\n    \"domain\": \"maily.org\",\n    \"subdomain\": null,\n    \"full_address\": \"16pv4a@maily.org\"\n}"}],"_postman_id":"fe82f9ec-e205-4466-b81c-05accdbed6be"},{"name":"Update relay address","id":"b4ec41e2-5354-41e0-8142-e79820116141","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer {{api_key}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"address\": \"mycustomalias\",\n    \"enabled\": true,\n    \"block_spam\": false\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/v3/relay/addresses/:address_id","description":"<p>Updates the private email by settings the values of the parameters passed. You can only update the first private email address. </p>\n<p><strong>Body data</strong></p>\n<ul>\n<li><strong>address</strong> (string) The new alias of the private email</li>\n<li><strong>enabled</strong> (bool) Enable or disable this private email</li>\n<li><strong>block_spam</strong> (bool) Turn on or turn off block spam feature.</li>\n</ul>\n<p><strong>Returns</strong></p>\n<p>Return HTTP Status code 200 with <code>id</code> of the updated private email</p>\n","urlObject":{"path":["v3","relay","addresses",":address_id"],"host":["{{host}}"],"query":[],"variable":[{"id":"ca8a1ee6-bf4b-4fc0-a25d-0fcedcccc554","description":{"content":"<p>The private email id</p>\n","type":"text/plain"},"type":"any","value":"1","key":"address_id"}]}},"response":[{"id":"cfb2f812-4007-4e98-bc26-75e630606f26","name":"Update relay address successfully","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer {{api_key}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"address\": \"mycustomalias\",\n    \"enabled\": true,\n    \"block_spam\": false\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{host}}/v3/relay/addresses/:address_id","host":["{{host}}"],"path":["v3","relay","addresses",":address_id"],"variable":[{"key":"address_id","value":"1","description":"The private email id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Allow","value":"GET, PUT, DELETE, HEAD, OPTIONS"},{"key":"Content-Length","value":"8"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1\n}"}],"_postman_id":"b4ec41e2-5354-41e0-8142-e79820116141"},{"name":"Turn on/off Block spam","id":"989f596a-6a5a-4a51-9bc4-18f4c4a05457","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer {{api_key}}","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{host}}/v3/relay/addresses/:address_id/block_spam","description":"<p>You can use this API to turn on or turn off the block spam feature. It does not require any body data. </p>\n<p><strong>Returns</strong></p>\n<p>Return HTTP status code 200 with:</p>\n<ul>\n<li><strong>id</strong> (int) The id of the private email object</li>\n<li><strong>block_spam</strong> (bool) The current value of the block spam feature</li>\n</ul>\n","urlObject":{"path":["v3","relay","addresses",":address_id","block_spam"],"host":["{{host}}"],"query":[],"variable":[{"id":"869d3196-86fb-4427-a9a2-6aa832b087d8","description":{"content":"<p>The private email id</p>\n","type":"text/plain"},"type":"any","value":"1","key":"address_id"}]}},"response":[{"id":"4932d92f-5783-49b0-97d7-00b5e5018d73","name":"Turn on/off Block spam","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer {{api_key}}","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":{"raw":"{{host}}/v3/relay/addresses/:address_id/block_spam","host":["{{host}}"],"path":["v3","relay","addresses",":address_id","block_spam"],"variable":[{"key":"address_id","value":"1","description":"The private email id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Allow","value":"PUT, OPTIONS"},{"key":"Content-Length","value":"26"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1,\n    \"block_spam\": true\n}"}],"_postman_id":"989f596a-6a5a-4a51-9bc4-18f4c4a05457"},{"name":"Enable/Disable","id":"abedfc1a-ed02-48c5-910c-4a077ae9cb80","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer  {{api_key}}","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{host}}/v3/relay/addresses/:address_id/enabled","description":"<p>You can use this API to enable or disable your Private Email. </p>\n<p><strong>Returns</strong></p>\n<ul>\n<li><strong>id</strong> (int) The id of updated object</li>\n<li><strong>enabled</strong> (bool) The private email is enabled or not</li>\n</ul>\n","urlObject":{"path":["v3","relay","addresses",":address_id","enabled"],"host":["{{host}}"],"query":[],"variable":[{"id":"452d1e40-5ae0-494f-b405-5829b454f754","description":{"content":"<p>The private email id</p>\n","type":"text/plain"},"type":"any","value":"1","key":"address_id"}]}},"response":[{"id":"3f394e9d-ea40-43e7-a59f-9667617cafcb","name":"Enable/Disable","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer  {{api_key}}","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":{"raw":"{{host}}/v3/relay/addresses/:address_id/enabled","host":["{{host}}"],"path":["v3","relay","addresses",":address_id","enabled"],"variable":[{"key":"address_id","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Allow","value":"PUT, OPTIONS"},{"key":"Content-Length","value":"24"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1,\n    \"enabled\": false\n}"}],"_postman_id":"abedfc1a-ed02-48c5-910c-4a077ae9cb80"},{"name":"Delete an address","id":"8970ef9b-ee88-4277-91e5-431f8027aae2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer {{api_key}}","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{host}}/v3/relay/addresses/:address_id","description":"<p>Delete a private email. If you delete a private email, you will not receive any email in the future and you will not re-create this email alias.</p>\n<p><strong>Returns</strong></p>\n<p>Return HTTP status code 204</p>\n","urlObject":{"path":["v3","relay","addresses",":address_id"],"host":["{{host}}"],"query":[],"variable":[{"id":"eac04742-034a-4cfe-bc3d-e9383ef3b4ee","description":{"content":"<p>The private email id</p>\n","type":"text/plain"},"type":"any","value":"6","key":"address_id"}]}},"response":[{"id":"bb3e71ad-f6ae-4e7c-8b89-61ef35486b13","name":"Delete an address","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer cs.eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyIjoia2hhaS50cmFucXVhbmcuODcuOTdAZ21haWwuY29tIiwiY3JlYXRlZF90aW1lIjoxNjU5OTMyMjMzLCJleHBpc...","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":{"raw":"https://api.locker.io/v3/relay/addresses/:address_id","protocol":"https","host":["api","locker","io"],"path":["v3","relay","addresses",":address_id"],"variable":[{"key":"address_id","value":"6","description":"The private email id"}]}},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"Content-Length","value":"0"},{"key":"Allow","value":"GET, PUT, DELETE, HEAD, OPTIONS","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"8970ef9b-ee88-4277-91e5-431f8027aae2"}],"id":"b5f9ee50-61eb-44b3-a1a9-3d42a3875caa","description":"<p>Private Email object represent your private email. You can use them to forward messages to your true email. Use them to protect your online accounts and you can receive only the messages you want in your inbox.</p>\n<p><strong>Private Email object</strong></p>\n<ul>\n<li><strong>id</strong> (int) The object id</li>\n<li><strong>address</strong> (string) The alias of this email</li>\n<li><strong>subdomain</strong> (string) The subdomain of this email</li>\n<li><strong>domain</strong> (string) The root domain of this email</li>\n<li><strong>full_address</strong> (string) Full private email address</li>\n<li><strong>enabled</strong> (bool) This email is enabled or not  </li>\n<li><strong>description</strong> (string) The description of this private email  </li>\n<li><strong>created_time</strong> (float) The created time of this object (timestamp seconds)  </li>\n<li><strong>updated_time</strong> (float) The latest updated time (timestamp seconds)  </li>\n<li><strong>block_spam</strong> (bool) Turn on block spam feature or not  </li>\n<li><strong>num_forwarded</strong> (int) The number of forwarded emails  </li>\n<li><strong>num_replied</strong> (int) The number of replied emails  </li>\n<li><strong>num_spam</strong> (int) The number of blocked spam emails</li>\n</ul>\n","_postman_id":"b5f9ee50-61eb-44b3-a1a9-3d42a3875caa"},{"name":"Private Email Subdomains","item":[{"name":"List subdomains","id":"8532890d-8da2-497d-be65-94b3071f8cb6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{api_key}}","type":"text"}],"url":"{{host}}/v3/relay/subdomains","description":"<p><strong>Returns</strong><br />This API returns a list of Private Email Subdomain objects.<br />If no more subdomain objects are available, the resulting array will be empty. This request should never raise an error.</p>\n","urlObject":{"path":["v3","relay","subdomains"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"033c3c6e-db03-46f2-b815-341f24208b9e","name":"Get list subdomains successfully","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{api_key}}","type":"text"}],"url":"{{host}}/v3/relay/subdomains"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Allow","value":"GET, POST, HEAD, OPTIONS"},{"key":"Content-Length","value":"32"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 2,\n        \"subdomain\": \"mysubdomain1\"\n    }\n]"}],"_postman_id":"8532890d-8da2-497d-be65-94b3071f8cb6"},{"name":"Create subdomain","id":"fe226d0a-5f29-4958-a33a-54d17bd2353d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{api_key}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"subdomain\": \"mysubdomain3\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/v3/relay/subdomains","description":"<p>Create a new subdomain. Each user only creates one subdomain. </p>\n<p><strong>Body data</strong></p>\n<ul>\n<li><strong>subdomain</strong> (string) The subdomain</li>\n</ul>\n<p><strong>Returns</strong></p>\n<p>If the request is successful, it returns Private Email Subdomain object. </p>\n<p>If the response return 400 status code with <code>code</code> is <code>8001</code>, that means you can't\ncreate new subdomain because the number of subdomain is reached</p>\n","urlObject":{"path":["v3","relay","subdomains"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"b5173955-3753-43c4-b4a2-a23ff4264e25","name":"Create subdomain successfully","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{api_key}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"subdomain\": \"mysubdomain3\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/v3/relay/subdomains"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Allow","value":"GET, POST, HEAD, OPTIONS"},{"key":"Content-Length","value":"35"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 5,\n    \"subdomain\": \"mysubdomain3\"\n}"},{"id":"e795b2d7-4a1f-4108-b505-175ae9ce5f81","name":"The number of subdomain is reached","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{api_key}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"subdomain\": \"mysubdomain1\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/v3/relay/subdomains"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Allow","value":"GET, POST, HEAD, OPTIONS"},{"key":"Content-Length","value":"81"}],"cookie":[],"responseTime":null,"body":"{\n    \"details\": {},\n    \"message\": \"The number of relay subdomain is reached\",\n    \"code\": \"8001\"\n}"}],"_postman_id":"fe226d0a-5f29-4958-a33a-54d17bd2353d"},{"name":"Update a subdomain","id":"f4b25c87-cc1f-4fff-8761-452408915c2b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer {{api_key}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"subdomain\": \"mysubdomain2\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/v3/relay/subdomains/:id","description":"<p>Change your subdomain.</p>\n<p><strong>Body data</strong></p>\n<p>*   <strong>subdomain</strong> (string) New subdomain of the Private Email Subdomain object</p>\n<p><strong>Returns</strong></p>\n<p>Return HTTP status 200 with <code>id</code> of the updated object</p>\n","urlObject":{"path":["v3","relay","subdomains",":id"],"host":["{{host}}"],"query":[],"variable":[{"id":"b7b32f36-3012-4124-9d70-4090555bffc0","description":{"content":"<p>The subdomain id</p>\n","type":"text/plain"},"type":"any","value":"2","key":"id"}]}},"response":[{"id":"0905fcac-6658-42e6-9bff-6f80a2a2ee7c","name":"Update successfully","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer cs.eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyIjoia2hhaS50cmFucXVhbmcuODcuOTdAZ21haWwuY29tIiwiY3JlYXRlZF90aW1lIjoxNjU5OTMyMjMzLCJleHBpc...","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"subdomain\": \"mysubdomain2\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://api.locker.io/v3/relay/subdomains/:id","protocol":"https","host":["api","locker","io"],"path":["v3","relay","subdomains",":id"],"variable":[{"key":"id","value":"2","description":"The subdomain id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Allow","value":"GET, PUT, DELETE, HEAD, OPTIONS"},{"key":"Content-Length","value":"8"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 2\n}"}],"_postman_id":"f4b25c87-cc1f-4fff-8761-452408915c2b"},{"name":"Delete the subdomain","id":"e440e712-23ef-49f1-b2c6-f36fd84fe9db","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer {{api_key}}","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{host}}/v3/relay/subdomains/:id","description":"<p>Delete a subdomain.</p>\n<p><strong>Returns</strong> </p>\n<p>Return HTTP status code 204</p>\n","urlObject":{"path":["v3","relay","subdomains",":id"],"host":["{{host}}"],"query":[],"variable":[{"id":"c59853e6-b386-4a4a-8fa8-888e6e8aab40","description":{"content":"<p>The subdomain id</p>\n","type":"text/plain"},"type":"any","value":"2","key":"id"}]}},"response":[{"id":"2fd5c072-9a48-49d7-82bb-bb10649572ac","name":"Delete the subdomain successfully","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer cs.eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyIjoia2hhaS50cmFucXVhbmcuODcuOTdAZ21haWwuY29tIiwiY3JlYXRlZF90aW1lIjoxNjU5OTMyMjMzLCJleHBpc...","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":{"raw":"https://api.locker.io/v3/relay/subdomains/:id","protocol":"https","host":["api","locker","io"],"path":["v3","relay","subdomains",":id"],"variable":[{"key":"id","value":"2","description":"The subdomain id"}]}},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"Allow","value":"GET, PUT, DELETE, HEAD, OPTIONS"},{"key":"Content-Length","value":"0"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"e440e712-23ef-49f1-b2c6-f36fd84fe9db"},{"name":"Check use subdomain or not","id":"a99aced5-357f-4f64-9a77-69f7cfb5206a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{api_key}}","type":"text"}],"url":"{{host}}/v3/relay/subdomains/use_subdomain","description":"<p>Check you use subdomain to generate new Private Email or not?</p>\n<p><strong>Returns</strong></p>\n<ul>\n<li><strong>use_relay_subdomain</strong> (bool) Use subdomain or not</li>\n</ul>\n","urlObject":{"path":["v3","relay","subdomains","use_subdomain"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"d7dd3152-6e31-432b-ba98-ca6e3df5b99a","name":"Check use subdomain or not","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{api_key}}","type":"text"}],"url":"{{host}}/v3/relay/subdomains/use_subdomain"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Allow","value":"GET, PUT, HEAD, OPTIONS"},{"key":"Content-Length","value":"29"}],"cookie":[],"responseTime":null,"body":"{\n    \"use_relay_subdomain\": false\n}"}],"_postman_id":"a99aced5-357f-4f64-9a77-69f7cfb5206a"},{"name":"Use subdomains","id":"a7d8eacd-89c6-46d7-908a-3d7d76536b8c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer {{api_key}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"use_relay_subdomain\": false\r\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/v3/relay/subdomains/use_subdomain","description":"<p>Turn on or turn off the using domain feature when user creates new Private Email object.</p>\n<p><strong>Body data</strong></p>\n<p>*   <strong>use_relay_subdomain</strong> (bool) Use subdomain or not</p>\n<p><strong>Returns</strong></p>\n<p>*   <strong>use_relay_subdomain</strong> (bool) Use subdomain or not</p>\n","urlObject":{"path":["v3","relay","subdomains","use_subdomain"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"c0c8f1c1-3445-49c8-b595-e83264e2c0e6","name":"Use subdomains","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer {{api_key}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"use_relay_subdomain\": true\r\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/v3/relay/subdomains/use_subdomain"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Allow","value":"GET, PUT, HEAD, OPTIONS"},{"key":"Content-Length","value":"29"}],"cookie":[],"responseTime":null,"body":"{\n    \"use_relay_subdomain\": true\n}"}],"_postman_id":"a7d8eacd-89c6-46d7-908a-3d7d76536b8c"}],"id":"5e337dd7-5c6b-4627-881b-05bd356534cc","description":"<p>Private Email Subdomains represent the subdomains of the Private Email object. This feature is only available to Premium users.</p>\n<p><strong>The Subdomain object</strong></p>\n<p>*   <strong>id</strong> (int) The id of the subdomain\n*   <strong>subdomain</strong> (string) Subdomain of the Private Email</p>\n","_postman_id":"5e337dd7-5c6b-4627-881b-05bd356534cc"}]}