Skip to main content
POST
Get Employee Details - V2
For field enums, refer the employee details page.

Authorizations

Authorization
string
header
required

Create a Basic Auth token by base64-encoding username:password

Body

application/json
encrypted_payload
string
required

JWE Compact Serialization string containing a signed payload.

Encryption Flow:

  1. Construct payload using EmployeeEncryptedPayload schema
  2. Convert payload to JSON string and sign it as a JWT (JWS) using RS256 with the client’s private key (alg: RS256, typ: JWT)
  3. Encrypt the signed JWT using JWE:
  • alg: RSA-OAEP-256
  • enc: A256GCM
  • key: Tartan public key
  1. Send the result as a compact JWE string

JWE Format: <protected-header>.<encrypted-key>.<iv>.<ciphertext>.<auth-tag>

Example header:

Decryption & Validation (Server-side):

  • Decrypt using Tartan private key
  • Extract signed JWT (JWS)
  • Verify signature using client public key
  • Extract and validate original payload
Example:

"eyJhbGciOiJSU0EtT0FFUC0yNTYiLCJlbmMiOiJBMjU2R0NNIn0...."

Response

Employee details retrieved successfully

requestId
string
Example:

"f6e80421-3901-4132-85c0-7bcdc1236ce9"

message
string
Example:

"success"

status_code
string
Example:

"success"

status
integer
Example:

200

data
string
Example:

"eyJfdfasdfasdfasdfaIjoiQUl6YVN5QmJHc0t3bVZ6SUU5a2VnPT0iLCJkYXRhIjoiU2FtcGxlIEVuY3J5cHRlZCBTdHJpbmcifQ=="