{"info":{"name":"Motaah API","description":"One API for the three Motaah clients: the employee app (`/v1/employee`), the establishment app (`/v1/establishment`), and the admin dashboard (`/v1/admin`).\n\n**Authentication.** Each namespace has its own opaque session token, sent as `Authorization: Bearer <token>`. Tokens are revocable server-side; a token from one namespace is rejected by the others. A refused token gets `401 UNAUTHORIZED`, except an app token whose account an admin deactivated: it gets `403 ACCOUNT_DISABLED`, whose `message` quotes the admin's reason; sign the user out and show it.\n\n**Errors.** Every error has the same shape: `{ code, message, details?, requestId }`. Branch on `code`, which is stable; `message` is translated for display. `details` lists field problems for `VALIDATION_FAILED`.\n\n**Language.** Messages are Arabic by default. Send `Accept-Language: en` (or `?lang=en`) for English. Responses carry `Content-Language`.\n\n**Request IDs.** Every response has an `X-Request-Id` header; quote it when reporting a problem.\n\n**Realtime.** Live events come over Socket.IO, not REST: connect to the API host with `path: '/realtime'`, `transports: ['websocket']`, and the namespace as the Socket.IO namespace (`/employee`, `/establishment`, `/admin`). The apps send `auth: { token, lang? }` with their session token; the dashboard sends `auth: { ticket }` from `POST /v1/admin/realtime/ticket`, so its token never reaches the browser. A refused connection gets `connect_error` with `err.data = { code, message }` (`UNAUTHORIZED`, `ACCOUNT_DISABLED`). The employee app connects without a session as a guest with `auth: { guest: true }`: it only receives broadcasts (at most a few per address, then `TOO_MANY_REQUESTS`). Whenever something a screen may show changes, sockets that may show it receive `data.changed { resource, id? }` (`jobs`, `report-reasons`, `content`, `settings`, `packages`, `establishments`, `employees`, `applications`, `subscriptions`, and for admins `contact-messages`, `broadcasts`, `admins`, `roles`): refetch what shows it; the event carries no data. When a session ends, the socket receives `session.ended { reason }` and is closed; reconnect after signing in again. New notifications arrive as `notification.new` (in both languages; show your own), and badge numbers as `unread.counts { notifications }`. Events reach every device of the account; a client that was offline refetches on reconnect.","schema":"https://schema.getpostman.com/json/collection/v2.1.0/collection.json"},"variable":[{"key":"baseUrl","value":"https://motaah-api.dev-moltaqa.cloud","description":"API origin, without /v1."},{"key":"employeeToken","value":"","description":"Session token for /v1/employee; filled by its sign-in request."},{"key":"establishmentToken","value":"","description":"Session token for /v1/establishment; filled by its sign-in request."},{"key":"adminToken","value":"","description":"Session token for /v1/admin; filled by its sign-in request."},{"key":"lang","value":"ar","description":"Accept-Language: ar or en."}],"item":[{"name":"Employee","auth":{"type":"bearer","bearer":[{"key":"token","value":"{{employeeToken}}","type":"string"}]},"item":[{"name":"Assistant","item":[{"name":"Assistant screen","request":{"method":"GET","description":"Suggested questions (send one as a message) and how many messages are left today.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/employee/assistant","host":["{{baseUrl}}"],"path":["v1","employee","assistant"]}}},{"name":"My chats","request":{"method":"GET","description":"The latest active first.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/employee/assistant/conversations?page=1&limit=20","host":["{{baseUrl}}"],"path":["v1","employee","assistant","conversations"],"query":[{"key":"page","value":"1","disabled":false,"description":"1-based page number."},{"key":"limit","value":"20","disabled":false,"description":"Items per page (1–100)."}]}}},{"name":"Start a chat","request":{"method":"POST","description":"Sends the first question and returns it with the answer. The answer can take several seconds. Counts toward the daily limit; a failed answer (`AI_UNAVAILABLE`) does not.","header":[{"key":"Accept-Language","value":"{{lang}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/employee/assistant/conversations","host":["{{baseUrl}}"],"path":["v1","employee","assistant","conversations"]},"body":{"mode":"raw","raw":"{\n  \"message\": \"How can I improve my CV?\"\n}","options":{"raw":{"language":"json"}}}}},{"name":"Open a chat","request":{"method":"GET","description":"Every message, oldest first.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/employee/assistant/conversations/:id","host":["{{baseUrl}}"],"path":["v1","employee","assistant","conversations",":id"],"variable":[{"key":"id","value":"string"}]}}},{"name":"Delete a chat","request":{"method":"DELETE","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/employee/assistant/conversations/:id","host":["{{baseUrl}}"],"path":["v1","employee","assistant","conversations",":id"],"variable":[{"key":"id","value":"string"}]}}},{"name":"Ask in a chat","request":{"method":"POST","description":"Adds a question and returns it with the answer; the last 20 messages give the context.","header":[{"key":"Accept-Language","value":"{{lang}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/employee/assistant/conversations/:id/messages","host":["{{baseUrl}}"],"path":["v1","employee","assistant","conversations",":id","messages"],"variable":[{"key":"id","value":"string"}]},"body":{"mode":"raw","raw":"{\n  \"message\": \"How can I improve my CV?\"\n}","options":{"raw":{"language":"json"}}}}}]},{"name":"Profile","item":[{"name":"My profile and CV","request":{"method":"GET","description":"Every section; empty ones are `[]` or `null`. `completion` says which are filled in. CV files come with signed, expiring URLs.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/employee/profile","host":["{{baseUrl}}"],"path":["v1","employee","profile"]}}},{"name":"Edit personal details, summary and CV files","request":{"method":"PATCH","description":"Send only what changes; `null` clears a field. Upload files first with `POST /v1/employee/files?purpose=cv`, `purpose=intro_video` or `purpose=employee_avatar`.","header":[{"key":"Accept-Language","value":"{{lang}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/employee/profile","host":["{{baseUrl}}"],"path":["v1","employee","profile"]},"body":{"mode":"raw","raw":"{\n  \"name\": \"سارة العتيبي\",\n  \"city\": \"الرياض\",\n  \"gender\": \"female\",\n  \"nationality\": \"SA\",\n  \"email\": \"sara@example.com\",\n  \"summary\": \"string\",\n  \"cvFileId\": \"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b\",\n  \"introVideoFileId\": \"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b\",\n  \"avatarFileId\": \"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b\"\n}","options":{"raw":{"language":"json"}}}}},{"name":"Replace my skills","request":{"method":"PUT","description":"The whole list, in order; repeats (ignoring case) are dropped.","header":[{"key":"Accept-Language","value":"{{lang}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/employee/profile/skills","host":["{{baseUrl}}"],"path":["v1","employee","profile","skills"]},"body":{"mode":"raw","raw":"{\n  \"skills\": [\n    \"Node.js\",\n    \"SQL\"\n  ]\n}","options":{"raw":{"language":"json"}}}}},{"name":"Add to experience","request":{"method":"POST","header":[{"key":"Accept-Language","value":"{{lang}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/employee/profile/experience","host":["{{baseUrl}}"],"path":["v1","employee","profile","experience"]},"body":{"mode":"raw","raw":"{\n  \"title\": \"مهندس برمجيات\",\n  \"company\": \"شركة مطاع\",\n  \"employment\": \"fullTime\",\n  \"startMonth\": 1,\n  \"startYear\": 2021,\n  \"current\": true,\n  \"endMonth\": 6,\n  \"endYear\": 2024,\n  \"duties\": \"تطوير واجهات برمجة التطبيقات\"\n}","options":{"raw":{"language":"json"}}}}},{"name":"Replace a experience entry","request":{"method":"PUT","description":"Send every field, as when adding.","header":[{"key":"Accept-Language","value":"{{lang}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/employee/profile/experience/:id","host":["{{baseUrl}}"],"path":["v1","employee","profile","experience",":id"],"variable":[{"key":"id","value":"string"}]},"body":{"mode":"raw","raw":"{\n  \"title\": \"مهندس برمجيات\",\n  \"company\": \"شركة مطاع\",\n  \"employment\": \"fullTime\",\n  \"startMonth\": 1,\n  \"startYear\": 2021,\n  \"current\": true,\n  \"endMonth\": 6,\n  \"endYear\": 2024,\n  \"duties\": \"تطوير واجهات برمجة التطبيقات\"\n}","options":{"raw":{"language":"json"}}}}},{"name":"Remove a experience entry","request":{"method":"DELETE","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/employee/profile/experience/:id","host":["{{baseUrl}}"],"path":["v1","employee","profile","experience",":id"],"variable":[{"key":"id","value":"string"}]}}},{"name":"Add to education","request":{"method":"POST","header":[{"key":"Accept-Language","value":"{{lang}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/employee/profile/education","host":["{{baseUrl}}"],"path":["v1","employee","profile","education"]},"body":{"mode":"raw","raw":"{\n  \"degree\": \"بكالوريوس\",\n  \"institution\": \"جامعة الملك سعود\",\n  \"specialization\": \"علوم الحاسب\",\n  \"year\": 2018\n}","options":{"raw":{"language":"json"}}}}},{"name":"Replace a education entry","request":{"method":"PUT","description":"Send every field, as when adding.","header":[{"key":"Accept-Language","value":"{{lang}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/employee/profile/education/:id","host":["{{baseUrl}}"],"path":["v1","employee","profile","education",":id"],"variable":[{"key":"id","value":"string"}]},"body":{"mode":"raw","raw":"{\n  \"degree\": \"بكالوريوس\",\n  \"institution\": \"جامعة الملك سعود\",\n  \"specialization\": \"علوم الحاسب\",\n  \"year\": 2018\n}","options":{"raw":{"language":"json"}}}}},{"name":"Remove a education entry","request":{"method":"DELETE","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/employee/profile/education/:id","host":["{{baseUrl}}"],"path":["v1","employee","profile","education",":id"],"variable":[{"key":"id","value":"string"}]}}},{"name":"Add to links","request":{"method":"POST","header":[{"key":"Accept-Language","value":"{{lang}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/employee/profile/links","host":["{{baseUrl}}"],"path":["v1","employee","profile","links"]},"body":{"mode":"raw","raw":"{\n  \"platform\": \"LinkedIn\",\n  \"url\": \"https://linkedin.com/in/sara\"\n}","options":{"raw":{"language":"json"}}}}},{"name":"Replace a links entry","request":{"method":"PUT","description":"Send every field, as when adding.","header":[{"key":"Accept-Language","value":"{{lang}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/employee/profile/links/:id","host":["{{baseUrl}}"],"path":["v1","employee","profile","links",":id"],"variable":[{"key":"id","value":"string"}]},"body":{"mode":"raw","raw":"{\n  \"platform\": \"LinkedIn\",\n  \"url\": \"https://linkedin.com/in/sara\"\n}","options":{"raw":{"language":"json"}}}}},{"name":"Remove a links entry","request":{"method":"DELETE","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/employee/profile/links/:id","host":["{{baseUrl}}"],"path":["v1","employee","profile","links",":id"],"variable":[{"key":"id","value":"string"}]}}},{"name":"Add to certificates","request":{"method":"POST","header":[{"key":"Accept-Language","value":"{{lang}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/employee/profile/certificates","host":["{{baseUrl}}"],"path":["v1","employee","profile","certificates"]},"body":{"mode":"raw","raw":"{\n  \"name\": \"AWS Solutions Architect\",\n  \"issuer\": \"Amazon\",\n  \"month\": 3,\n  \"year\": 2024\n}","options":{"raw":{"language":"json"}}}}},{"name":"Replace a certificates entry","request":{"method":"PUT","description":"Send every field, as when adding.","header":[{"key":"Accept-Language","value":"{{lang}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/employee/profile/certificates/:id","host":["{{baseUrl}}"],"path":["v1","employee","profile","certificates",":id"],"variable":[{"key":"id","value":"string"}]},"body":{"mode":"raw","raw":"{\n  \"name\": \"AWS Solutions Architect\",\n  \"issuer\": \"Amazon\",\n  \"month\": 3,\n  \"year\": 2024\n}","options":{"raw":{"language":"json"}}}}},{"name":"Remove a certificates entry","request":{"method":"DELETE","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/employee/profile/certificates/:id","host":["{{baseUrl}}"],"path":["v1","employee","profile","certificates",":id"],"variable":[{"key":"id","value":"string"}]}}},{"name":"Add to languages","request":{"method":"POST","header":[{"key":"Accept-Language","value":"{{lang}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/employee/profile/languages","host":["{{baseUrl}}"],"path":["v1","employee","profile","languages"]},"body":{"mode":"raw","raw":"{\n  \"language\": \"العربية\",\n  \"level\": \"advanced\"\n}","options":{"raw":{"language":"json"}}}}},{"name":"Replace a languages entry","request":{"method":"PUT","description":"Send every field, as when adding.","header":[{"key":"Accept-Language","value":"{{lang}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/employee/profile/languages/:id","host":["{{baseUrl}}"],"path":["v1","employee","profile","languages",":id"],"variable":[{"key":"id","value":"string"}]},"body":{"mode":"raw","raw":"{\n  \"language\": \"العربية\",\n  \"level\": \"advanced\"\n}","options":{"raw":{"language":"json"}}}}},{"name":"Remove a languages entry","request":{"method":"DELETE","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/employee/profile/languages/:id","host":["{{baseUrl}}"],"path":["v1","employee","profile","languages",":id"],"variable":[{"key":"id","value":"string"}]}}},{"name":"Add to licenses","request":{"method":"POST","header":[{"key":"Accept-Language","value":"{{lang}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/employee/profile/licenses","host":["{{baseUrl}}"],"path":["v1","employee","profile","licenses"]},"body":{"mode":"raw","raw":"{\n  \"name\": \"رخصة قيادة\",\n  \"issuer\": \"المرور\",\n  \"year\": 2016\n}","options":{"raw":{"language":"json"}}}}},{"name":"Replace a licenses entry","request":{"method":"PUT","description":"Send every field, as when adding.","header":[{"key":"Accept-Language","value":"{{lang}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/employee/profile/licenses/:id","host":["{{baseUrl}}"],"path":["v1","employee","profile","licenses",":id"],"variable":[{"key":"id","value":"string"}]},"body":{"mode":"raw","raw":"{\n  \"name\": \"رخصة قيادة\",\n  \"issuer\": \"المرور\",\n  \"year\": 2016\n}","options":{"raw":{"language":"json"}}}}},{"name":"Remove a licenses entry","request":{"method":"DELETE","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/employee/profile/licenses/:id","host":["{{baseUrl}}"],"path":["v1","employee","profile","licenses",":id"],"variable":[{"key":"id","value":"string"}]}}}]},{"name":"Account","item":[{"name":"My account","request":{"method":"GET","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/employee/account","host":["{{baseUrl}}"],"path":["v1","employee","account"]}}},{"name":"Change my language","request":{"method":"PATCH","description":"Requests without `Accept-Language` or `?lang=` are answered in it from the next request.","header":[{"key":"Accept-Language","value":"{{lang}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/employee/account","host":["{{baseUrl}}"],"path":["v1","employee","account"]},"body":{"mode":"raw","raw":"{\n  \"language\": \"en\"\n}","options":{"raw":{"language":"json"}}}}},{"name":"Send a code to a new number","request":{"method":"POST","description":"Step 1 of changing the mobile number: the code goes to the new number. Employees only: establishments get `MOBILE_CHANGE_NOT_ALLOWED`.","header":[{"key":"Accept-Language","value":"{{lang}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/employee/account/mobile/otp","host":["{{baseUrl}}"],"path":["v1","employee","account","mobile","otp"]},"body":{"mode":"raw","raw":"{\n  \"mobile\": \"0551234567\"\n}","options":{"raw":{"language":"json"}}}}},{"name":"Change my mobile number","request":{"method":"POST","description":"Step 2: checks the code sent to the new number and swaps it in. Every other device is signed out; this one stays signed in. Employees only: establishments get `MOBILE_CHANGE_NOT_ALLOWED`.","header":[{"key":"Accept-Language","value":"{{lang}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/employee/account/mobile","host":["{{baseUrl}}"],"path":["v1","employee","account","mobile"]},"body":{"mode":"raw","raw":"{\n  \"code\": \"1234\",\n  \"mobile\": \"0551234567\"\n}","options":{"raw":{"language":"json"}}}}},{"name":"Send the account deletion code (unused)","request":{"method":"POST","description":"No longer needed: deleting takes no code since BUG-57. Kept for app versions that still ask for one.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/employee/account/delete/otp","host":["{{baseUrl}}"],"path":["v1","employee","account","delete","otp"]}}},{"name":"Delete my account","request":{"method":"POST","description":"Deletes the account at once, with no code (BUG-57; a `code` from older app versions is ignored). Your details and number are removed (the number can register a new, empty account), every device is signed out, this one included (its socket gets `session.ended` with `account_deleted`), and your jobs, applications and chats leave the other app. The dashboard keeps the records (subscriptions, payments, history).","header":[{"key":"Accept-Language","value":"{{lang}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/employee/account/delete","host":["{{baseUrl}}"],"path":["v1","employee","account","delete"]},"body":{"mode":"raw","raw":"{\n  \"code\": \"1234\"\n}","options":{"raw":{"language":"json"}}}}}]},{"name":"Contact","item":[{"name":"Contact screen","request":{"method":"GET","description":"The contact channels (a `null` one is hidden) and the message types, in the request language.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/employee/contact","host":["{{baseUrl}}"],"path":["v1","employee","contact"]},"auth":{"type":"noauth"}}},{"name":"Send a message","request":{"method":"POST","description":"Guests can send. With a valid token of this app the message is linked to the account; an expired or missing token just sends as a guest. At most 3 per hour per mobile (or account) and 5 per hour per IP.","header":[{"key":"Accept-Language","value":"{{lang}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/employee/contact/messages","host":["{{baseUrl}}"],"path":["v1","employee","contact","messages"]},"body":{"mode":"raw","raw":"{\n  \"name\": \"سارة العتيبي\",\n  \"email\": \"sara@example.com\",\n  \"mobile\": \"0551234567\",\n  \"type\": \"inquiry\",\n  \"message\": \"كيف أضيف سيرتي الذاتية؟\"\n}","options":{"raw":{"language":"json"}}},"auth":{"type":"noauth"}}}]},{"name":"Settings","item":[{"name":"Read app settings","request":{"method":"GET","description":"Contact channels (a `null` channel is hidden) and app store links. Public and cached; changes in the dashboard apply immediately.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/employee/settings","host":["{{baseUrl}}"],"path":["v1","employee","settings"]},"auth":{"type":"noauth"}}}]},{"name":"Content","item":[{"name":"Read a page","request":{"method":"GET","description":"About, Terms, Privacy, or the text above the contact form, as rich text (HTML). Terms and Privacy are this app's own; About and the contact text are shared. When a text is empty in the request language, the other language is used.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/employee/content/pages/:key","host":["{{baseUrl}}"],"path":["v1","employee","content","pages",":key"],"variable":[{"key":"key","value":"about"}]},"auth":{"type":"noauth"}}},{"name":"Read the FAQ","request":{"method":"GET","description":"Questions and rich-text answers, in display order.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/employee/content/faqs","host":["{{baseUrl}}"],"path":["v1","employee","content","faqs"]},"auth":{"type":"noauth"}}}]},{"name":"Cities","item":[{"name":"List cities","request":{"method":"GET","description":"Saudi cities a job can be located in, each with its region, sorted by name in the request language. Public and cached.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/employee/cities","host":["{{baseUrl}}"],"path":["v1","employee","cities"]},"auth":{"type":"noauth"}}}]},{"name":"Auth","item":[{"name":"Send a login code","request":{"method":"POST","description":"Sends a 4-digit code to a registered number. Call again to resend, once `resendAfterSeconds` have passed. `MOBILE_NOT_REGISTERED` means the app should offer registration.","header":[{"key":"Accept-Language","value":"{{lang}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/employee/auth/login/otp","host":["{{baseUrl}}"],"path":["v1","employee","auth","login","otp"]},"body":{"mode":"raw","raw":"{\n  \"mobile\": \"0551234567\"\n}","options":{"raw":{"language":"json"}}},"auth":{"type":"noauth"}}},{"name":"Log in with the code","request":{"method":"POST","description":"Checks the login code and starts a session.","header":[{"key":"Accept-Language","value":"{{lang}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/employee/auth/login","host":["{{baseUrl}}"],"path":["v1","employee","auth","login"]},"body":{"mode":"raw","raw":"{\n  \"mobile\": \"0551234567\",\n  \"code\": \"1234\",\n  \"deviceName\": \"iPhone 16\"\n}","options":{"raw":{"language":"json"}}},"auth":{"type":"noauth"}},"event":[{"listen":"test","script":{"type":"text/javascript","exec":["// Saves the new session token for the requests that follow.","if (pm.response.code >= 200 && pm.response.code < 300) {","  const token = pm.response.json()[\"accessToken\"];","  if (token) pm.collectionVariables.set(\"employeeToken\", token);","}"]}}]},{"name":"Send a registration code","request":{"method":"POST","description":"Sends a 4-digit code to a number with no account. `MOBILE_ALREADY_REGISTERED` means the app should offer login.","header":[{"key":"Accept-Language","value":"{{lang}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/employee/auth/register/otp","host":["{{baseUrl}}"],"path":["v1","employee","auth","register","otp"]},"body":{"mode":"raw","raw":"{\n  \"mobile\": \"0551234567\"\n}","options":{"raw":{"language":"json"}}},"auth":{"type":"noauth"}}},{"name":"Register with the code","request":{"method":"POST","description":"Checks the registration code, creates the account and starts a session.","header":[{"key":"Accept-Language","value":"{{lang}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/employee/auth/register","host":["{{baseUrl}}"],"path":["v1","employee","auth","register"]},"body":{"mode":"raw","raw":"{\n  \"mobile\": \"0551234567\",\n  \"code\": \"1234\",\n  \"deviceName\": \"iPhone 16\"\n}","options":{"raw":{"language":"json"}}},"auth":{"type":"noauth"}},"event":[{"listen":"test","script":{"type":"text/javascript","exec":["// Saves the new session token for the requests that follow.","if (pm.response.code >= 200 && pm.response.code < 300) {","  const token = pm.response.json()[\"accessToken\"];","  if (token) pm.collectionVariables.set(\"employeeToken\", token);","}"]}}]},{"name":"Sign out","request":{"method":"POST","description":"Ends the session of the token sent. The token stops working immediately.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/employee/auth/logout","host":["{{baseUrl}}"],"path":["v1","employee","auth","logout"]}}},{"name":"List signed-in devices","request":{"method":"GET","description":"Your live sessions, most recently used first. `current` marks this device.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/employee/auth/sessions","host":["{{baseUrl}}"],"path":["v1","employee","auth","sessions"]}}},{"name":"Sign out all other devices","request":{"method":"DELETE","description":"Ends every session except the one making this request.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/employee/auth/sessions","host":["{{baseUrl}}"],"path":["v1","employee","auth","sessions"]}}},{"name":"Sign out one device","request":{"method":"DELETE","description":"Ends one of your sessions; that device is signed out on its next request. Using the current session id works like signing out.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/employee/auth/sessions/:id","host":["{{baseUrl}}"],"path":["v1","employee","auth","sessions",":id"],"variable":[{"key":"id","value":"string"}]}}}]},{"name":"Files","item":[{"name":"Upload a file","request":{"method":"POST","description":"Send the file as multipart/form-data in the `file` field. Its type is checked from its bytes. Then pass the returned `id` to the endpoint that uses it; files unused after 24 hours are deleted.\n\n- `cv`: PDF, DOCX, DOC, up to 10 MB, private\n- `intro_video`: MP4, MOV, WEBM, up to 100 MB, private\n- `employee_avatar`: PNG, JPG, WEBP, up to 2 MB, public\n- `chat_image`: PNG, JPG, WEBP, up to 5 MB, private\n- `chat_file`: PDF, DOCX, DOC, XLSX, XLS, up to 10 MB, private\n- `chat_voice`: M4A, AAC, up to 3 MB, private","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/employee/files?purpose=cv","host":["{{baseUrl}}"],"path":["v1","employee","files"],"query":[{"key":"purpose","value":"cv","disabled":false}]},"body":{"mode":"formdata","formdata":[{"key":"file","type":"file"}]}}}]},{"name":"Devices","item":[{"name":"Register this device for push","request":{"method":"PUT","description":"Call after signing in, whenever the messaging SDK gives a new token, and when the app's language changes. One device per sign-in: calling again replaces it. Signing out (or any other end of the session) removes it.","header":[{"key":"Accept-Language","value":"{{lang}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/employee/devices","host":["{{baseUrl}}"],"path":["v1","employee","devices"]},"body":{"mode":"raw","raw":"{\n  \"token\": \"x\",\n  \"platform\": \"android\",\n  \"locale\": \"ar\"\n}","options":{"raw":{"language":"json"}}}}},{"name":"Stop push on this device","request":{"method":"DELETE","description":"Removes this sign-in's device; the session stays.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/employee/devices","host":["{{baseUrl}}"],"path":["v1","employee","devices"]}}}]},{"name":"Notifications","item":[{"name":"My notifications","request":{"method":"GET","description":"Newest first, in the request language. Pages by cursor: pass the previous `nextCursor` as `cursor` (null means the last page). New ones also arrive live as `notification.new` on the realtime socket.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/employee/notifications?limit=20","host":["{{baseUrl}}"],"path":["v1","employee","notifications"],"query":[{"key":"cursor","value":"string","disabled":true,"description":"From the previous page's `nextCursor`; omit for the first page."},{"key":"limit","value":"20","disabled":false,"description":"Items per page (1–50)."}]}}},{"name":"Unread count","request":{"method":"GET","description":"For the bell badge. Updates arrive live as `unread.counts` on the realtime socket.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/employee/notifications/unread-count","host":["{{baseUrl}}"],"path":["v1","employee","notifications","unread-count"]}}},{"name":"Mark one read","request":{"method":"POST","description":"Idempotent. Other devices get the new count live.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/employee/notifications/:id/read","host":["{{baseUrl}}"],"path":["v1","employee","notifications",":id","read"],"variable":[{"key":"id","value":"string"}]}}},{"name":"Mark all read","request":{"method":"POST","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/employee/notifications/read-all","host":["{{baseUrl}}"],"path":["v1","employee","notifications","read-all"]}}}]},{"name":"Jobs","item":[{"name":"Report a job","request":{"method":"POST","description":"With a reason from `GET /report-reasons` and optional notes (500 characters). Once per job (`ALREADY_REPORTED`); only open jobs (`JOB_NOT_AVAILABLE`). When enough employees report a job it is suspended automatically and leaves the feed.","header":[{"key":"Accept-Language","value":"{{lang}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/employee/jobs/:id/report","host":["{{baseUrl}}"],"path":["v1","employee","jobs",":id","report"],"variable":[{"key":"id","value":"string"}]},"body":{"mode":"raw","raw":"{\n  \"reasonId\": \"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b\",\n  \"notes\": \"Asked me to pay a fee\"\n}","options":{"raw":{"language":"json"}}}}},{"name":"Apply for a job","request":{"method":"POST","description":"Needs a CV file in the profile (`CV_REQUIRED`, with `cvFile` in `details`: open the upload-CV sheet). Without a name, the establishment sees the mobile instead. The CV is copied, so later changes to it don't touch the application. Once per job (`ALREADY_APPLIED`); the job must be open (`JOB_NOT_AVAILABLE`). The establishment is notified.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/employee/jobs/:id/apply","host":["{{baseUrl}}"],"path":["v1","employee","jobs",":id","apply"],"variable":[{"key":"id","value":"string"}]}}},{"name":"Home feed","request":{"method":"GET","description":"Open jobs only. Guests (no token, or one that is no longer valid) get the newest. A signed-in employee with a CV file or any CV section gets them ranked: jobs in their city (remote counts) first, then those whose title or requirements contain more of their skills and experience titles, then newest. With no CV at all, `needsCv` is true and there are no items. Pages are numbered; send back the first page's `asOf`.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/employee/jobs/feed?page=1&limit=20","host":["{{baseUrl}}"],"path":["v1","employee","jobs","feed"],"query":[{"key":"page","value":"1","disabled":false,"description":"1-based page number."},{"key":"limit","value":"20","disabled":false,"description":"Items per page (1–100)."},{"key":"asOf","value":"2026-10-01T09:00:00.000Z","disabled":true,"description":"The `asOf` the first page returned: later pages only list jobs\npublished by then, so a new post can't shift them. Omit on the first\npage."}]},"auth":{"type":"noauth"}}},{"name":"Search jobs","request":{"method":"GET","description":"Open jobs whose title, company name or requirements contain every word of `q` (Arabic spelling variants and letter case are ignored), filtered by workplace and employment type. Newest first, with `total` for the results count. Guests can search.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/employee/jobs/search?page=1&limit=20","host":["{{baseUrl}}"],"path":["v1","employee","jobs","search"],"query":[{"key":"page","value":"1","disabled":false,"description":"1-based page number."},{"key":"limit","value":"20","disabled":false,"description":"Items per page (1–100)."},{"key":"q","value":"محاسب","disabled":true,"description":"Words to find in the title, the company name or the requirements;\nevery word must match. Arabic spelling variants match each other."},{"key":"workplaceType","value":"[\"remote\"]","disabled":true,"description":"One or more: `?workplaceType=remote&workplaceType=hybrid` or\n`remote,hybrid`."},{"key":"employmentType","value":"[\"full_time\",\"part_time\"]","disabled":true,"description":"One or more, like `workplaceType`."},{"key":"asOf","value":"2026-10-01T09:00:00.000Z","disabled":true,"description":"The `asOf` the first page returned: later pages only list jobs\npublished by then, so a new post can't shift them. Omit on the first\npage."}]},"auth":{"type":"noauth"}}},{"name":"One job","request":{"method":"GET","description":"Guests can open it too; `saved` and `application` are then null. Jobs that are no longer open still show, with `available` and `canApply` false. Opening an open job counts a view: once a day per employee, every time for guests.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/employee/jobs/:id","host":["{{baseUrl}}"],"path":["v1","employee","jobs",":id"],"variable":[{"key":"id","value":"string"}]},"auth":{"type":"noauth"}}},{"name":"Save a job","request":{"method":"PUT","description":"Safe to repeat: saving again keeps the first save time. Works for jobs no longer open too (they show as unavailable in the list). Undoing an unsave is just this again.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/employee/jobs/:id/save","host":["{{baseUrl}}"],"path":["v1","employee","jobs",":id","save"],"variable":[{"key":"id","value":"string"}]}}},{"name":"Unsave a job","request":{"method":"DELETE","description":"Safe to repeat: 204 whether or not it was saved.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/employee/jobs/:id/save","host":["{{baseUrl}}"],"path":["v1","employee","jobs",":id","save"],"variable":[{"key":"id","value":"string"}]}}},{"name":"My saved jobs","request":{"method":"GET","description":"Newest save first, paged by cursor. Jobs that are no longer open stay listed with `available: false`.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/employee/saved-jobs?limit=20","host":["{{baseUrl}}"],"path":["v1","employee","saved-jobs"],"query":[{"key":"cursor","value":"string","disabled":true,"description":"From the previous page's `nextCursor`; omit for the first page."},{"key":"limit","value":"20","disabled":false,"description":"Items per page (1–50)."}]}}}]},{"name":"Applications","item":[{"name":"My applications","request":{"method":"GET","description":"Newest first, paged by cursor, filtered by the group chip. Each card has the raw `status`, its `group` (for the badge) and the job, with `available` false once it is no longer open.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/employee/applications?limit=20&group=under_review","host":["{{baseUrl}}"],"path":["v1","employee","applications"],"query":[{"key":"cursor","value":"string","disabled":true,"description":"From the previous page's `nextCursor`; omit for the first page."},{"key":"limit","value":"20","disabled":false,"description":"Items per page (1–50)."},{"key":"group","value":"under_review","disabled":false,"description":"The chip: `under_review`, `accepted`, `rejected` or `cancelled`."}]}}},{"name":"One of my applications","request":{"method":"GET","description":"The application (with the CV as sent, a signed link) and the job details. Opening it does not count a job view.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/employee/applications/:id","host":["{{baseUrl}}"],"path":["v1","employee","applications",":id"],"variable":[{"key":"id","value":"string"}]}}},{"name":"Withdraw an application","request":{"method":"POST","description":"P1, no screen yet. Only while it is still open (`APPLICATION_ACTION_NOT_ALLOWED` otherwise).","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/employee/applications/:id/withdraw","host":["{{baseUrl}}"],"path":["v1","employee","applications",":id","withdraw"],"variable":[{"key":"id","value":"string"}]}}}]},{"name":"Chat","item":[{"name":"My conversations","request":{"method":"GET","description":"Most recent activity first, by cursor. Each has the other side (name and photo or logo), the `APP-` number, the last message, my unread count and `closed` (read-only). Updates arrive live as `conversation.updated`.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/employee/conversations?limit=20","host":["{{baseUrl}}"],"path":["v1","employee","conversations"],"query":[{"key":"cursor","value":"string","disabled":true,"description":"From the previous page's `nextCursor`; omit for the first page."},{"key":"limit","value":"20","disabled":false,"description":"Items per page (1–50)."}]}}},{"name":"Unread chats","request":{"method":"GET","description":"For the tab badge. Updates arrive live as `unread.counts` (`messages`).","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/employee/conversations/unread-count","host":["{{baseUrl}}"],"path":["v1","employee","conversations","unread-count"]}}},{"name":"One conversation","request":{"method":"GET","description":"The chat header: who, the `APP-` number, and `closed`.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/employee/conversations/:id","host":["{{baseUrl}}"],"path":["v1","employee","conversations",":id"],"variable":[{"key":"id","value":"string"}]}}},{"name":"Messages","request":{"method":"GET","description":"Newest first; `cursor` loads older ones. Attachments are signed links. `read` says the recipient has read it. New ones arrive live as `message.new`; tell the socket `conversation.open` while the chat is on screen, so no push is sent for it.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/employee/conversations/:id/messages?limit=20","host":["{{baseUrl}}"],"path":["v1","employee","conversations",":id","messages"],"query":[{"key":"cursor","value":"string","disabled":true,"description":"From the previous page's `nextCursor`; omit for the first page."},{"key":"limit","value":"20","disabled":false,"description":"Items per page (1–50)."}],"variable":[{"key":"id","value":"string"}]}}},{"name":"Send a message","request":{"method":"POST","description":"Text, or an image, file or voice note uploaded first (`POST /files` with purpose `chat_image`, `chat_file` or `chat_voice`); an upload is sent once, by its uploader (`NOT_FOUND` otherwise). Refused once the chat is read-only (`CONVERSATION_CLOSED`). The other side gets it live, and a push unless the chat is on their screen.","header":[{"key":"Accept-Language","value":"{{lang}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/employee/conversations/:id/messages","host":["{{baseUrl}}"],"path":["v1","employee","conversations",":id","messages"],"variable":[{"key":"id","value":"string"}]},"body":{"mode":"raw","raw":"{\n  \"name\": \"سارة العتيبي\",\n  \"email\": \"sara@example.com\",\n  \"mobile\": \"0551234567\",\n  \"type\": \"inquiry\",\n  \"message\": \"كيف أضيف سيرتي الذاتية؟\"\n}","options":{"raw":{"language":"json"}}}}},{"name":"Mark read","request":{"method":"POST","description":"Everything up to now. The other side gets `message.read` (read receipts).","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/employee/conversations/:id/read","host":["{{baseUrl}}"],"path":["v1","employee","conversations",":id","read"],"variable":[{"key":"id","value":"string"}]}}}]},{"name":"Report reasons","item":[{"name":"Report reasons","request":{"method":"GET","description":"Active reasons in display order, in the request language, for the report sheet. Public; reporting itself needs a session.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/employee/report-reasons","host":["{{baseUrl}}"],"path":["v1","employee","report-reasons"]},"auth":{"type":"noauth"}}}]}]},{"name":"Establishment","auth":{"type":"bearer","bearer":[{"key":"token","value":"{{establishmentToken}}","type":"string"}]},"item":[{"name":"Applicants","item":[{"name":"A job's applicants","request":{"method":"GET","description":"Newest applied first, paged by cursor, filtered by the chip and the applied date (Saudi days, both inclusive). Cards carry no mobile, ID or email.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/establishment/jobs/:jobId/applicants?limit=20&chip=new","host":["{{baseUrl}}"],"path":["v1","establishment","jobs",":jobId","applicants"],"query":[{"key":"cursor","value":"string","disabled":true,"description":"From the previous page's `nextCursor`; omit for the first page."},{"key":"limit","value":"20","disabled":false,"description":"Items per page (1–50)."},{"key":"chip","value":"new","disabled":false,"description":"The chip: `new`, `reviewed`, `contacted`, `accepted`, `rejected` or\n`cancelled`."},{"key":"appliedFrom","value":"2026-09-03","disabled":true,"description":"Applied on or after this Saudi calendar day."},{"key":"appliedTo","value":"2026-09-03","disabled":true,"description":"Applied on or before this Saudi calendar day (send the same day as\n`appliedFrom` for one day)."}],"variable":[{"key":"jobId","value":"string"}]}}},{"name":"One applicant","request":{"method":"GET","description":"The light CV summary with the CV as sent (a signed link). Opening a new application marks it `viewed` (Reviewed) and tells the employee.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/establishment/applicants/:id","host":["{{baseUrl}}"],"path":["v1","establishment","applicants",":id"],"variable":[{"key":"id","value":"string"}]}}},{"name":"Reject an applicant","request":{"method":"POST","description":"Only while the application is open (`APPLICATION_ACTION_NOT_ALLOWED`). The employee is told.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/establishment/applicants/:id/reject","host":["{{baseUrl}}"],"path":["v1","establishment","applicants",":id","reject"],"variable":[{"key":"id","value":"string"}]}}},{"name":"Contact an applicant","request":{"method":"POST","description":"Marks the application `contacted` (the employee is told, once) and returns its conversation, the same one every time. Not for a closed job (`JOB_CLOSED`) or a final application (`APPLICATION_ACTION_NOT_ALLOWED`).","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/establishment/applicants/:id/contact","host":["{{baseUrl}}"],"path":["v1","establishment","applicants",":id","contact"],"variable":[{"key":"id","value":"string"}]}}},{"name":"Accept an applicant","request":{"method":"POST","description":"From any open status (BUG-62): the application becomes `accepted`, the employee is told, and one vacancy is taken. The last vacancy fills the job: the other open applications become `position_filled` and the job takes no more applicants until an acceptance is cancelled. Not for a closed job (`JOB_CLOSED`), a full one (`VACANCIES_FILLED`) or a final application (`APPLICATION_ACTION_NOT_ALLOWED`).","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/establishment/applicants/:id/accept","host":["{{baseUrl}}"],"path":["v1","establishment","applicants",":id","accept"],"variable":[{"key":"id","value":"string"}]}}},{"name":"Cancel an applicant's acceptance","request":{"method":"POST","description":"Before contracting (BUG-62): an `accepted` application goes back to the status it was accepted from (Reviewed if it was new), its vacancy is free again and the employee is told. Applications already `position_filled` stay so. Not for a closed job (`JOB_CLOSED`) or an application that isn't accepted (`APPLICATION_ACTION_NOT_ALLOWED`).","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/establishment/applicants/:id/cancel-acceptance","host":["{{baseUrl}}"],"path":["v1","establishment","applicants",":id","cancel-acceptance"],"variable":[{"key":"id","value":"string"}]}}},{"name":"Rate an accepted employee","request":{"method":"POST","description":"Once the job has ended (closed, expired or past its end date), an `accepted` application can be rated once: 1 to 5 `stars` and an optional `comment` (up to 500 characters). Final: a second rating is `ALREADY_RATED`. Otherwise `APPLICATION_ACTION_NOT_ALLOWED`. Returns the card, with `myRating` set and `rate` gone from `actions`.","header":[{"key":"Accept-Language","value":"{{lang}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/establishment/applicants/:id/rating","host":["{{baseUrl}}"],"path":["v1","establishment","applicants",":id","rating"],"variable":[{"key":"id","value":"string"}]},"body":{"mode":"raw","raw":"{\n  \"stars\": 4,\n  \"comment\": \"ملتزم بالمواعيد ومتعاون\"\n}","options":{"raw":{"language":"json"}}}}}]},{"name":"Chat","item":[{"name":"My conversations","request":{"method":"GET","description":"Most recent activity first, by cursor. Each has the other side (name and photo or logo), the `APP-` number, the last message, my unread count and `closed` (read-only). Updates arrive live as `conversation.updated`.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/establishment/conversations?limit=20","host":["{{baseUrl}}"],"path":["v1","establishment","conversations"],"query":[{"key":"cursor","value":"string","disabled":true,"description":"From the previous page's `nextCursor`; omit for the first page."},{"key":"limit","value":"20","disabled":false,"description":"Items per page (1–50)."}]}}},{"name":"Unread chats","request":{"method":"GET","description":"For the tab badge. Updates arrive live as `unread.counts` (`messages`).","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/establishment/conversations/unread-count","host":["{{baseUrl}}"],"path":["v1","establishment","conversations","unread-count"]}}},{"name":"One conversation","request":{"method":"GET","description":"The chat header: who, the `APP-` number, and `closed`.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/establishment/conversations/:id","host":["{{baseUrl}}"],"path":["v1","establishment","conversations",":id"],"variable":[{"key":"id","value":"string"}]}}},{"name":"Messages","request":{"method":"GET","description":"Newest first; `cursor` loads older ones. Attachments are signed links. `read` says the recipient has read it. New ones arrive live as `message.new`; tell the socket `conversation.open` while the chat is on screen, so no push is sent for it.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/establishment/conversations/:id/messages?limit=20","host":["{{baseUrl}}"],"path":["v1","establishment","conversations",":id","messages"],"query":[{"key":"cursor","value":"string","disabled":true,"description":"From the previous page's `nextCursor`; omit for the first page."},{"key":"limit","value":"20","disabled":false,"description":"Items per page (1–50)."}],"variable":[{"key":"id","value":"string"}]}}},{"name":"Send a message","request":{"method":"POST","description":"Text, or an image, file or voice note uploaded first (`POST /files` with purpose `chat_image`, `chat_file` or `chat_voice`); an upload is sent once, by its uploader (`NOT_FOUND` otherwise). Refused once the chat is read-only (`CONVERSATION_CLOSED`). The other side gets it live, and a push unless the chat is on their screen.","header":[{"key":"Accept-Language","value":"{{lang}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/establishment/conversations/:id/messages","host":["{{baseUrl}}"],"path":["v1","establishment","conversations",":id","messages"],"variable":[{"key":"id","value":"string"}]},"body":{"mode":"raw","raw":"{\n  \"name\": \"سارة العتيبي\",\n  \"email\": \"sara@example.com\",\n  \"mobile\": \"0551234567\",\n  \"type\": \"inquiry\",\n  \"message\": \"كيف أضيف سيرتي الذاتية؟\"\n}","options":{"raw":{"language":"json"}}}}},{"name":"Mark read","request":{"method":"POST","description":"Everything up to now. The other side gets `message.read` (read receipts).","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/establishment/conversations/:id/read","host":["{{baseUrl}}"],"path":["v1","establishment","conversations",":id","read"],"variable":[{"key":"id","value":"string"}]}}}]},{"name":"Home","item":[{"name":"Home screen","request":{"method":"GET","description":"The header (from the profile), the three summary counts, the latest published jobs and the running subscription. Jobs arrive in Sprint 2: until then the counts are 0 and the list is empty, in the shape documented here.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/establishment/home","host":["{{baseUrl}}"],"path":["v1","establishment","home"]}}}]},{"name":"Jobs","item":[{"name":"My jobs","request":{"method":"GET","description":"Newest published first, filtered by the status chip (`group`). An active job past its listing period shows as `expired` (Ended). Pages by cursor. `quota` drives the post button (null without a running subscription).","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/establishment/jobs?limit=20&group=active","host":["{{baseUrl}}"],"path":["v1","establishment","jobs"],"query":[{"key":"cursor","value":"string","disabled":true,"description":"From the previous page's `nextCursor`; omit for the first page."},{"key":"limit","value":"20","disabled":false,"description":"Items per page (1–50)."},{"key":"group","value":"active","disabled":false,"description":"The status chip: `ended` is expired, `suspended` is paused or blocked."}]}}},{"name":"Post a job","request":{"method":"POST","description":"Publishes at once. Needs a running subscription (`SUBSCRIPTION_REQUIRED`) with posts left in it (`JOB_POST_QUOTA_REACHED`, saying when it ends; the count covers the whole subscription). The response carries the updated `quota` for the post button. Listed until the Saudi midnight after `endDate`, or 30 days when open-ended.","header":[{"key":"Accept-Language","value":"{{lang}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/establishment/jobs","host":["{{baseUrl}}"],"path":["v1","establishment","jobs"]},"body":{"mode":"raw","raw":"{\n  \"title\": \"Software engineer\",\n  \"description\": \"Join our engineering team to build Motaahs apps.\",\n  \"responsibilities\": [\n    \"Build back-end and front-end features\",\n    \"Review code\"\n  ],\n  \"requirements\": \"[\\\"Bachelor\\\"s in engineering\\\", \\\"React and Node.js\\\"]\",\n  \"employmentType\": \"full_time\",\n  \"workplaceType\": \"onsite\",\n  \"cityId\": \"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b\",\n  \"startDate\": \"2026-10-15\",\n  \"endDate\": \"2026-12-31\",\n  \"salaryType\": \"range\",\n  \"salaryMin\": 20000,\n  \"salaryMax\": 30000,\n  \"vacancies\": 1\n}","options":{"raw":{"language":"json"}}}}},{"name":"One of my jobs","request":{"method":"GET","description":"With its stats, the block reason when an admin or reports blocked it, and `allowedActions` (the buttons to show).","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/establishment/jobs/:id","host":["{{baseUrl}}"],"path":["v1","establishment","jobs",":id"],"variable":[{"key":"id","value":"string"}]}}},{"name":"Edit one of my jobs","request":{"method":"PUT","description":"Takes the whole post form again. Not for closed jobs (`JOB_ACTION_NOT_ALLOWED`). A start date already behind the job may stay as it is; a new end date moves the listing period. Once anyone has applied, the title and salary are locked (`JOB_TERMS_LOCKED`; `termsLocked` in the details). The status and the subscription post count stay as they are.","header":[{"key":"Accept-Language","value":"{{lang}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/establishment/jobs/:id","host":["{{baseUrl}}"],"path":["v1","establishment","jobs",":id"],"variable":[{"key":"id","value":"string"}]},"body":{"mode":"raw","raw":"{\n  \"title\": \"Software engineer\",\n  \"description\": \"Join our engineering team to build Motaahs apps.\",\n  \"responsibilities\": [\n    \"Build back-end and front-end features\",\n    \"Review code\"\n  ],\n  \"requirements\": \"[\\\"Bachelor\\\"s in engineering\\\", \\\"React and Node.js\\\"]\",\n  \"employmentType\": \"full_time\",\n  \"workplaceType\": \"onsite\",\n  \"cityId\": \"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b\",\n  \"startDate\": \"2026-10-15\",\n  \"endDate\": \"2026-12-31\",\n  \"salaryType\": \"range\",\n  \"salaryMin\": 20000,\n  \"salaryMax\": 30000,\n  \"vacancies\": 1\n}","options":{"raw":{"language":"json"}}}}},{"name":"Pause a job","request":{"method":"POST","description":"Hides an active job from employees until it is resumed. Returns the job as `GET /jobs/:id` does.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/establishment/jobs/:id/pause","host":["{{baseUrl}}"],"path":["v1","establishment","jobs",":id","pause"],"variable":[{"key":"id","value":"string"}]}}},{"name":"Resume a paused job","request":{"method":"POST","description":"Lists it again, or marks it `expired` when its listing period ended while paused (extend it then).","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/establishment/jobs/:id/resume","host":["{{baseUrl}}"],"path":["v1","establishment","jobs",":id","resume"],"variable":[{"key":"id","value":"string"}]}}},{"name":"Extend a job","request":{"method":"POST","description":"Adds 7, 14 or 30 days to the listing period, counted from now when it already ended. An ended job becomes active again; a paused one stays paused. The job dates (`endDate`) stay as they are.","header":[{"key":"Accept-Language","value":"{{lang}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/establishment/jobs/:id/extend","host":["{{baseUrl}}"],"path":["v1","establishment","jobs",":id","extend"],"variable":[{"key":"id","value":"string"}]},"body":{"mode":"raw","raw":"{\n  \"days\": 14\n}","options":{"raw":{"language":"json"}}}}},{"name":"Close a job","request":{"method":"POST","description":"For good: it stops taking applications and cannot be reopened; applications still open are cancelled (`job_closed`) and their employees notified. Also works on a blocked job.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/establishment/jobs/:id/close","host":["{{baseUrl}}"],"path":["v1","establishment","jobs",":id","close"],"variable":[{"key":"id","value":"string"}]}}}]},{"name":"Profile","item":[{"name":"My establishment profile","request":{"method":"GET","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/establishment/profile","host":["{{baseUrl}}"],"path":["v1","establishment","profile"]}}},{"name":"Edit my establishment profile","request":{"method":"PATCH","description":"Send only what changes; `null` clears a field. Upload the logo first with `POST /v1/establishment/files?purpose=establishment_logo`. Shown on the home at once.","header":[{"key":"Accept-Language","value":"{{lang}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/establishment/profile","host":["{{baseUrl}}"],"path":["v1","establishment","profile"]},"body":{"mode":"raw","raw":"{\n  \"name\": \"مؤسسة الرواد للتوظيف\",\n  \"tagline\": \"نصنع فرص العمل\",\n  \"logoFileId\": \"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b\"\n}","options":{"raw":{"language":"json"}}}}}]},{"name":"Account","item":[{"name":"My account","request":{"method":"GET","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/establishment/account","host":["{{baseUrl}}"],"path":["v1","establishment","account"]}}},{"name":"Change my language","request":{"method":"PATCH","description":"Requests without `Accept-Language` or `?lang=` are answered in it from the next request.","header":[{"key":"Accept-Language","value":"{{lang}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/establishment/account","host":["{{baseUrl}}"],"path":["v1","establishment","account"]},"body":{"mode":"raw","raw":"{\n  \"language\": \"en\"\n}","options":{"raw":{"language":"json"}}}}},{"name":"Send a code to a new number","request":{"method":"POST","description":"Step 1 of changing the mobile number: the code goes to the new number. Employees only: establishments get `MOBILE_CHANGE_NOT_ALLOWED`.","header":[{"key":"Accept-Language","value":"{{lang}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/establishment/account/mobile/otp","host":["{{baseUrl}}"],"path":["v1","establishment","account","mobile","otp"]},"body":{"mode":"raw","raw":"{\n  \"mobile\": \"0551234567\"\n}","options":{"raw":{"language":"json"}}}}},{"name":"Change my mobile number","request":{"method":"POST","description":"Step 2: checks the code sent to the new number and swaps it in. Every other device is signed out; this one stays signed in. Employees only: establishments get `MOBILE_CHANGE_NOT_ALLOWED`.","header":[{"key":"Accept-Language","value":"{{lang}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/establishment/account/mobile","host":["{{baseUrl}}"],"path":["v1","establishment","account","mobile"]},"body":{"mode":"raw","raw":"{\n  \"code\": \"1234\",\n  \"mobile\": \"0551234567\"\n}","options":{"raw":{"language":"json"}}}}},{"name":"Send the account deletion code (unused)","request":{"method":"POST","description":"No longer needed: deleting takes no code since BUG-57. Kept for app versions that still ask for one.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/establishment/account/delete/otp","host":["{{baseUrl}}"],"path":["v1","establishment","account","delete","otp"]}}},{"name":"Delete my account","request":{"method":"POST","description":"Deletes the account at once, with no code (BUG-57; a `code` from older app versions is ignored). Your details and number are removed (the number can register a new, empty account), every device is signed out, this one included (its socket gets `session.ended` with `account_deleted`), and your jobs, applications and chats leave the other app. The dashboard keeps the records (subscriptions, payments, history).","header":[{"key":"Accept-Language","value":"{{lang}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/establishment/account/delete","host":["{{baseUrl}}"],"path":["v1","establishment","account","delete"]},"body":{"mode":"raw","raw":"{\n  \"code\": \"1234\"\n}","options":{"raw":{"language":"json"}}}}}]},{"name":"Subscriptions","item":[{"name":"My subscriptions","request":{"method":"GET","description":"Every subscription, newest start first, with its state.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/establishment/subscriptions?page=1&limit=20","host":["{{baseUrl}}"],"path":["v1","establishment","subscriptions"],"query":[{"key":"page","value":"1","disabled":false,"description":"1-based page number."},{"key":"limit","value":"20","disabled":false,"description":"Items per page (1–100)."}]}}},{"name":"Subscribe to a package","request":{"method":"POST","description":"Active at once in Sprint 1 (no payment yet). While a subscription runs, the new one is queued to start when it ends (`state: upcoming`); only one can be queued.","header":[{"key":"Accept-Language","value":"{{lang}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/establishment/subscriptions","host":["{{baseUrl}}"],"path":["v1","establishment","subscriptions"]},"body":{"mode":"raw","raw":"{\n  \"packageId\": \"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b\"\n}","options":{"raw":{"language":"json"}}}}},{"name":"Current subscription","request":{"method":"GET","description":"The running subscription and the one queued after it; both are null when there is none.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/establishment/subscriptions/current","host":["{{baseUrl}}"],"path":["v1","establishment","subscriptions","current"]}}}]},{"name":"Packages","item":[{"name":"List packages","request":{"method":"GET","description":"Active packages in display order, in the request language. Prices are SAR with VAT included (`vat` and `net` show the split).","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/establishment/packages","host":["{{baseUrl}}"],"path":["v1","establishment","packages"]}}},{"name":"View a package","request":{"method":"GET","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/establishment/packages/:id","host":["{{baseUrl}}"],"path":["v1","establishment","packages",":id"],"variable":[{"key":"id","value":"string"}]}}}]},{"name":"Contact","item":[{"name":"Contact screen","request":{"method":"GET","description":"The contact channels (a `null` one is hidden) and the message types, in the request language.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/establishment/contact","host":["{{baseUrl}}"],"path":["v1","establishment","contact"]},"auth":{"type":"noauth"}}},{"name":"Send a message","request":{"method":"POST","description":"Guests can send. With a valid token of this app the message is linked to the account; an expired or missing token just sends as a guest. At most 3 per hour per mobile (or account) and 5 per hour per IP.","header":[{"key":"Accept-Language","value":"{{lang}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/establishment/contact/messages","host":["{{baseUrl}}"],"path":["v1","establishment","contact","messages"]},"body":{"mode":"raw","raw":"{\n  \"name\": \"سارة العتيبي\",\n  \"email\": \"sara@example.com\",\n  \"mobile\": \"0551234567\",\n  \"type\": \"inquiry\",\n  \"message\": \"كيف أضيف سيرتي الذاتية؟\"\n}","options":{"raw":{"language":"json"}}},"auth":{"type":"noauth"}}}]},{"name":"Settings","item":[{"name":"Read app settings","request":{"method":"GET","description":"Contact channels (a `null` channel is hidden) and app store links. Public and cached; changes in the dashboard apply immediately.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/establishment/settings","host":["{{baseUrl}}"],"path":["v1","establishment","settings"]},"auth":{"type":"noauth"}}}]},{"name":"Content","item":[{"name":"Read a page","request":{"method":"GET","description":"About, Terms, Privacy, or the text above the contact form, as rich text (HTML). Terms and Privacy are this app's own; About and the contact text are shared. When a text is empty in the request language, the other language is used.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/establishment/content/pages/:key","host":["{{baseUrl}}"],"path":["v1","establishment","content","pages",":key"],"variable":[{"key":"key","value":"about"}]},"auth":{"type":"noauth"}}},{"name":"Read the FAQ","request":{"method":"GET","description":"Questions and rich-text answers, in display order.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/establishment/content/faqs","host":["{{baseUrl}}"],"path":["v1","establishment","content","faqs"]},"auth":{"type":"noauth"}}}]},{"name":"Cities","item":[{"name":"List cities","request":{"method":"GET","description":"Saudi cities a job can be located in, each with its region, sorted by name in the request language. Public and cached.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/establishment/cities","host":["{{baseUrl}}"],"path":["v1","establishment","cities"]},"auth":{"type":"noauth"}}}]},{"name":"Auth","item":[{"name":"Send a login code","request":{"method":"POST","description":"Sends a 4-digit code to a registered number. Call again to resend, once `resendAfterSeconds` have passed. `MOBILE_NOT_REGISTERED` means the app should offer registration.","header":[{"key":"Accept-Language","value":"{{lang}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/establishment/auth/login/otp","host":["{{baseUrl}}"],"path":["v1","establishment","auth","login","otp"]},"body":{"mode":"raw","raw":"{\n  \"mobile\": \"0551234567\"\n}","options":{"raw":{"language":"json"}}},"auth":{"type":"noauth"}}},{"name":"Log in with the code","request":{"method":"POST","description":"Checks the login code and starts a session.","header":[{"key":"Accept-Language","value":"{{lang}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/establishment/auth/login","host":["{{baseUrl}}"],"path":["v1","establishment","auth","login"]},"body":{"mode":"raw","raw":"{\n  \"mobile\": \"0551234567\",\n  \"code\": \"1234\",\n  \"deviceName\": \"iPhone 16\"\n}","options":{"raw":{"language":"json"}}},"auth":{"type":"noauth"}},"event":[{"listen":"test","script":{"type":"text/javascript","exec":["// Saves the new session token for the requests that follow.","if (pm.response.code >= 200 && pm.response.code < 300) {","  const token = pm.response.json()[\"accessToken\"];","  if (token) pm.collectionVariables.set(\"establishmentToken\", token);","}"]}}]},{"name":"Send a registration code","request":{"method":"POST","description":"Sends a 4-digit code to a number with no account. `MOBILE_ALREADY_REGISTERED` means the app should offer login.","header":[{"key":"Accept-Language","value":"{{lang}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/establishment/auth/register/otp","host":["{{baseUrl}}"],"path":["v1","establishment","auth","register","otp"]},"body":{"mode":"raw","raw":"{\n  \"mobile\": \"0551234567\"\n}","options":{"raw":{"language":"json"}}},"auth":{"type":"noauth"}}},{"name":"Register with the code","request":{"method":"POST","description":"Checks the registration code, creates the account and starts a session.","header":[{"key":"Accept-Language","value":"{{lang}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/establishment/auth/register","host":["{{baseUrl}}"],"path":["v1","establishment","auth","register"]},"body":{"mode":"raw","raw":"{\n  \"mobile\": \"0551234567\",\n  \"code\": \"1234\",\n  \"deviceName\": \"iPhone 16\"\n}","options":{"raw":{"language":"json"}}},"auth":{"type":"noauth"}},"event":[{"listen":"test","script":{"type":"text/javascript","exec":["// Saves the new session token for the requests that follow.","if (pm.response.code >= 200 && pm.response.code < 300) {","  const token = pm.response.json()[\"accessToken\"];","  if (token) pm.collectionVariables.set(\"establishmentToken\", token);","}"]}}]},{"name":"Sign out","request":{"method":"POST","description":"Ends the session of the token sent. The token stops working immediately.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/establishment/auth/logout","host":["{{baseUrl}}"],"path":["v1","establishment","auth","logout"]}}},{"name":"List signed-in devices","request":{"method":"GET","description":"Your live sessions, most recently used first. `current` marks this device.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/establishment/auth/sessions","host":["{{baseUrl}}"],"path":["v1","establishment","auth","sessions"]}}},{"name":"Sign out all other devices","request":{"method":"DELETE","description":"Ends every session except the one making this request.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/establishment/auth/sessions","host":["{{baseUrl}}"],"path":["v1","establishment","auth","sessions"]}}},{"name":"Sign out one device","request":{"method":"DELETE","description":"Ends one of your sessions; that device is signed out on its next request. Using the current session id works like signing out.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/establishment/auth/sessions/:id","host":["{{baseUrl}}"],"path":["v1","establishment","auth","sessions",":id"],"variable":[{"key":"id","value":"string"}]}}}]},{"name":"Files","item":[{"name":"Upload a file","request":{"method":"POST","description":"Send the file as multipart/form-data in the `file` field. Its type is checked from its bytes. Then pass the returned `id` to the endpoint that uses it; files unused after 24 hours are deleted.\n\n- `establishment_logo`: PNG, JPG, WEBP, up to 2 MB, public\n- `chat_image`: PNG, JPG, WEBP, up to 5 MB, private\n- `chat_file`: PDF, DOCX, DOC, XLSX, XLS, up to 10 MB, private\n- `chat_voice`: M4A, AAC, up to 3 MB, private","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/establishment/files?purpose=establishment_logo","host":["{{baseUrl}}"],"path":["v1","establishment","files"],"query":[{"key":"purpose","value":"establishment_logo","disabled":false}]},"body":{"mode":"formdata","formdata":[{"key":"file","type":"file"}]}}}]},{"name":"Devices","item":[{"name":"Register this device for push","request":{"method":"PUT","description":"Call after signing in, whenever the messaging SDK gives a new token, and when the app's language changes. One device per sign-in: calling again replaces it. Signing out (or any other end of the session) removes it.","header":[{"key":"Accept-Language","value":"{{lang}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/establishment/devices","host":["{{baseUrl}}"],"path":["v1","establishment","devices"]},"body":{"mode":"raw","raw":"{\n  \"token\": \"x\",\n  \"platform\": \"android\",\n  \"locale\": \"ar\"\n}","options":{"raw":{"language":"json"}}}}},{"name":"Stop push on this device","request":{"method":"DELETE","description":"Removes this sign-in's device; the session stays.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/establishment/devices","host":["{{baseUrl}}"],"path":["v1","establishment","devices"]}}}]},{"name":"Notifications","item":[{"name":"My notifications","request":{"method":"GET","description":"Newest first, in the request language. Pages by cursor: pass the previous `nextCursor` as `cursor` (null means the last page). New ones also arrive live as `notification.new` on the realtime socket.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/establishment/notifications?limit=20","host":["{{baseUrl}}"],"path":["v1","establishment","notifications"],"query":[{"key":"cursor","value":"string","disabled":true,"description":"From the previous page's `nextCursor`; omit for the first page."},{"key":"limit","value":"20","disabled":false,"description":"Items per page (1–50)."}]}}},{"name":"Unread count","request":{"method":"GET","description":"For the bell badge. Updates arrive live as `unread.counts` on the realtime socket.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/establishment/notifications/unread-count","host":["{{baseUrl}}"],"path":["v1","establishment","notifications","unread-count"]}}},{"name":"Mark one read","request":{"method":"POST","description":"Idempotent. Other devices get the new count live.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/establishment/notifications/:id/read","host":["{{baseUrl}}"],"path":["v1","establishment","notifications",":id","read"],"variable":[{"key":"id","value":"string"}]}}},{"name":"Mark all read","request":{"method":"POST","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/establishment/notifications/read-all","host":["{{baseUrl}}"],"path":["v1","establishment","notifications","read-all"]}}}]}]},{"name":"Admin","auth":{"type":"bearer","bearer":[{"key":"token","value":"{{adminToken}}","type":"string"}]},"item":[{"name":"Report reasons","item":[{"name":"List report reasons","request":{"method":"GET","description":"In display order, inactive ones included, with how many reports use each.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/admin/report-reasons","host":["{{baseUrl}}"],"path":["v1","admin","report-reasons"]}}},{"name":"Add a report reason","request":{"method":"POST","description":"Added at the end. Names are unique in each language, ignoring case.","header":[{"key":"Accept-Language","value":"{{lang}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/admin/report-reasons","host":["{{baseUrl}}"],"path":["v1","admin","report-reasons"]},"body":{"mode":"raw","raw":"{\n  \"nameAr\": \"إعلان مضلل أو وظيفة وهمية\",\n  \"nameEn\": \"Misleading or fake job\",\n  \"active\": true\n}","options":{"raw":{"language":"json"}}}}},{"name":"Reorder report reasons","request":{"method":"PUT","description":"Send every id, each once, in the new order (`REPORT_REASON_ORDER_MISMATCH` otherwise).","header":[{"key":"Accept-Language","value":"{{lang}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/admin/report-reasons/order","host":["{{baseUrl}}"],"path":["v1","admin","report-reasons","order"]},"body":{"mode":"raw","raw":"{\n  \"ids\": [\n    \"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b\"\n  ]\n}","options":{"raw":{"language":"json"}}}}},{"name":"View a report reason","request":{"method":"GET","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/admin/report-reasons/:id","host":["{{baseUrl}}"],"path":["v1","admin","report-reasons",":id"],"variable":[{"key":"id","value":"string"}]}}},{"name":"Edit a report reason","request":{"method":"PATCH","description":"Names and/or `active`. An inactive reason leaves the app list but stays on old reports.","header":[{"key":"Accept-Language","value":"{{lang}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/admin/report-reasons/:id","host":["{{baseUrl}}"],"path":["v1","admin","report-reasons",":id"],"variable":[{"key":"id","value":"string"}]},"body":{"mode":"raw","raw":"{\n  \"nameAr\": \"x\",\n  \"nameEn\": \"x\",\n  \"active\": true\n}","options":{"raw":{"language":"json"}}}}},{"name":"Delete a report reason","request":{"method":"DELETE","description":"Only when no report uses it (`REPORT_REASON_IN_USE`); deactivate it instead.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/admin/report-reasons/:id","host":["{{baseUrl}}"],"path":["v1","admin","report-reasons",":id"],"variable":[{"key":"id","value":"string"}]}}}]},{"name":"Jobs","item":[{"name":"List jobs","request":{"method":"GET","description":"Newest published first. `q` takes a job number (`123`, `JOB-000123`) or words in the title or the establishment name; `status` is as shown (a lapsed active job is `expired`); the dates are Saudi days, both inclusive. Each row has its applicant and report counts and the allowed `actions`.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/admin/jobs?page=1&limit=20","host":["{{baseUrl}}"],"path":["v1","admin","jobs"],"query":[{"key":"page","value":"1","disabled":false,"description":"1-based page number."},{"key":"limit","value":"20","disabled":false,"description":"Items per page (1–100)."},{"key":"q","value":"JOB-000123","disabled":true,"description":"A job number (`123`, `JOB-000123`), or words in the title or the\nestablishment's name."},{"key":"status","value":"active","disabled":true,"description":"As shown: an active job past its listing period counts as `expired`."},{"key":"establishmentId","value":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b","disabled":true,"description":"One establishment's jobs."},{"key":"publishedFrom","value":"2026-09-01","disabled":true,"description":"Published on or after this Saudi day."},{"key":"publishedTo","value":"2026-09-30","disabled":true,"description":"Published on or before this Saudi day."},{"key":"employmentType","value":"[\"full_time\"]","disabled":true,"description":"One or more work types (BUG-53): `?employmentType=full_time` or\n`full_time,part_time`."},{"key":"workplaceType","value":"[\"remote\"]","disabled":true,"description":"One or more workplace types, like `employmentType`."}]}}},{"name":"View a job","request":{"method":"GET","description":"The job with its establishment, counts, latest 20 reports, status history (newest first, with who did what) and the allowed `actions`.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/admin/jobs/:id","host":["{{baseUrl}}"],"path":["v1","admin","jobs",":id"],"variable":[{"key":"id","value":"string"}]}}},{"name":"Edit a job’s text","request":{"method":"PATCH","description":"P1. Title, description, responsibilities and requirements, with the posting form’s rules. The title can’t change once anyone has applied (`JOB_TERMS_LOCKED`).","header":[{"key":"Accept-Language","value":"{{lang}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/admin/jobs/:id","host":["{{baseUrl}}"],"path":["v1","admin","jobs",":id"],"variable":[{"key":"id","value":"string"}]},"body":{"mode":"raw","raw":"{\n  \"title\": \"x\",\n  \"description\": \"x\",\n  \"responsibilities\": [\n    \"x\"\n  ],\n  \"requirements\": [\n    \"x\"\n  ]\n}","options":{"raw":{"language":"json"}}}}},{"name":"Block a job","request":{"method":"POST","description":"Suspends an active, paused or ended job with a reason the establishment sees; it leaves the app. Returns the updated job.","header":[{"key":"Accept-Language","value":"{{lang}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/admin/jobs/:id/block","host":["{{baseUrl}}"],"path":["v1","admin","jobs",":id","block"],"variable":[{"key":"id","value":"string"}]},"body":{"mode":"raw","raw":"{\n  \"reason\": \"Misleading salary information\"\n}","options":{"raw":{"language":"json"}}}}},{"name":"Republish a job","request":{"method":"POST","description":"Lists a blocked job again, also after an automatic block (its report count starts afresh). The establishment is told.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/admin/jobs/:id/republish","host":["{{baseUrl}}"],"path":["v1","admin","jobs",":id","republish"],"variable":[{"key":"id","value":"string"}]}}},{"name":"Close a job","request":{"method":"POST","description":"For good. Applications still open are cancelled and their employees told; the establishment is told.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/admin/jobs/:id/close","host":["{{baseUrl}}"],"path":["v1","admin","jobs",":id","close"],"variable":[{"key":"id","value":"string"}]}}}]},{"name":"Reports","item":[{"name":"List reported jobs","request":{"method":"GET","description":"One row per reported job, latest report first, with that report’s number and reporter, the job, its establishment and the report count. `reportNumber` (`45`, `REP-000045`), `reporter` (name or mobile of anyone who reported it), `jobNumber` and `establishment` combine with AND; `q` matches any of them. `jobActions` says whether `POST jobs/{id}/block` or `republish` applies; the establishment is (de)activated with `PATCH establishments/{id}/status`.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/admin/reports?page=1&limit=20","host":["{{baseUrl}}"],"path":["v1","admin","reports"],"query":[{"key":"page","value":"1","disabled":false,"description":"1-based page number."},{"key":"limit","value":"20","disabled":false,"description":"Items per page (1–100)."},{"key":"q","value":"REP-000045","disabled":true,"description":"Any of the four fields."},{"key":"reportNumber","value":"REP-000045","disabled":true,"description":"A report on the job: `45` or `REP-000045`."},{"key":"reporter","value":"أحمد","disabled":true,"description":"The name or mobile (`05…` works) of anyone who reported the job."},{"key":"jobNumber","value":"JOB-000123","disabled":true,"description":"`123` or `JOB-000123`."},{"key":"establishment","value":"الحلول","disabled":true,"description":"Part of the establishment's name."}]}}},{"name":"View a reported job","request":{"method":"GET","description":"The job, its establishment with the mobile number, and every report on it, newest first, with the reporter’s name and mobile, the reason, notes and date. 404 for a job nobody reported.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/admin/reports/:jobId","host":["{{baseUrl}}"],"path":["v1","admin","reports",":jobId"],"variable":[{"key":"jobId","value":"string"}]}}}]},{"name":"Finance","item":[{"name":"Subscriptions report","request":{"method":"GET","description":"One row per package with sales in the filter, in the packages’ order: its current price, the purchases and distinct subscribers, and what they brought in at the prices paid (`amount` with VAT, `net` = the app’s profit, `vat`, VAT rounded per subscription). `totals` covers the whole filter and equals the sum of the rows. Paid subscriptions count, and pending ones until payments are confirmed (Sprint 3). `package` matches part of the Arabic or English name; `from`/`to` are Saudi days of purchase, both inclusive.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/admin/finance/subscriptions?page=1&limit=20","host":["{{baseUrl}}"],"path":["v1","admin","finance","subscriptions"],"query":[{"key":"page","value":"1","disabled":false,"description":"1-based page number."},{"key":"limit","value":"20","disabled":false,"description":"Items per page (1–100)."},{"key":"package","value":"ذهبية","disabled":true,"description":"Part of the package's Arabic or English name."},{"key":"from","value":"2026-09-01","disabled":true,"description":"Bought on or after this Saudi day."},{"key":"to","value":"2026-09-30","disabled":true,"description":"Bought on or before this Saudi day."}]}}}]},{"name":"Notifications management","item":[{"name":"List broadcasts","request":{"method":"GET","description":"Newest first. `q` matches part of the Arabic or English title; `recipientType` keeps those sent to that type.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/admin/broadcasts?page=1&limit=20","host":["{{baseUrl}}"],"path":["v1","admin","broadcasts"],"query":[{"key":"page","value":"1","disabled":false,"description":"1-based page number."},{"key":"limit","value":"20","disabled":false,"description":"Items per page (1–100)."},{"key":"q","value":"تحديث","disabled":true,"description":"Part of the Arabic or English title."},{"key":"recipientType","value":"employee","disabled":true,"description":"Broadcasts that include this type."}]}}},{"name":"Send a broadcast","request":{"method":"POST","description":"Each chosen type goes to all its active accounts (`allEmployees`, `allEstablishments`) or to the picked IDs. Returns at once with `status: sending`; the `admin_broadcast` notifications go out in batches (in-app, socket and push) and the broadcast becomes `sent`.","header":[{"key":"Accept-Language","value":"{{lang}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/admin/broadcasts","host":["{{baseUrl}}"],"path":["v1","admin","broadcasts"]},"body":{"mode":"raw","raw":"{\n  \"recipientTypes\": [\n    \"employee\",\n    \"establishment\"\n  ],\n  \"allEmployees\": true,\n  \"employeeIds\": [\n    \"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b\"\n  ],\n  \"allEstablishments\": true,\n  \"establishmentIds\": [\n    \"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b\"\n  ],\n  \"titleAr\": \"تحديث جديد\",\n  \"titleEn\": \"New update\",\n  \"bodyAr\": \"أضفنا ميزات جديدة إلى التطبيق.\",\n  \"bodyEn\": \"We added new features to the app.\"\n}","options":{"raw":{"language":"json"}}}}},{"name":"Pick recipients","request":{"method":"GET","description":"Active accounts of `type` (deleted and deactivated ones are left out), newest first. `q` matches the name or the mobile (`05…` works).","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/admin/broadcasts/recipients?page=1&limit=20&type=employee","host":["{{baseUrl}}"],"path":["v1","admin","broadcasts","recipients"],"query":[{"key":"page","value":"1","disabled":false,"description":"1-based page number."},{"key":"limit","value":"20","disabled":false,"description":"Items per page (1–100)."},{"key":"type","value":"employee","disabled":false},{"key":"q","value":"string","disabled":true,"description":"The name, or the mobile (`05…` works)."}]}}},{"name":"View a broadcast","request":{"method":"GET","description":"Read-only, with the picked accounts per type (empty for a type sent to all).","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/admin/broadcasts/:id","host":["{{baseUrl}}"],"path":["v1","admin","broadcasts",":id"],"variable":[{"key":"id","value":"string"}]}}},{"name":"Count recipients","request":{"method":"POST","description":"How many active accounts the selection reaches now, for the confirmation before sending. Checked like a broadcast’s recipients.","header":[{"key":"Accept-Language","value":"{{lang}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/admin/broadcasts/count","host":["{{baseUrl}}"],"path":["v1","admin","broadcasts","count"]},"body":{"mode":"raw","raw":"{\n  \"recipientTypes\": [\n    \"employee\",\n    \"establishment\"\n  ],\n  \"allEmployees\": true,\n  \"employeeIds\": [\n    \"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b\"\n  ],\n  \"allEstablishments\": true,\n  \"establishmentIds\": [\n    \"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b\"\n  ]\n}","options":{"raw":{"language":"json"}}}}}]},{"name":"Conversations","item":[{"name":"A job’s conversations","request":{"method":"GET","description":"Each contacted applicant’s chat for the job, latest activity first, with its message count and whether it is closed.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/admin/jobs/:id/conversations?page=1&limit=20","host":["{{baseUrl}}"],"path":["v1","admin","jobs",":id","conversations"],"query":[{"key":"page","value":"1","disabled":false,"description":"1-based page number."},{"key":"limit","value":"20","disabled":false,"description":"Items per page (1–100)."}],"variable":[{"key":"id","value":"string"}]}}},{"name":"View a conversation","request":{"method":"GET","description":"The header: the job, both participants, the application and whether it is closed. Read-only for admins.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/admin/conversations/:id","host":["{{baseUrl}}"],"path":["v1","admin","conversations",":id"],"variable":[{"key":"id","value":"string"}]}}},{"name":"A conversation’s messages","request":{"method":"GET","description":"Both sides’ messages, newest first, by cursor. Attachments carry signed links. Reading here marks nothing as read.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/admin/conversations/:id/messages?limit=20","host":["{{baseUrl}}"],"path":["v1","admin","conversations",":id","messages"],"query":[{"key":"cursor","value":"string","disabled":true,"description":"From the previous page's `nextCursor`; omit for the first page."},{"key":"limit","value":"20","disabled":false,"description":"Items per page (1–50)."}],"variable":[{"key":"id","value":"string"}]}}}]},{"name":"Employees","item":[{"name":"Search employees","request":{"method":"GET","description":"Pages of accounts, newest first; deleted accounts are not listed. `q` matches the mobile number (`05…` works) or the name.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/admin/employees?page=1&limit=20","host":["{{baseUrl}}"],"path":["v1","admin","employees"],"query":[{"key":"page","value":"1","disabled":false,"description":"1-based page number."},{"key":"limit","value":"20","disabled":false,"description":"Items per page (1–100)."},{"key":"q","value":"string","disabled":true,"description":"The mobile (numbers typed as `05…` work) or the name."},{"key":"status","value":"active","disabled":true}]}}},{"name":"View an account","request":{"method":"GET","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/admin/employees/:id","host":["{{baseUrl}}"],"path":["v1","admin","employees",":id"],"variable":[{"key":"id","value":"string"}]}}},{"name":"Edit an employee's details","request":{"method":"PATCH","description":"Name, email (`null` clears it) and mobile; send only what changes. A new mobile must be free among employees (`ACCOUNT_MOBILE_TAKEN`) and signs the employee out on every device: they sign in again with the new number. The CV and its files stay the employee's own.","header":[{"key":"Accept-Language","value":"{{lang}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/admin/employees/:id","host":["{{baseUrl}}"],"path":["v1","admin","employees",":id"],"variable":[{"key":"id","value":"string"}]},"body":{"mode":"raw","raw":"{\n  \"name\": \"سارة العتيبي\",\n  \"mobile\": \"0551234567\",\n  \"email\": \"sara@example.com\"\n}","options":{"raw":{"language":"json"}}}}},{"name":"Delete an account","request":{"method":"DELETE","description":"Per the deletion policy: the details and number are removed (the number can register a new, empty account), records such as subscriptions are kept, and every device is signed out.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/admin/employees/:id","host":["{{baseUrl}}"],"path":["v1","admin","employees",":id"],"variable":[{"key":"id","value":"string"}]}}},{"name":"Activate or deactivate an account","request":{"method":"PATCH","description":"Deactivating needs a `reason` (3+ letters, up to 250 characters) and signs the account out on every device at once; it can’t sign in until activated again, and its sign-in refusal (`ACCOUNT_DISABLED`) quotes the reason, as does the refusal of the sessions it ended. A change emails the user when an email is on file (employees).","header":[{"key":"Accept-Language","value":"{{lang}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/admin/employees/:id/status","host":["{{baseUrl}}"],"path":["v1","admin","employees",":id","status"],"variable":[{"key":"id","value":"string"}]},"body":{"mode":"raw","raw":"{\n  \"status\": \"disabled\",\n  \"reason\": \"Posted misleading job ads.\"\n}","options":{"raw":{"language":"json"}}}}},{"name":"List an account's signed-in devices","request":{"method":"GET","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/admin/employees/:id/sessions","host":["{{baseUrl}}"],"path":["v1","admin","employees",":id","sessions"],"variable":[{"key":"id","value":"string"}]}}},{"name":"Sign out all its devices","request":{"method":"DELETE","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/admin/employees/:id/sessions","host":["{{baseUrl}}"],"path":["v1","admin","employees",":id","sessions"],"variable":[{"key":"id","value":"string"}]}}},{"name":"Sign out one of its devices","request":{"method":"DELETE","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/admin/employees/:id/sessions/:sessionId","host":["{{baseUrl}}"],"path":["v1","admin","employees",":id","sessions",":sessionId"],"variable":[{"key":"id","value":"string"},{"key":"sessionId","value":"string"}]}}},{"name":"An employee's ratings","request":{"method":"GET","description":"Every rating establishments gave the employee after a job ended, newest first, with the establishment and the job (deleted employees are not found). The average and count are on the employee (`cv.rating`).","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/admin/employees/:id/ratings?page=1&limit=20","host":["{{baseUrl}}"],"path":["v1","admin","employees",":id","ratings"],"query":[{"key":"page","value":"1","disabled":false,"description":"1-based page number."},{"key":"limit","value":"20","disabled":false,"description":"Items per page (1–100)."}],"variable":[{"key":"id","value":"string"}]}}}]},{"name":"Establishments","item":[{"name":"Search establishments","request":{"method":"GET","description":"Pages of accounts, newest first; deleted accounts are not listed. `q` matches the mobile number (`05…` works) or the name.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/admin/establishments?page=1&limit=20","host":["{{baseUrl}}"],"path":["v1","admin","establishments"],"query":[{"key":"page","value":"1","disabled":false,"description":"1-based page number."},{"key":"limit","value":"20","disabled":false,"description":"Items per page (1–100)."},{"key":"q","value":"string","disabled":true,"description":"The mobile (numbers typed as `05…` work) or the name."},{"key":"status","value":"active","disabled":true}]}}},{"name":"View an account","request":{"method":"GET","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/admin/establishments/:id","host":["{{baseUrl}}"],"path":["v1","admin","establishments",":id"],"variable":[{"key":"id","value":"string"}]}}},{"name":"Edit an establishment's profile","request":{"method":"PATCH","description":"Name, tagline and logo (`null` clears one), and the official contact email (BUG-16; unique among establishments, `ACCOUNT_EMAIL_TAKEN`). A new logo is an `establishment_logo` file you uploaded (`POST /v1/admin/files?purpose=establishment_logo`); the previous one is deleted. Shown on its home at once.","header":[{"key":"Accept-Language","value":"{{lang}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/admin/establishments/:id","host":["{{baseUrl}}"],"path":["v1","admin","establishments",":id"],"variable":[{"key":"id","value":"string"}]},"body":{"mode":"raw","raw":"{\n  \"name\": \"مؤسسة الرواد للتوظيف\",\n  \"tagline\": \"نصنع فرص العمل\",\n  \"logoFileId\": \"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b\",\n  \"email\": \"info@alrowad.sa\"\n}","options":{"raw":{"language":"json"}}}}},{"name":"Delete an account","request":{"method":"DELETE","description":"Per the deletion policy: the details and number are removed (the number can register a new, empty account), records such as subscriptions are kept, and every device is signed out.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/admin/establishments/:id","host":["{{baseUrl}}"],"path":["v1","admin","establishments",":id"],"variable":[{"key":"id","value":"string"}]}}},{"name":"Activate or deactivate an account","request":{"method":"PATCH","description":"Deactivating needs a `reason` (3+ letters, up to 250 characters) and signs the account out on every device at once; it can’t sign in until activated again, and its sign-in refusal (`ACCOUNT_DISABLED`) quotes the reason, as does the refusal of the sessions it ended. A change emails the user when an email is on file (employees).","header":[{"key":"Accept-Language","value":"{{lang}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/admin/establishments/:id/status","host":["{{baseUrl}}"],"path":["v1","admin","establishments",":id","status"],"variable":[{"key":"id","value":"string"}]},"body":{"mode":"raw","raw":"{\n  \"status\": \"disabled\",\n  \"reason\": \"Posted misleading job ads.\"\n}","options":{"raw":{"language":"json"}}}}},{"name":"List an account's signed-in devices","request":{"method":"GET","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/admin/establishments/:id/sessions","host":["{{baseUrl}}"],"path":["v1","admin","establishments",":id","sessions"],"variable":[{"key":"id","value":"string"}]}}},{"name":"Sign out all its devices","request":{"method":"DELETE","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/admin/establishments/:id/sessions","host":["{{baseUrl}}"],"path":["v1","admin","establishments",":id","sessions"],"variable":[{"key":"id","value":"string"}]}}},{"name":"Sign out one of its devices","request":{"method":"DELETE","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/admin/establishments/:id/sessions/:sessionId","host":["{{baseUrl}}"],"path":["v1","admin","establishments",":id","sessions",":sessionId"],"variable":[{"key":"id","value":"string"},{"key":"sessionId","value":"string"}]}}},{"name":"An establishment's subscriptions","request":{"method":"GET","description":"Every subscription, current and past, newest start first (deleted establishments are not found).","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/admin/establishments/:id/subscriptions?page=1&limit=20","host":["{{baseUrl}}"],"path":["v1","admin","establishments",":id","subscriptions"],"query":[{"key":"page","value":"1","disabled":false,"description":"1-based page number."},{"key":"limit","value":"20","disabled":false,"description":"Items per page (1–100)."}],"variable":[{"key":"id","value":"string"}]}}}]},{"name":"Statistics","item":[{"name":"Dashboard numbers","request":{"method":"GET","description":"Accounts, subscriptions, new contact messages, revenue, running subscriptions per package and job posts. \"This month\" is the Saudi calendar month. Cached for a minute.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/admin/statistics/overview","host":["{{baseUrl}}"],"path":["v1","admin","statistics","overview"]}}},{"name":"Sign-ups over time","request":{"method":"GET","description":"Employee and establishment accounts that still exist (deleted ones leave the chart, as they leave the lists) per day, week (Sunday to Saturday) or month of their sign-up on the Saudi calendar, every bucket included. Up to 366 days, 104 weeks or 36 months. Cached for a minute.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/admin/statistics/sign-ups?interval=day","host":["{{baseUrl}}"],"path":["v1","admin","statistics","sign-ups"],"query":[{"key":"interval","value":"day","disabled":false,"description":"Bucket size; weeks start on Sunday."},{"key":"from","value":"2026-09-01","disabled":true,"description":"First day, inclusive (Saudi date). Defaults to 29 days, 11 weeks or 11\nmonths before `to`."},{"key":"to","value":"2026-09-30","disabled":true,"description":"Last day, inclusive (Saudi date). Defaults to today."}]}}},{"name":"Jobs over time","request":{"method":"GET","description":"Jobs published per month of `year` (default: this Saudi year), or per day of `month` when given, on the Saudi calendar. Every bucket is included, zeros too. Cached for a minute.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/admin/statistics/jobs","host":["{{baseUrl}}"],"path":["v1","admin","statistics","jobs"],"query":[{"key":"year","value":"2026","disabled":true,"description":"Defaults to this Saudi year."},{"key":"month","value":"9","disabled":true,"description":"One month's days instead of the year's months."}]}}}]},{"name":"Packages","item":[{"name":"List packages","request":{"method":"GET","description":"Every package in display order (not paged, for reordering). `q` searches both names.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/admin/packages","host":["{{baseUrl}}"],"path":["v1","admin","packages"],"query":[{"key":"q","value":"string","disabled":true,"description":"Searches both names."},{"key":"status","value":"active","disabled":true}]}}},{"name":"Add a package","request":{"method":"POST","description":"Price in SAR with VAT included (at most 2 decimals; 0 for free). Added at the end and disabled until you activate it.","header":[{"key":"Accept-Language","value":"{{lang}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/admin/packages","host":["{{baseUrl}}"],"path":["v1","admin","packages"]},"body":{"mode":"raw","raw":"{\n  \"nameAr\": \"الباقة الأساسية\",\n  \"nameEn\": \"Basic\",\n  \"imageFileId\": \"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b\",\n  \"durationDays\": 30,\n  \"jobPosts\": 5,\n  \"price\": 99\n}","options":{"raw":{"language":"json"}}}}},{"name":"Reorder packages","request":{"method":"PUT","description":"Send every package’s id once, in the new order.","header":[{"key":"Accept-Language","value":"{{lang}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/admin/packages/order","host":["{{baseUrl}}"],"path":["v1","admin","packages","order"]},"body":{"mode":"raw","raw":"{\n  \"ids\": [\n    \"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b\"\n  ]\n}","options":{"raw":{"language":"json"}}}}},{"name":"View a package","request":{"method":"GET","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/admin/packages/:id","host":["{{baseUrl}}"],"path":["v1","admin","packages",":id"],"variable":[{"key":"id","value":"string"}]}}},{"name":"Edit a package","request":{"method":"PATCH","description":"The provider app shows the change immediately.","header":[{"key":"Accept-Language","value":"{{lang}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/admin/packages/:id","host":["{{baseUrl}}"],"path":["v1","admin","packages",":id"],"variable":[{"key":"id","value":"string"}]},"body":{"mode":"raw","raw":"{\n  \"nameAr\": \"xx\",\n  \"nameEn\": \"xx\",\n  \"imageFileId\": \"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b\",\n  \"durationDays\": 1,\n  \"jobPosts\": 1,\n  \"price\": 129.5\n}","options":{"raw":{"language":"json"}}}}},{"name":"Delete a package","request":{"method":"DELETE","description":"Refused with `PACKAGE_IN_USE` once it has subscriptions; deactivate it instead.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/admin/packages/:id","host":["{{baseUrl}}"],"path":["v1","admin","packages",":id"],"variable":[{"key":"id","value":"string"}]}}},{"name":"Activate or deactivate a package","request":{"method":"PATCH","description":"Only active packages are listed in the provider app.","header":[{"key":"Accept-Language","value":"{{lang}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/admin/packages/:id/status","host":["{{baseUrl}}"],"path":["v1","admin","packages",":id","status"],"variable":[{"key":"id","value":"string"}]},"body":{"mode":"raw","raw":"{\n  \"status\": \"disabled\"\n}","options":{"raw":{"language":"json"}}}}}]},{"name":"Contact messages","item":[{"name":"Search messages","request":{"method":"GET","description":"Newest first. `q` searches name, email, mobile and text; `from`/`to` bound the sending date.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/admin/contact-messages?page=1&limit=20","host":["{{baseUrl}}"],"path":["v1","admin","contact-messages"],"query":[{"key":"page","value":"1","disabled":false,"description":"1-based page number."},{"key":"limit","value":"20","disabled":false,"description":"Items per page (1–100)."},{"key":"read","value":"read","disabled":true,"description":"Read status."},{"key":"reply","value":"replied","disabled":true,"description":"Reply status."},{"key":"type","value":"other","disabled":true},{"key":"app","value":"employee","disabled":true,"description":"The app it was sent from."},{"key":"from","value":"2026-09-01","disabled":true,"description":"Sent at or after (ISO date or date-time)."},{"key":"to","value":"2026-10-01","disabled":true,"description":"Sent before (ISO date or date-time; a date means its start)."},{"key":"q","value":"string","disabled":true,"description":"Case-insensitive text to look for."}]}}},{"name":"Open a message","request":{"method":"GET","description":"With its replies, oldest first. A new message becomes read.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/admin/contact-messages/:id","host":["{{baseUrl}}"],"path":["v1","admin","contact-messages",":id"],"variable":[{"key":"id","value":"string"}]}}},{"name":"Reply by email","request":{"method":"POST","description":"The one reply a message gets: emails it to the sender in the language they wrote in (with their message quoted) and marks the message replied. If the email fails nothing is saved and `MAIL_UNAVAILABLE` is returned, so it can be sent again.","header":[{"key":"Accept-Language","value":"{{lang}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/admin/contact-messages/:id/replies","host":["{{baseUrl}}"],"path":["v1","admin","contact-messages",":id","replies"],"variable":[{"key":"id","value":"string"}]},"body":{"mode":"raw","raw":"{\n  \"body\": \"شكرًا لتواصلك، يمكنك إضافة سيرتك من صفحة الملف الشخصي.\"\n}","options":{"raw":{"language":"json"}}}}}]},{"name":"Settings","item":[{"name":"List settings","request":{"method":"GET","description":"Every setting with its current value (or default).","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/admin/settings","host":["{{baseUrl}}"],"path":["v1","admin","settings"]}}},{"name":"Save contact channels","request":{"method":"PUT","description":"Replaces the whole value: send every channel; a missing or `null` one is hidden in the apps, which show the change immediately.","header":[{"key":"Accept-Language","value":"{{lang}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/admin/settings/contact-channels","host":["{{baseUrl}}"],"path":["v1","admin","settings","contact-channels"]},"body":{"mode":"raw","raw":"{\n  \"phones\": [\n    \"+966551231456\",\n    \"920001234\"\n  ],\n  \"email\": \"support@motaah.sa\",\n  \"whatsapp\": \"+966551231456\",\n  \"x\": \"https://x.com/motaah\",\n  \"snapchat\": \"https://www.snapchat.com/add/motaah\",\n  \"instagram\": \"https://www.instagram.com/motaah\",\n  \"facebook\": \"https://www.facebook.com/motaah\",\n  \"tiktok\": \"https://www.tiktok.com/@motaah\",\n  \"youtube\": \"https://www.youtube.com/@motaah\"\n}","options":{"raw":{"language":"json"}}}}},{"name":"Save app store links","request":{"method":"PUT","description":"Replaces the whole value; missing links are cleared.","header":[{"key":"Accept-Language","value":"{{lang}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/admin/settings/app-links","host":["{{baseUrl}}"],"path":["v1","admin","settings","app-links"]},"body":{"mode":"raw","raw":"{\n  \"employee\": {\n    \"ios\": \"https://apps.apple.com/sa/app/motaah/id0000000000\",\n    \"android\": \"https://play.google.com/store/apps/details?id=sa.motaah.user\"\n  },\n  \"establishment\": {\n    \"ios\": \"https://apps.apple.com/sa/app/motaah/id0000000000\",\n    \"android\": \"https://play.google.com/store/apps/details?id=sa.motaah.user\"\n  }\n}","options":{"raw":{"language":"json"}}}}},{"name":"Save the jobs settings","request":{"method":"PUT","description":"How long an open-ended job is listed (`defaultPublicationDays`, 1–365) and how many reports block a job automatically (`autoBlockThreshold`, 1–1000). Replaces the whole value; a missing field goes back to its default. Applies to jobs posted from now on.","header":[{"key":"Accept-Language","value":"{{lang}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/admin/settings/jobs","host":["{{baseUrl}}"],"path":["v1","admin","settings","jobs"]},"body":{"mode":"raw","raw":"{\n  \"defaultPublicationDays\": 30,\n  \"autoBlockThreshold\": 5\n}","options":{"raw":{"language":"json"}}}}}]},{"name":"Auth","item":[{"name":"Log in","request":{"method":"POST","description":"Signs in with email and password. After 5 failed attempts for an email (or 20 from one IP) within 15 minutes, logins answer `TOO_MANY_REQUESTS` until the window ends.","header":[{"key":"Accept-Language","value":"{{lang}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/admin/auth/login","host":["{{baseUrl}}"],"path":["v1","admin","auth","login"]},"body":{"mode":"raw","raw":"{\n  \"email\": \"admin@motaah.sa\",\n  \"password\": \"Password1\",\n  \"deviceName\": \"Chrome on macOS\"\n}","options":{"raw":{"language":"json"}}},"auth":{"type":"noauth"}},"event":[{"listen":"test","script":{"type":"text/javascript","exec":["// Saves the new session token for the requests that follow.","if (pm.response.code >= 200 && pm.response.code < 300) {","  const token = pm.response.json()[\"accessToken\"];","  if (token) pm.collectionVariables.set(\"adminToken\", token);","}"]}}]},{"name":"Email a password reset code","request":{"method":"POST","description":"Emails a 4-digit code, valid for 10 minutes, to an active admin. A new code can be requested after `resendAfterSeconds`; it replaces the previous one. Always answers the same, whether or not the email belongs to an admin.","header":[{"key":"Accept-Language","value":"{{lang}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/admin/auth/forgot-password","host":["{{baseUrl}}"],"path":["v1","admin","auth","forgot-password"]},"body":{"mode":"raw","raw":"{\n  \"email\": \"admin@motaah.sa\"\n}","options":{"raw":{"language":"json"}}},"auth":{"type":"noauth"}}},{"name":"Check a password reset code","request":{"method":"POST","description":"A right code returns a one-time `resetToken` for `POST /auth/reset-password`, valid for 10 minutes. Five wrong tries end the code.","header":[{"key":"Accept-Language","value":"{{lang}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/admin/auth/verify-reset-code","host":["{{baseUrl}}"],"path":["v1","admin","auth","verify-reset-code"]},"body":{"mode":"raw","raw":"{\n  \"email\": \"admin@motaah.sa\",\n  \"code\": \"482913\"\n}","options":{"raw":{"language":"json"}}},"auth":{"type":"noauth"}}},{"name":"Set a new password","request":{"method":"POST","description":"Uses the `resetToken` from a verified code, once. Every session of the admin is signed out; they log in with the new password.","header":[{"key":"Accept-Language","value":"{{lang}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/admin/auth/reset-password","host":["{{baseUrl}}"],"path":["v1","admin","auth","reset-password"]},"body":{"mode":"raw","raw":"{\n  \"token\": \"string\",\n  \"password\": \"NewPassword2\"\n}","options":{"raw":{"language":"json"}}},"auth":{"type":"noauth"}}},{"name":"Current admin","request":{"method":"GET","description":"The signed-in admin with their role and permissions, for building the dashboard menu.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/admin/auth/me","host":["{{baseUrl}}"],"path":["v1","admin","auth","me"]}}},{"name":"Permission catalogue","request":{"method":"GET","description":"Every permission a role can grant, grouped by dashboard area, with labels in the request language.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/admin/auth/permissions","host":["{{baseUrl}}"],"path":["v1","admin","auth","permissions"]}}},{"name":"Sign out","request":{"method":"POST","description":"Ends the session of the token sent. The token stops working immediately.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/admin/auth/logout","host":["{{baseUrl}}"],"path":["v1","admin","auth","logout"]}}},{"name":"List signed-in devices","request":{"method":"GET","description":"Your live sessions, most recently used first. `current` marks this device.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/admin/auth/sessions","host":["{{baseUrl}}"],"path":["v1","admin","auth","sessions"]}}},{"name":"Sign out all other devices","request":{"method":"DELETE","description":"Ends every session except the one making this request.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/admin/auth/sessions","host":["{{baseUrl}}"],"path":["v1","admin","auth","sessions"]}}},{"name":"Sign out one device","request":{"method":"DELETE","description":"Ends one of your sessions; that device is signed out on its next request. Using the current session id works like signing out.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/admin/auth/sessions/:id","host":["{{baseUrl}}"],"path":["v1","admin","auth","sessions",":id"],"variable":[{"key":"id","value":"string"}]}}}]},{"name":"Profile","item":[{"name":"Your profile","request":{"method":"GET","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/admin/profile","host":["{{baseUrl}}"],"path":["v1","admin","profile"]}}},{"name":"Edit your profile","request":{"method":"PATCH","description":"Name, language, avatar (an uploaded `admin_avatar` file, or `null`), and email: changing the email needs `currentPassword`. After 5 wrong passwords in 15 minutes, `TOO_MANY_REQUESTS`.","header":[{"key":"Accept-Language","value":"{{lang}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/admin/profile","host":["{{baseUrl}}"],"path":["v1","admin","profile"]},"body":{"mode":"raw","raw":"{\n  \"name\": \"سارة العتيبي\",\n  \"email\": \"sara@motaah.sa\",\n  \"mobile\": \"0551234567\",\n  \"currentPassword\": \"string\",\n  \"language\": \"en\",\n  \"avatarFileId\": \"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b\"\n}","options":{"raw":{"language":"json"}}}}},{"name":"Change your password","request":{"method":"POST","description":"No current password is needed (as in the BRD). Signs out all your other devices; this one stays signed in. Open reset codes stop working.","header":[{"key":"Accept-Language","value":"{{lang}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/admin/profile/password","host":["{{baseUrl}}"],"path":["v1","admin","profile","password"]},"body":{"mode":"raw","raw":"{\n  \"newPassword\": \"NewPassword2\"\n}","options":{"raw":{"language":"json"}}}}}]},{"name":"Admins","item":[{"name":"Search admins","request":{"method":"GET","description":"Pages of admins, newest first. `q` searches name and email.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/admin/admins?page=1&limit=20","host":["{{baseUrl}}"],"path":["v1","admin","admins"],"query":[{"key":"page","value":"1","disabled":false,"description":"1-based page number."},{"key":"limit","value":"20","disabled":false,"description":"Items per page (1–100)."},{"key":"status","value":"active","disabled":true,"description":"Only admins with this status."},{"key":"roleId","value":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b","disabled":true,"description":"Only admins with this role."},{"key":"q","value":"string","disabled":true,"description":"Case-insensitive text to look for."}]}}},{"name":"Add an admin","request":{"method":"POST","description":"Sets the first password, which you share with the new admin. The Super Admin role belongs to the one super admin and can’t be given; a role with every permission can.","header":[{"key":"Accept-Language","value":"{{lang}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/admin/admins","host":["{{baseUrl}}"],"path":["v1","admin","admins"]},"body":{"mode":"raw","raw":"{\n  \"name\": \"سارة العتيبي\",\n  \"email\": \"sara@motaah.sa\",\n  \"password\": \"Welcome2026\",\n  \"roleId\": \"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b\",\n  \"mobile\": \"0551234567\",\n  \"avatarFileId\": \"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b\"\n}","options":{"raw":{"language":"json"}}}}},{"name":"View an admin","request":{"method":"GET","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/admin/admins/:id","host":["{{baseUrl}}"],"path":["v1","admin","admins",":id"],"variable":[{"key":"id","value":"string"}]}}},{"name":"Edit an admin","request":{"method":"PATCH","description":"A new password signs the admin out everywhere. You can’t change your own role, nobody can be given the Super Admin role, and only the super admin can edit their own account.","header":[{"key":"Accept-Language","value":"{{lang}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/admin/admins/:id","host":["{{baseUrl}}"],"path":["v1","admin","admins",":id"],"variable":[{"key":"id","value":"string"}]},"body":{"mode":"raw","raw":"{\n  \"name\": \"سارة العتيبي\",\n  \"email\": \"sara@motaah.sa\",\n  \"password\": \"NewPassword2\",\n  \"roleId\": \"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b\",\n  \"mobile\": \"0551234567\",\n  \"avatarFileId\": \"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b\"\n}","options":{"raw":{"language":"json"}}}}},{"name":"Delete an admin","request":{"method":"DELETE","description":"Signs the admin out and removes them from the dashboard; their email can be used again. The super admin can’t be deleted.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/admin/admins/:id","host":["{{baseUrl}}"],"path":["v1","admin","admins",":id"],"variable":[{"key":"id","value":"string"}]}}},{"name":"Activate or deactivate an admin","request":{"method":"PATCH","description":"Deactivating signs the admin out immediately. The super admin can’t be deactivated.","header":[{"key":"Accept-Language","value":"{{lang}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/admin/admins/:id/status","host":["{{baseUrl}}"],"path":["v1","admin","admins",":id","status"],"variable":[{"key":"id","value":"string"}]},"body":{"mode":"raw","raw":"{\n  \"status\": \"disabled\"\n}","options":{"raw":{"language":"json"}}}}}]},{"name":"Roles","item":[{"name":"Search roles","request":{"method":"GET","description":"Pages of roles, the Super Admin role first, then newest. `q` searches both names.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/admin/roles?page=1&limit=20","host":["{{baseUrl}}"],"path":["v1","admin","roles"],"query":[{"key":"page","value":"1","disabled":false,"description":"1-based page number."},{"key":"limit","value":"20","disabled":false,"description":"Items per page (1–100)."},{"key":"status","value":"active","disabled":true,"description":"Only roles with this status."},{"key":"q","value":"string","disabled":true,"description":"Case-insensitive text to look for."}]}}},{"name":"Add a role","request":{"method":"POST","description":"Permissions come from `GET /v1/admin/auth/permissions`. Only super admins can grant permissions they don’t have themselves.","header":[{"key":"Accept-Language","value":"{{lang}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/admin/roles","host":["{{baseUrl}}"],"path":["v1","admin","roles"]},"body":{"mode":"raw","raw":"{\n  \"nameAr\": \"مشرف الباقات\",\n  \"nameEn\": \"Packages manager\",\n  \"permissions\": [\n    \"packages.view\",\n    \"packages.create\",\n    \"packages.update\"\n  ]\n}","options":{"raw":{"language":"json"}}}}},{"name":"View a role","request":{"method":"GET","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/admin/roles/:id","host":["{{baseUrl}}"],"path":["v1","admin","roles",":id"],"variable":[{"key":"id","value":"string"}]}}},{"name":"Edit a role","request":{"method":"PATCH","description":"Its admins get the new permissions on their next request. The Super Admin role and your own role can’t be edited.","header":[{"key":"Accept-Language","value":"{{lang}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/admin/roles/:id","host":["{{baseUrl}}"],"path":["v1","admin","roles",":id"],"variable":[{"key":"id","value":"string"}]},"body":{"mode":"raw","raw":"{\n  \"nameAr\": \"مشرف الباقات\",\n  \"nameEn\": \"Packages manager\",\n  \"permissions\": [\n    \"packages.view\",\n    \"packages.update\"\n  ]\n}","options":{"raw":{"language":"json"}}}}},{"name":"Delete a role","request":{"method":"DELETE","description":"Refused while admins use it: move them to another role first.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/admin/roles/:id","host":["{{baseUrl}}"],"path":["v1","admin","roles",":id"],"variable":[{"key":"id","value":"string"}]}}},{"name":"Activate or deactivate a role","request":{"method":"PATCH","description":"A deactivated role grants nothing to its admins.","header":[{"key":"Accept-Language","value":"{{lang}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/admin/roles/:id/status","host":["{{baseUrl}}"],"path":["v1","admin","roles",":id","status"],"variable":[{"key":"id","value":"string"}]},"body":{"mode":"raw","raw":"{\n  \"status\": \"disabled\"\n}","options":{"raw":{"language":"json"}}}}}]},{"name":"Content","item":[{"name":"List pages","request":{"method":"GET","description":"About, Terms, Privacy and the contact text, in both languages.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/admin/content/pages","host":["{{baseUrl}}"],"path":["v1","admin","content","pages"]}}},{"name":"View a page","request":{"method":"GET","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/admin/content/pages/:key","host":["{{baseUrl}}"],"path":["v1","admin","content","pages",":key"],"variable":[{"key":"key","value":"string"}]}}},{"name":"Save a page","request":{"method":"PUT","description":"Content is rich text (HTML, e.g. Tiptap’s `getHTML()`), sanitized on save: see the README for what’s kept. The apps show the change immediately.","header":[{"key":"Accept-Language","value":"{{lang}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/admin/content/pages/:key","host":["{{baseUrl}}"],"path":["v1","admin","content","pages",":key"],"variable":[{"key":"key","value":"string"}]},"body":{"mode":"raw","raw":"{\n  \"titleAr\": \"من نحن\",\n  \"titleEn\": \"About us\",\n  \"contentAr\": \"<h2>رؤيتنا</h2><p>منصة تربط الباحثين عن عمل بالمنشآت.</p>\",\n  \"contentEn\": \"<h2>Our vision</h2><p>A platform connecting job seekers and employers.</p>\"\n}","options":{"raw":{"language":"json"}}}}},{"name":"List FAQ entries","request":{"method":"GET","description":"Every entry in display order (not paged, for the reorder screen). `q` searches questions and answers.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/admin/content/faqs","host":["{{baseUrl}}"],"path":["v1","admin","content","faqs"],"query":[{"key":"q","value":"string","disabled":true,"description":"Case-insensitive text to look for in questions and answers."}]}}},{"name":"Add an FAQ entry","request":{"method":"POST","description":"Added at the end. Answers are sanitized rich text.","header":[{"key":"Accept-Language","value":"{{lang}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/admin/content/faqs","host":["{{baseUrl}}"],"path":["v1","admin","content","faqs"]},"body":{"mode":"raw","raw":"{\n  \"questionAr\": \"كيف أنشئ حسابًا؟\",\n  \"questionEn\": \"How do I create an account?\",\n  \"answerAr\": \"<p>سجّل برقم جوالك وأدخل رمز التحقق.</p>\",\n  \"answerEn\": \"<p>Register with your mobile number and enter the code.</p>\"\n}","options":{"raw":{"language":"json"}}}}},{"name":"Reorder the FAQ","request":{"method":"PUT","description":"Send every entry’s id once, in the new order.","header":[{"key":"Accept-Language","value":"{{lang}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/admin/content/faqs/order","host":["{{baseUrl}}"],"path":["v1","admin","content","faqs","order"]},"body":{"mode":"raw","raw":"{\n  \"ids\": [\n    \"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b\"\n  ]\n}","options":{"raw":{"language":"json"}}}}},{"name":"View an FAQ entry","request":{"method":"GET","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/admin/content/faqs/:id","host":["{{baseUrl}}"],"path":["v1","admin","content","faqs",":id"],"variable":[{"key":"id","value":"string"}]}}},{"name":"Edit an FAQ entry","request":{"method":"PATCH","header":[{"key":"Accept-Language","value":"{{lang}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/admin/content/faqs/:id","host":["{{baseUrl}}"],"path":["v1","admin","content","faqs",":id"],"variable":[{"key":"id","value":"string"}]},"body":{"mode":"raw","raw":"{\n  \"questionAr\": \"x\",\n  \"questionEn\": \"x\",\n  \"answerAr\": \"string\",\n  \"answerEn\": \"string\"\n}","options":{"raw":{"language":"json"}}}}},{"name":"Delete an FAQ entry","request":{"method":"DELETE","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/admin/content/faqs/:id","host":["{{baseUrl}}"],"path":["v1","admin","content","faqs",":id"],"variable":[{"key":"id","value":"string"}]}}}]},{"name":"Cities","item":[{"name":"List cities","request":{"method":"GET","description":"Saudi cities a job can be located in, each with its region, sorted by name in the request language.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/admin/cities","host":["{{baseUrl}}"],"path":["v1","admin","cities"]}}}]},{"name":"Files","item":[{"name":"Upload a file","request":{"method":"POST","description":"Send the file as multipart/form-data in the `file` field. Its type is checked from its bytes. Then pass the returned `id` to the endpoint that uses it; files unused after 24 hours are deleted.\n\n- `establishment_logo`: PNG, JPG, WEBP, up to 2 MB, public\n- `admin_avatar`: PNG, JPG, WEBP, up to 10 MB, public\n- `package_image`: PNG, JPG, WEBP, up to 10 MB, public","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/admin/files?purpose=establishment_logo","host":["{{baseUrl}}"],"path":["v1","admin","files"],"query":[{"key":"purpose","value":"establishment_logo","disabled":false}]},"body":{"mode":"formdata","formdata":[{"key":"file","type":"file"}]}}}]},{"name":"Realtime","item":[{"name":"Get a socket ticket","request":{"method":"POST","description":"For the dashboard's server to call with its session: the browser connects to `/admin` on path `/realtime` with `auth: { ticket }`, so the session token never reaches it. Each ticket works once, within 60 seconds.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/admin/realtime/ticket","host":["{{baseUrl}}"],"path":["v1","admin","realtime","ticket"]}}}]},{"name":"Notifications","item":[{"name":"My notifications","request":{"method":"GET","description":"Newest first, in the request language. Pages by cursor: pass the previous `nextCursor` as `cursor` (null means the last page). New ones also arrive live as `notification.new` on the realtime socket.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/admin/notifications?limit=20","host":["{{baseUrl}}"],"path":["v1","admin","notifications"],"query":[{"key":"cursor","value":"string","disabled":true,"description":"From the previous page's `nextCursor`; omit for the first page."},{"key":"limit","value":"20","disabled":false,"description":"Items per page (1–50)."}]}}},{"name":"Unread count","request":{"method":"GET","description":"For the bell badge. Updates arrive live as `unread.counts` on the realtime socket.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/admin/notifications/unread-count","host":["{{baseUrl}}"],"path":["v1","admin","notifications","unread-count"]}}},{"name":"Mark one read","request":{"method":"POST","description":"Idempotent. Other devices get the new count live.","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/admin/notifications/:id/read","host":["{{baseUrl}}"],"path":["v1","admin","notifications",":id","read"],"variable":[{"key":"id","value":"string"}]}}},{"name":"Mark all read","request":{"method":"POST","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/v1/admin/notifications/read-all","host":["{{baseUrl}}"],"path":["v1","admin","notifications","read-all"]}}}]}]},{"name":"System","auth":{"type":"noauth"},"item":[{"name":"Download a file\n\nPublic files (logos, avatars) need nothing else. Private files (CVs,\nvideos) need the `expires` and `signature` from their URL; an invalid or\nexpired link answers 404. Supports `Range` for video seeking.","request":{"method":"GET","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/files/:id","host":["{{baseUrl}}"],"path":["files",":id"],"query":[{"key":"signature","value":"","disabled":true,"description":"Private files only."},{"key":"expires","value":"","disabled":true,"description":"Private files only."}],"variable":[{"key":"id","value":"string"}]}}},{"name":"Readiness: Postgres and Redis\n\n200 while the API can serve requests (`ok`, or `degraded` when only the\ncache is down), 503 when the database is unreachable. The Docker image's\nHEALTHCHECK calls this.","request":{"method":"GET","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/health","host":["{{baseUrl}}"],"path":["health"]}}},{"name":"Liveness: the process is up","request":{"method":"GET","header":[{"key":"Accept-Language","value":"{{lang}}"}],"url":{"raw":"{{baseUrl}}/health/live","host":["{{baseUrl}}"],"path":["health","live"]}}}]}]}