Skip to content

Get Access Code

GET/web/v1/workspaces/{workspaceId}/institutions/{institutionBizId}/portals/portal-types/{portalType}/access-code WEB

Retrieves the current access code for a specific portal type. The access code is returned in masked format.

Required Headers

HeaderExample ValueDescription
Content-Typeapplication/jsonRequest content type
Acceptapplication/jsonExpected response type
X-Client-HashClient device fingerprint
Accept-Languageen, zh, zh-Hant, ja, viResponse language (default: en)
AuthorizationBearerJWT access token

Request Parameters

Path Parameters

NameTypeRequiredInDescription
workspaceIdstringRequiredpathWorkspace business ID
institutionBizIdstringRequiredpathInstitution business ID
portalTypeintegerRequiredpathPortal type code (e.g., 10010101=system, 10010102=tenant)

Success Response

Success 200
{
  "code": "2000",
  "message": "SUCCESS",
  "data": {
    "accessCode": "pac_****abcd",
    "institutionBizId": "inst_abc123",
    "portalType": 10010102,
    "expiresAt": "2026-06-21T00:00:00Z",
    "rotatingCode": null,
    "rotatingCodeExpiresAt": null
  }
}

Error Responses

CodeDescription
4010Unauthorized (invalid or missing JWT token)
4040Portal or access code not found

Notes

  • The access code is masked for security. Only the first 4 and last 4 characters are visible.
  • The rotatingCode field is populated during access code rotation transitions.

SlaunchX Internal Documentation