PrivateApplication
Private Application Id
Private Application found
Private Application not found
GET /api/v1/private-application/{id} HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Accept: */*
{
"data": {
"name": "text",
"description": "text",
"defaultTokenLifetimeDays": 1,
"customTokenClaims": {},
"tags": [
"text"
],
"id": 1,
"modifier": "text",
"modifiedUtc": "2025-09-07T10:06:26.608Z",
"hasTokens": true,
"hasActiveTokens": true,
"nextTokenExpiry": "2025-09-07T10:06:26.608Z"
}
}
Private Application Id
Name of the application
Description of the application
Default token lifetime in days
Custom token claims
Tags for the application
Private Application updated
Could not create token
Private Application not found
Private Application is deleted
PUT /api/v1/private-application/{id} HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 186
{
"name": "",
"description": "",
"defaultTokenLifetimeDays": 730,
"customTokenClaims": {
"iss": "https://hopea-apinat.frendsapp.com",
"aud": "https://hopea-apinat.frendsapp.com",
"sub": ""
},
"tags": []
}
{
"data": 1
}
Private Application Id
Private Application deleted
No content
Private Application not found
Can't delete Private Application with active tokens
DELETE /api/v1/private-application/{id} HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Accept: */*
No content
If response data is empty there were no Private Applications found with the chosen filters
Filter by name of the application
Filter by description of the application
Filter by token content
Filter by tokens expiring within X days
Success
GET /api/v1/private-application HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Accept: */*
Success
{
"data": [
{
"name": "text",
"description": "text",
"defaultTokenLifetimeDays": 1,
"customTokenClaims": {},
"tags": [
"text"
],
"id": 1,
"modifier": "text",
"modifiedUtc": "2025-09-07T10:06:26.608Z",
"hasTokens": true,
"hasActiveTokens": true,
"nextTokenExpiry": "2025-09-07T10:06:26.608Z"
}
]
}
Name of the application
Description of the application
Default token lifetime in days
Custom token claims
Tags for the application
Private Application created
Token content is invalid
Private Application with the same name already exists
POST /api/v1/private-application HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 186
{
"name": "",
"description": "",
"defaultTokenLifetimeDays": 730,
"customTokenClaims": {
"iss": "https://hopea-apinat.frendsapp.com",
"aud": "https://hopea-apinat.frendsapp.com",
"sub": ""
},
"tags": []
}
{
"data": 1
}
If response data is empty there were no tokens found for the Private Application
Private Application Id
Filter by name of the token
Filter by token expiry status
Filter by token revocation status
Filter by token claim key
Success
Private Application or Private Application token not found
GET /api/v1/private-application/{id}/tokens HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Accept: */*
{
"data": {
"tokenCount": 1,
"tokens": [
{
"id": 1,
"name": "text",
"expiryTimeUtc": "2025-09-07T10:06:26.608Z",
"createTimeUtc": "2025-09-07T10:06:26.608Z",
"tokenClaims": {},
"creator": "text",
"revoker": "text",
"revokeTimeUtc": "2025-09-07T10:06:26.608Z",
"revokeReason": "text",
"fullToken": "text",
"payloadOnly": "text"
}
]
}
}
Private Application Id
Name of the token
Token lifetime in days
Token claims
Private Application token created
Private Application not found
POST /api/v1/private-application/{id}/tokens HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 146
{
"name": "",
"tokenLifetimeDays": 730,
"tokenClaims": {
"iss": "https://hopea-apinat.frendsapp.com",
"aud": "https://hopea-apinat.frendsapp.com",
"sub": ""
}
}
{
"data": 1
}
Private Application Id
Private Application Token Id
Private Application token found
Private Application or Private Application token not found
GET /api/v1/private-application/{id}/tokens/{tokenId} HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Accept: */*
{
"data": {
"id": 1,
"name": "text",
"expiryTimeUtc": "2025-09-07T10:06:26.608Z",
"createTimeUtc": "2025-09-07T10:06:26.608Z",
"tokenClaims": {},
"creator": "text",
"revoker": "text",
"revokeTimeUtc": "2025-09-07T10:06:26.608Z",
"revokeReason": "text",
"fullToken": "text",
"payloadOnly": "text"
}
}
Private Application Id
Private Application Token Id
Private Application token regenerated
Private Application not found
POST /api/v1/private-application/{id}/tokens/{tokenId} HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Accept: */*
{
"data": 1
}
Private Application Id
Number of Private Application Tokens revoked
Private Application not found
POST /api/v1/private-application/{id}/tokens/revocation HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 6
"text"
{
"data": 1
}
Private Application Id
Private Application Token Id
Private Application token revoked
No content
Private Application not found
POST /api/v1/private-application/{id}/tokens/{tokenId}/revocation HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 6
"text"
No content
Was this helpful?