{"activeVersionTag":"latest","latestAvailableVersionTag":"latest","collection":{"info":{"_postman_id":"5569459d-2d51-4bd3-b4a4-7d3faa5a767b","name":"Panther API documentation","description":"# Panther API documentation\n\nThe Panther API lets your own systems read and update data in your Panther system: general, employees, clients, shifts, expenses, pay, webhooks. Every call goes to one endpoint and uses JSON.\n\n## Endpoint\n\n`POST https://{{host}}/api` with the header `Content-Type: application/json`.\n\nEvery service, including the ones that only fetch data, is called with **POST** and a JSON body. The service you want is named in the request header.\n\n## Authentication\n\nYour Panther administrator creates an API key on the Configuration screen. Each key has a **public key**, a **secret key** and a list of **allowed IP addresses** (or `ANY`). Requests from any other IP address are refused.\n\nWith every request you send:\n\n- `public_key`: your public key.\n- `timestamp`: the current Unix time in seconds. It must be within 5 minutes of the server's clock.\n- `hash`: the SHA-512 hash, in lower-case hex, of the timestamp followed directly by your secret key, i.e. `sha512(timestamp + secret_key)`.\n- `email`: the email address of a Panther user who is active and has API access switched on, and whose role and agency allow API requests.\n\nNever send the secret key itself.\n\nJavaScript (this collection already does this for you in its pre-request script):\n\n```javascript\nconst timestamp = Math.floor(Date.now() / 1000).toString();\nconst hash = CryptoJS.SHA512(timestamp + secretKey).toString(CryptoJS.enc.Hex);\n```\n\nPHP:\n\n```php\n$timestamp = time();\n$hash = hash('sha512', $timestamp . $secretKey);\n```\n\nNo more than **5 requests per tenant** can run at the same time. Further requests get HTTP 429 and `API Rate Limit Exceeded: Maximum of 5 concurrent API calls allowed per tenant.`\n\n## Request format\n\n```json\n{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": \"1795777200\",\n        \"public_key\": \"pk_0000example0000public0000key0\",\n        \"hash\": \"<sha512 of timestamp + secret key>\",\n        \"email\": \"api.user@example.com\",\n        \"service\": \"fetchEmployees\"\n    },\n    \"body\": []\n}\n```\n\n| Field | Required | Notes |\n|---|---|---|\n| `id` | No | Your own reference for the message (up to 30 characters). It is returned in the response. |\n| `timestamp` | Yes | Current Unix time in seconds. |\n| `public_key` | Yes | Your public key. |\n| `hash` | Yes | `sha512(timestamp + secret_key)` in hex. |\n| `email` | Yes | Email address of the API user. |\n| `service` | Yes | The service to run, e.g. `fetchEmployees`. |\n| `datalevel` | No | `terse` (default) or `verbose`. Some fetch services return more columns with `verbose`. |\n| `includeFKData` | No | `on` or `off` (default). With `on`, some fetch services add the linked records' details. |\n| `orderby` | No | Comma-separated list of columns to sort by, e.g. `pre_surname,pre_forename`. |\n| `offset`, `maxrows` | No | Pagination for fetch services. See below. |\n\nService-specific fields go in the `header` too (for fetch filters) or in `body` (for records to add, update or delete). Add and update services take `body` as an **array of row objects**, so you can send several records in one call. Field names are the Panther column names shown in each service's description.\n\n## Responses\n\nA successful request returns the request header (without `public_key`, `hash` and `email`) with `\"response\": \"SUCCESS\"`, and the results in `body`:\n\n```json\n{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"timestamp\": 1795777200,\n        \"service\": \"fetchEmployees\",\n        \"response\": \"SUCCESS\"\n    },\n    \"body\": []\n}\n```\n\n## Errors\n\nIf anything goes wrong, `response` is `EXCEPTION` and `exceptionmessage` explains why. There is no `body`.\n\n```json\n{\n    \"header\": {\n        \"id\": \"example-001\",\n        \"response\": \"EXCEPTION\",\n        \"exceptionmessage\": \"Authentication Error: 'hash' is not correct\"\n    }\n}\n```\n\nMost errors come back with HTTP status 200, so always check `header.response`. Common messages:\n\n| Message | What to check |\n|---|---|\n| `The JSON message is either empty or null` / `... Syntax error, malformed JSON` | The request body. |\n| `The 'header' section is missing` | The JSON must have a `header` object. |\n| `'timestamp' must be supplied` (also `public_key`, `hash`, `email`, `service`) | A required header field is missing. |\n| `Authentication Error: 'public_key' is not recognised or no longer active.` | The key, or whether it has been switched off. |\n| `Authentication Error: IP Address: 203.0.113.10` | Add your IP address to the key's allowed IP addresses. |\n| `Authentication Error: 'hash' is not correct` | The secret key and the hash calculation. |\n| `Authentication Error: 'timestamp' must be the current Unix time in seconds` | Your server clock (allowed drift is 5 minutes). |\n| `Authentication Error: Email` | The email must belong to a Panther user. |\n| `Authentication Error: User is not currently activated` / `User cannot accept API requests` | Switch the user on, and switch on API access for them. |\n| `Authentication Error: User's role or agency does not allow API requests` | The user's role or agency settings. |\n| `Unknown Service: x` | The service name (it is case-sensitive). |\n| `Unknown field: 'x'` | A field in `body` that the record doesn't have. |\n| `Illegal action: It is not possible to update the field 'x'` | Read-only fields such as created/updated dates. |\n| `The request could not be completed because of a database error.` | Database errors are not passed on in detail. Check your values, and quote the message to support if it persists. |\n\n## Pagination and sorting\n\nFetch services that say *Paginated: yes* accept `offset` and `maxrows` in the header. Without them, a fetch returns at most 500 records, and `maxrows` above that is capped. There is no total count, so to read 100 records at a time, send `offset` 0 and `maxrows` 100, then `offset` 100, 200 and so on until fewer than 100 records come back. The response header repeats `offset` and `maxrows`. Keep `orderby` the same while you page; if you change it, start again from `offset` 0.\n\n\"Fetch updated\" services return only records changed since the date and time you give, so you can keep another system in step without re-reading everything.\n\n## Using this collection\n\nThe collection uses these variables. Set them in a Postman environment rather than in the collection, and mark `secret_key` as a secret:\n\n| Variable | Example | Meaning |\n|---|---|---|\n| `tenant` | `your-tenant` | Your system's name, used to build `host`. |\n| `host` | `{{tenant}}.example.com` | The address of your Panther system, without `https://`. |\n| `base_url` | `https://{{host}}` | Built from `host`. |\n| `public_key` | `pk_0000example0000public0000key0` | Your public key. |\n| `secret_key` | `sk_0000example0000secret0000key0` | Your secret key. |\n| `api_email` | `api.user@example.com` | The email of your API user. |\n\n`timestamp` and `hash` are worked out for each request by the collection's pre-request script. All names, IDs and values in the examples are made up.\n\nServices and fields can depend on how your system is configured. Where that applies, each service's description says which setting it depends on.\n","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","isPublicCollection":false,"owner":"48712714","team":10373413,"collectionId":"5569459d-2d51-4bd3-b4a4-7d3faa5a767b","publishedId":"2sBYPwYs7N","public":true,"publicUrl":"https://api.panther-software.com","privateUrl":"https://go.postman.co/documentation/48712714-5569459d-2d51-4bd3-b4a4-7d3faa5a767b","customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"6E43DF"},"documentationLayout":"classic-double-column","customisation":{"metaTags":[{"name":"description","value":""},{"name":"title","value":""}],"appearance":{"default":"light","themes":[{"name":"dark","logo":null,"colors":{"top-bar":"212121","right-sidebar":"303030","highlight":"6E43DF"}},{"name":"light","logo":null,"colors":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"6E43DF"}}]}},"version":"8.12.14","publishDate":"2026-12-02T22:10:03.000Z","activeVersionTag":"latest","documentationTheme":"light","metaTags":{"title":"","description":""},"logos":{"logoLight":null,"logoDark":null}},"statusCode":200},"environments":[],"user":{"authenticated":false,"permissions":{"publish":false}},"run":{"button":{"js":"https://run.pstmn.io/button.js","css":"https://run.pstmn.io/button.css"}},"web":"https://www.getpostman.com/","team":{"logo":"https://postman-image-service.postman.com/api/cloudinary-proxy/postman/image/upload/t_team_logo_pubdoc/v1/team/49e6e9016ed3e9c25b8d6bd335376d51c92429f568a9dbb371f418b1d98db965","favicon":"https://panther-software.com/favicon.ico"},"isEnvFetchError":false,"languages":"[{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"HttpClient\"},{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"RestSharp\"},{\"key\":\"curl\",\"label\":\"cURL\",\"variant\":\"cURL\"},{\"key\":\"dart\",\"label\":\"Dart\",\"variant\":\"http\"},{\"key\":\"go\",\"label\":\"Go\",\"variant\":\"Native\"},{\"key\":\"http\",\"label\":\"HTTP\",\"variant\":\"HTTP\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"OkHttp\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"Unirest\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"Fetch\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"jQuery\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"XHR\"},{\"key\":\"c\",\"label\":\"C\",\"variant\":\"libcurl\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Axios\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Native\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Request\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Unirest\"},{\"key\":\"objective-c\",\"label\":\"Objective-C\",\"variant\":\"NSURLSession\"},{\"key\":\"ocaml\",\"label\":\"OCaml\",\"variant\":\"Cohttp\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"cURL\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"Guzzle\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"HTTP_Request2\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"pecl_http\"},{\"key\":\"powershell\",\"label\":\"PowerShell\",\"variant\":\"RestMethod\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"http.client\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"Requests\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"httr\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"RCurl\"},{\"key\":\"ruby\",\"label\":\"Ruby\",\"variant\":\"Net::HTTP\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"Httpie\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"wget\"},{\"key\":\"swift\",\"label\":\"Swift\",\"variant\":\"URLSession\"}]","languageSettings":[{"key":"csharp","label":"C#","variant":"HttpClient"},{"key":"csharp","label":"C#","variant":"RestSharp"},{"key":"curl","label":"cURL","variant":"cURL"},{"key":"dart","label":"Dart","variant":"http"},{"key":"go","label":"Go","variant":"Native"},{"key":"http","label":"HTTP","variant":"HTTP"},{"key":"java","label":"Java","variant":"OkHttp"},{"key":"java","label":"Java","variant":"Unirest"},{"key":"javascript","label":"JavaScript","variant":"Fetch"},{"key":"javascript","label":"JavaScript","variant":"jQuery"},{"key":"javascript","label":"JavaScript","variant":"XHR"},{"key":"c","label":"C","variant":"libcurl"},{"key":"nodejs","label":"NodeJs","variant":"Axios"},{"key":"nodejs","label":"NodeJs","variant":"Native"},{"key":"nodejs","label":"NodeJs","variant":"Request"},{"key":"nodejs","label":"NodeJs","variant":"Unirest"},{"key":"objective-c","label":"Objective-C","variant":"NSURLSession"},{"key":"ocaml","label":"OCaml","variant":"Cohttp"},{"key":"php","label":"PHP","variant":"cURL"},{"key":"php","label":"PHP","variant":"Guzzle"},{"key":"php","label":"PHP","variant":"HTTP_Request2"},{"key":"php","label":"PHP","variant":"pecl_http"},{"key":"powershell","label":"PowerShell","variant":"RestMethod"},{"key":"python","label":"Python","variant":"http.client"},{"key":"python","label":"Python","variant":"Requests"},{"key":"r","label":"R","variant":"httr"},{"key":"r","label":"R","variant":"RCurl"},{"key":"ruby","label":"Ruby","variant":"Net::HTTP"},{"key":"shell","label":"Shell","variant":"Httpie"},{"key":"shell","label":"Shell","variant":"wget"},{"key":"swift","label":"Swift","variant":"URLSession"}],"languageOptions":[{"label":"C# - HttpClient","value":"csharp - HttpClient - C#"},{"label":"C# - RestSharp","value":"csharp - RestSharp - C#"},{"label":"cURL - cURL","value":"curl - cURL - cURL"},{"label":"Dart - http","value":"dart - http - Dart"},{"label":"Go - Native","value":"go - Native - Go"},{"label":"HTTP - HTTP","value":"http - HTTP - HTTP"},{"label":"Java - OkHttp","value":"java - OkHttp - Java"},{"label":"Java - Unirest","value":"java - Unirest - Java"},{"label":"JavaScript - Fetch","value":"javascript - Fetch - JavaScript"},{"label":"JavaScript - jQuery","value":"javascript - jQuery - JavaScript"},{"label":"JavaScript - XHR","value":"javascript - XHR - JavaScript"},{"label":"C - libcurl","value":"c - libcurl - C"},{"label":"NodeJs - Axios","value":"nodejs - Axios - NodeJs"},{"label":"NodeJs - Native","value":"nodejs - Native - NodeJs"},{"label":"NodeJs - Request","value":"nodejs - Request - NodeJs"},{"label":"NodeJs - Unirest","value":"nodejs - Unirest - NodeJs"},{"label":"Objective-C - NSURLSession","value":"objective-c - NSURLSession - Objective-C"},{"label":"OCaml - Cohttp","value":"ocaml - Cohttp - OCaml"},{"label":"PHP - cURL","value":"php - cURL - PHP"},{"label":"PHP - Guzzle","value":"php - Guzzle - PHP"},{"label":"PHP - HTTP_Request2","value":"php - HTTP_Request2 - PHP"},{"label":"PHP - pecl_http","value":"php - pecl_http - PHP"},{"label":"PowerShell - RestMethod","value":"powershell - RestMethod - PowerShell"},{"label":"Python - http.client","value":"python - http.client - Python"},{"label":"Python - Requests","value":"python - Requests - Python"},{"label":"R - httr","value":"r - httr - R"},{"label":"R - RCurl","value":"r - RCurl - R"},{"label":"Ruby - Net::HTTP","value":"ruby - Net::HTTP - Ruby"},{"label":"Shell - Httpie","value":"shell - Httpie - Shell"},{"label":"Shell - wget","value":"shell - wget - Shell"},{"label":"Swift - URLSession","value":"swift - URLSession - Swift"}],"layoutOptions":[{"value":"classic-single-column","label":"Single Column"},{"value":"classic-double-column","label":"Double Column"}],"versionOptions":[],"environmentOptions":[{"value":"0","label":"No Environment"}],"canonicalUrl":"https://api.panther-software.com/view/metadata/2sBYPwYs7N"}