Authentication
Authentication in Partner API is based on a HTTP RESTFul request. In order to authenticate against the service, it is needed to use a valid username and password.
Request
| URL | Method | Need authentication |
| https://taps-partnerapi.timecut.se/api/auth?format=json | POST | No |
Dto information
| Type | Message |
| Request | {
"Password": "",
"Username": "",
"ExternalAgentIdentifier": null
} |
| Response | {
"SessionId": "ff869cc2-e2c9-4960-abd2-cfa64c1f75b9",
"ExpiresAt": "2026-01-10T04:36:32.6838506+00:00",
"Password": "",
"Username": "",
"ExternalAgentIdentifier": null
} |
Expiration
The session can expired. If a session expired, it is needed to obtain another session id authenticating again. In the authentication response DTO it is possible to obtain the expiration date and time:
- ExpiresAt: 0001-01-01T00:00:00
Using services that needs authentication
In order to use services that need authentication (check in other chapters that "Need authentication" is "YES") it is needed to attach a cookie with the session information obtained during the authentication.
Cookie information
| Key | Value |
| SessionId | 00000000-0000-0000-0000-000000000000 |
