{ "info": { "_postman_id": "2ddc15cf-df53-47ec-a78d-5f0c93dda99b", "name": "Remote Address Details OAuth2 API", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", "createdAt": "2026-07-28T02:46:48.000Z", "updatedAt": "2026-07-28T02:46:48.000Z", "lastUpdatedBy": "35240", "uid": "35240-2ddc15cf-df53-47ec-a78d-5f0c93dda99b" }, "item": [ { "name": "auth", "item": [ { "name": "oauth2", "item": [ { "name": "token", "item": [ { "name": "Token", "id": "525c965c-495e-4ddc-8d0a-85ba2a1e54e1", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "basic", "basic": [ { "key": "username", "value": "{{basicAuthUsername}}", "type": "string" }, { "key": "password", "value": "{{basicAuthPassword}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"grant_type\": \"authorization_code\",\n \"code\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/auth/oauth2/token", "host": [ "{{baseUrl}}" ], "path": [ "auth", "oauth2", "token" ] }, "description": "Endpoint to exchange tokens in the Authorization Code, Assertion Flow, Client Credentials and Refresh Token flows" }, "response": [ { "id": "855db86f-694c-4251-8df3-12c1b06a8c19", "name": "Success", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: basic", "key": "Authorization", "value": "Basic " } ], "body": { "mode": "raw", "raw": "{\n \"grant_type\": \"authorization_code\",\n \"code\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/auth/oauth2/token", "host": [ "{{baseUrl}}" ], "path": [ "auth", "oauth2", "token" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"access_token\": \"\",\n \"expires_in\": \"\",\n \"token_type\": \"\",\n \"company_id\": \"\",\n \"refresh_token\": \"\",\n \"user_id\": \"\"\n}", "createdAt": "2026-07-28T02:46:48.000Z", "updatedAt": "2026-07-28T02:46:48.000Z", "uid": "35240-855db86f-694c-4251-8df3-12c1b06a8c19" }, { "id": "66db8255-32ac-4bc1-874e-ca66fa5c0a09", "name": "Bad Request", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: basic", "key": "Authorization", "value": "Basic " } ], "body": { "mode": "raw", "raw": "{\n \"grant_type\": \"authorization_code\",\n \"code\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/auth/oauth2/token", "host": [ "{{baseUrl}}" ], "path": [ "auth", "oauth2", "token" ] } }, "status": "Bad Request", "code": 400, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"\"\n}", "createdAt": "2026-07-28T02:46:48.000Z", "updatedAt": "2026-07-28T02:46:48.000Z", "uid": "35240-66db8255-32ac-4bc1-874e-ca66fa5c0a09" }, { "id": "7fc454e5-c1fc-48b4-8352-b9a2d63301a0", "name": "Unauthorized", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: basic", "key": "Authorization", "value": "Basic " } ], "body": { "mode": "raw", "raw": "{\n \"grant_type\": \"authorization_code\",\n \"code\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/auth/oauth2/token", "host": [ "{{baseUrl}}" ], "path": [ "auth", "oauth2", "token" ] } }, "status": "Unauthorized", "code": 401, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"Unauthorized\"\n}", "createdAt": "2026-07-28T02:46:48.000Z", "updatedAt": "2026-07-28T02:46:48.000Z", "uid": "35240-7fc454e5-c1fc-48b4-8352-b9a2d63301a0" }, { "id": "69f7cfee-1549-4880-a345-052d816f43ee", "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: basic", "key": "Authorization", "value": "Basic " } ], "body": { "mode": "raw", "raw": "{\n \"grant_type\": \"authorization_code\",\n \"code\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/auth/oauth2/token", "host": [ "{{baseUrl}}" ], "path": [ "auth", "oauth2", "token" ] } }, "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:46:48.000Z", "updatedAt": "2026-07-28T02:46:48.000Z", "uid": "35240-69f7cfee-1549-4880-a345-052d816f43ee" }, { "id": "e21aa43d-bb39-4058-8814-8245378911c4", "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: basic", "key": "Authorization", "value": "Basic " } ], "body": { "mode": "raw", "raw": "{\n \"grant_type\": \"authorization_code\",\n \"code\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/auth/oauth2/token", "host": [ "{{baseUrl}}" ], "path": [ "auth", "oauth2", "token" ] } }, "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:46:48.000Z", "updatedAt": "2026-07-28T02:46:48.000Z", "uid": "35240-e21aa43d-bb39-4058-8814-8245378911c4" }, { "id": "78072848-88b0-49d7-bdd2-5c7cc25d035e", "name": "Too many requests", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: basic", "key": "Authorization", "value": "Basic " } ], "body": { "mode": "raw", "raw": "{\n \"grant_type\": \"authorization_code\",\n \"code\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/auth/oauth2/token", "host": [ "{{baseUrl}}" ], "path": [ "auth", "oauth2", "token" ] } }, "status": "Too Many Requests", "code": 429, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"Too many requests\"\n}", "createdAt": "2026-07-28T02:46:48.000Z", "updatedAt": "2026-07-28T02:46:48.000Z", "uid": "35240-78072848-88b0-49d7-bdd2-5c7cc25d035e" } ], "createdAt": "2026-07-28T02:46:48.000Z", "updatedAt": "2026-07-28T02:46:48.000Z", "uid": "35240-525c965c-495e-4ddc-8d0a-85ba2a1e54e1" } ], "id": "39e1be3a-d7e6-4bb8-be5c-8a7227f27ef3", "createdAt": "2026-07-28T02:46:48.000Z", "updatedAt": "2026-07-28T02:46:48.000Z", "uid": "35240-39e1be3a-d7e6-4bb8-be5c-8a7227f27ef3" } ], "id": "2a7f7926-569d-4037-b405-e60b82ceeec1", "createdAt": "2026-07-28T02:46:48.000Z", "updatedAt": "2026-07-28T02:46:48.000Z", "uid": "35240-2a7f7926-569d-4037-b405-e60b82ceeec1" } ], "id": "560a4a1f-ae2a-41b2-9e5f-482394af9b9e", "createdAt": "2026-07-28T02:46:48.000Z", "updatedAt": "2026-07-28T02:46:48.000Z", "uid": "35240-560a4a1f-ae2a-41b2-9e5f-482394af9b9e" } ], "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/" } ] }