{ "info": { "_postman_id": "1bd538f3-235f-4881-8ee0-7cdd71f49c39", "name": "Remote Address Details Departments API", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", "createdAt": "2026-07-28T02:45:27.000Z", "updatedAt": "2026-07-28T02:45:27.000Z", "lastUpdatedBy": "35240", "uid": "35240-1bd538f3-235f-4881-8ee0-7cdd71f49c39" }, "item": [ { "name": "v1", "item": [ { "name": "company-departments", "item": [ { "name": "List Company Departments", "id": "7b64006f-abf4-4132-a32a-78b08075e5a5", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{bearerToken}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" } ], "url": { "raw": "{{baseUrl}}/v1/company-departments?company_id=&paginate=&page=1&page_size=20", "host": [ "{{baseUrl}}" ], "path": [ "v1", "company-departments" ], "query": [ { "description": "(Required) Company ID", "key": "company_id", "value": "" }, { "description": "Paginate option. Default: true. When true, paginates response; otherwise, does not.", "key": "paginate", "value": "" }, { "description": "Starts fetching records after the given page", "key": "page", "value": "1" }, { "description": "Number of items per page", "key": "page_size", "value": "20" } ] }, "description": "Lists all departments for the authorized company specified in the request.\n\n\n## Scopes\n\n| Category | Read only Scope | Write only Scope (read access implicit) |\n|---|---|---|\n| Manage company resources (`company_admin`) | View departments (`company_department:read`) | Manage departments (`company_department:write`) |\n" }, "response": [ { "id": "519ee9c7-b156-49cf-bc0d-e81bf50ae228", "name": "Success", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "url": { "raw": "{{baseUrl}}/v1/company-departments?company_id=&paginate=&page=1&page_size=20", "host": [ "{{baseUrl}}" ], "path": [ "v1", "company-departments" ], "query": [ { "description": "(Required) Company ID", "key": "company_id", "value": "" }, { "description": "Paginate option. Default: true. When true, paginates response; otherwise, does not.", "key": "paginate", "value": "" }, { "description": "Starts fetching records after the given page", "key": "page", "value": "1" }, { "description": "Number of items per page", "key": "page_size", "value": "20" } ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"data\": {\n \"company_departments\": [\n {\n \"id\": \"\",\n \"company_id\": \"\",\n \"name\": \"\"\n },\n {\n \"id\": \"\",\n \"company_id\": \"\",\n \"name\": \"\"\n }\n ]\n },\n \"current_page\": \"\",\n \"total_pages\": \"\",\n \"total_count\": \"\"\n}", "createdAt": "2026-07-28T02:45:28.000Z", "updatedAt": "2026-07-28T02:45:28.000Z", "uid": "35240-519ee9c7-b156-49cf-bc0d-e81bf50ae228" }, { "id": "88747e57-8e82-4cd7-9cc8-79171da1bdfb", "name": "Not Found", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "url": { "raw": "{{baseUrl}}/v1/company-departments?company_id=&paginate=&page=1&page_size=20", "host": [ "{{baseUrl}}" ], "path": [ "v1", "company-departments" ], "query": [ { "description": "(Required) Company ID", "key": "company_id", "value": "" }, { "description": "Paginate option. Default: true. When true, paginates response; otherwise, does not.", "key": "paginate", "value": "" }, { "description": "Starts fetching records after the given page", "key": "page", "value": "1" }, { "description": "Number of items per page", "key": "page_size", "value": "20" } ] } }, "status": "Not Found", "code": 404, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"Not Found\"\n}", "createdAt": "2026-07-28T02:45:28.000Z", "updatedAt": "2026-07-28T02:45:28.000Z", "uid": "35240-88747e57-8e82-4cd7-9cc8-79171da1bdfb" }, { "id": "b6617168-52b9-4ea8-9409-36a4088ca948", "name": "Unprocessable Entity", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "url": { "raw": "{{baseUrl}}/v1/company-departments?company_id=&paginate=&page=1&page_size=20", "host": [ "{{baseUrl}}" ], "path": [ "v1", "company-departments" ], "query": [ { "description": "(Required) Company ID", "key": "company_id", "value": "" }, { "description": "Paginate option. Default: true. When true, paginates response; otherwise, does not.", "key": "paginate", "value": "" }, { "description": "Starts fetching records after the given page", "key": "page", "value": "1" }, { "description": "Number of items per page", "key": "page_size", "value": "20" } ] } }, "status": "Unprocessable Entity (WebDAV) (RFC 4918)", "code": 422, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"errors\": {}\n}", "createdAt": "2026-07-28T02:45:28.000Z", "updatedAt": "2026-07-28T02:45:28.000Z", "uid": "35240-b6617168-52b9-4ea8-9409-36a4088ca948" } ], "createdAt": "2026-07-28T02:45:28.000Z", "updatedAt": "2026-07-28T02:45:28.000Z", "uid": "35240-7b64006f-abf4-4132-a32a-78b08075e5a5" }, { "name": "Create New Department", "id": "6d01e1cd-3e80-40cd-a804-f31c1b8acba4", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{bearerToken}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"company_id\": \"\",\n \"name\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/company-departments", "host": [ "{{baseUrl}}" ], "path": [ "v1", "company-departments" ] }, "description": "Creates a new department in the specified company. Department names may be non-unique and must be non-empty with no more than 255 characters (Unicode code points).\n\n## Scopes\n\n| Category | Read only Scope | Write only Scope (read access implicit) |\n|---|---|---|\n| Manage company resources (`company_admin`) | - | Manage departments (`company_department:write`) |\n" }, "response": [ { "id": "ffef63ba-2ad1-4ef4-9f89-644cd19d8113", "name": "Created", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "body": { "mode": "raw", "raw": "{\n \"company_id\": \"\",\n \"name\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/company-departments", "host": [ "{{baseUrl}}" ], "path": [ "v1", "company-departments" ] } }, "status": "Created", "code": 201, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"company_department\": {\n \"id\": \"\",\n \"company_id\": \"\",\n \"name\": \"\"\n }\n}", "createdAt": "2026-07-28T02:45:28.000Z", "updatedAt": "2026-07-28T02:45:28.000Z", "uid": "35240-ffef63ba-2ad1-4ef4-9f89-644cd19d8113" }, { "id": "642a3c11-0b37-4980-b330-f7db6b05d806", "name": "Not Found", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "body": { "mode": "raw", "raw": "{\n \"company_id\": \"\",\n \"name\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/company-departments", "host": [ "{{baseUrl}}" ], "path": [ "v1", "company-departments" ] } }, "status": "Not Found", "code": 404, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"Not Found\"\n}", "createdAt": "2026-07-28T02:45:28.000Z", "updatedAt": "2026-07-28T02:45:28.000Z", "uid": "35240-642a3c11-0b37-4980-b330-f7db6b05d806" }, { "id": "3860bbbe-2b39-44cf-b45e-ded2e01d9668", "name": "Unprocessable Entity", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "body": { "mode": "raw", "raw": "{\n \"company_id\": \"\",\n \"name\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/company-departments", "host": [ "{{baseUrl}}" ], "path": [ "v1", "company-departments" ] } }, "status": "Unprocessable Entity (WebDAV) (RFC 4918)", "code": 422, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"errors\": {}\n}", "createdAt": "2026-07-28T02:45:28.000Z", "updatedAt": "2026-07-28T02:45:28.000Z", "uid": "35240-3860bbbe-2b39-44cf-b45e-ded2e01d9668" } ], "createdAt": "2026-07-28T02:45:28.000Z", "updatedAt": "2026-07-28T02:45:28.000Z", "uid": "35240-6d01e1cd-3e80-40cd-a804-f31c1b8acba4" } ], "id": "65343c59-c0f2-436f-b46f-434f329818f0", "createdAt": "2026-07-28T02:45:27.000Z", "updatedAt": "2026-07-28T02:45:27.000Z", "uid": "35240-65343c59-c0f2-436f-b46f-434f329818f0" } ], "id": "f38dd338-33a1-468c-bbf9-22e0bcc7c617", "createdAt": "2026-07-28T02:45:27.000Z", "updatedAt": "2026-07-28T02:45:27.000Z", "uid": "35240-f38dd338-33a1-468c-bbf9-22e0bcc7c617" } ], "auth": { "type": "oauth2", "oauth2": [ { "key": "scope", "value": "company_department:read webhook:write magic_link:write offboarding:write custom_field:write address:write expense:read employment:write identity_verification:write timesheet:write travel_letter:write incentive:read personal_detail:read invoices:write work_authorization:write timeoff:write company_structure:read benefit_renewal:write benefit_offer:read employment_documents onboarding:write payroll_run:read risk_reserve:write invoices resignation_letter:read resignation:read convert_currency:read employments probation_document:read company_admin payroll help_center_article:read timesheet:read custom_field_value:write company_currencies:read payslip:read pay_item:write resignation:write custom_field:read payroll_calendar:read contract_amendment:write offboarding:read timeoff:read probation_document:write country:read webhook:read company_department:write company_manager:read pay_item:read contract_amendment:read company:read sso_configuration:write benefit_offer:write contract_eligibility:write benefit_renewal:read background_check:read custom_field_value:read expense:write identity_verification:read address:read document:write time_and_attendance employment_payments form:read work_authorization:read invoices:read incentive:write employment:read contract:read company_manager:write travel_letter:read document:read sso_configuration:read", "type": "string" }, { "key": "accessTokenUrl", "value": "/auth/oauth2/token", "type": "string" }, { "key": "authUrl", "value": "/auth/oauth2/authorize", "type": "string" }, { "key": "grant_type", "value": "authorization_code", "type": "string" } ] }, "variable": [ { "key": "baseUrl", "value": "https://gateway.remote.com/" } ] }