Skip to main content
GET
/
v1
/
auth
/
{app_id}
/
public_key
Get RSA public key for JWT verification
curl --request GET \
  --url https://{defaultHost}/v1/auth/{app_id}/public_key
{
  "public_key": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMI...",
  "key_id": "ws_123_1640995200",
  "algorithm": "RS256",
  "workspace_id": "ws_123",
  "generated_at": "2024-01-01T12:00:00Z"
}

Path Parameters

app_id
string
required

App ID

Response

successful

public_key
string
required

PEM-formatted RSA public key for JWT verification

Example:

"-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMI..."

key_id
string
required

Unique key identifier for JWT verification (kid header)

Example:

"ws_123_1640995200"

algorithm
string
required

JWT signing algorithm used by this key

Example:

"RS256"

workspace_id
string
required

Workspace ID that owns this key

Example:

"ws_123"

generated_at
string<datetime>
required

When the key was generated

Example:

"2024-01-01T12:00:00Z"