Skip to main content

Applications

List applications for the authenticated user​

GET /applications

Code samples


curl -X GET https://localhost:9543/api-portal/api/v0.9/applications \
-H 'Authorization: Bearer {access_token}' \
-H 'Accept: application/json'

Returns all applications owned by the authenticated user in the specified organization.

Authentication​

This operation requires a Bearer JWT access token in the Authorization header. Required scopes (the token must carry at least one of): `dp:application:read`, `dp:application:manage`

Parameters​

NameInTypeRequiredDescription
limitqueryintegerfalseMaximum number of records to return.
offsetqueryintegerfalseNumber of records to skip before returning results.

Example responses

200 Response

{
"list": [
{
"id": "my-weather-app",
"displayName": "Weather App",
"description": "Application used to call Weather APIs.",
"appKeyMappings": [
{
"asClientId": "asgardeo-client-abc123",
"kmId": "km-uuid-12345",
"type": "PRODUCTION"
}
]
}
],
"count": 1,
"pagination": {
"total": 1,
"limit": 20,
"offset": 0
}
}

500 Response

{
"status": "error",
"code": "INTERNAL_SERVER_ERROR",
"message": "An unexpected error occurred."
}

Responses​

StatusMeaningDescriptionSchema
200OKList of application DTOs.Inline
500Internal Server ErrorInternal server error.ErrorResponse

Response schema​

Status Code 200

NameTypeRequiredRestrictionsDescription
» list[ApplicationResponse]falsenonenone
»» idstringfalsenoneThe application's handle (unique per org). Not the internal database uuid.
»» displayNamestringfalsenonenone
»» descriptionstringfalsenonenone
»» appKeyMappings[ApplicationKeyMappingSummary]falsenone[OAuth client ID mapping entry attached to an application.]
»»» asClientIdstringfalsenoneOAuth client ID, created directly in the key manager and linked to this application.
»»» kmIdstringfalsenoneUUID of the key manager this client ID is linked to.
»»» typestringfalsenoneKey type for this mapping.
»» createdBystringfalsenoneIdentity of the user who created this application, or deleted_user if that user's IDP reference no longer exists. Present on single-resource GET responses and list items.
»» updatedBystringfalsenoneIdentity of the user who last updated this application, or deleted_user if that user's IDP reference no longer exists. Present on single-resource GET responses only, omitted on list items.
»» createdAtstring(date-time)falsenonenone
»» updatedAtstring(date-time)falsenonenone
» countintegerfalsenoneNumber of items returned in this page.
» paginationPaginationfalsenoneStandard pagination metadata returned with collection responses.
»» totalintegertruenoneTotal number of records matching the query.
»» limitintegertruenoneMaximum number of records returned in this response.
»» offsetintegertruenoneNumber of records skipped before this page.

Enumerated Values​

PropertyValue
typePRODUCTION
typeSANDBOX

Create an application​

POST /applications

Code samples


curl -X POST https://localhost:9543/api-portal/api/v0.9/applications \
-H 'Authorization: Bearer {access_token}' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d @payload.json

Creates an API Portal application in the specified organization. The request may be JSON, multipart form fields, or an application YAML file in the application multipart field. An application.created webhook event is published to the organization's configured webhook subscribers.

Payload

{
"displayName": "Weather App",
"id": "my-weather-app",
"description": "Application used to call Weather APIs."
}
displayName: Weather App
id: my-weather-app
description: Application used to call Weather APIs.

Authentication​

This operation requires a Bearer JWT access token in the Authorization header. Required scopes (the token must carry at least one of): `dp:application:create`, `dp:application:manage`

Parameters​

NameInTypeRequiredDescription
bodybodyApplicationRequesttrueApplication payload. Send JSON, multipart form fields, or an application YAML file in the application field. The JSON example below (displayName, id, description) applies only to the application/json content type. When an application YAML file is uploaded instead, its content must use the nested shape metadata.name (handle) and spec.displayName / spec.description — any top-level id inside that YAML file is ignored.

Example responses

201 Response

{
"id": "my-weather-app",
"displayName": "Weather App",
"description": "Application used to call Weather APIs.",
"appKeyMappings": []
}

Bad request. Validation and other bad-request errors are returned as a standard error object (field-level details, when present, are carried in its errors array); some legacy handlers return a message-only object.

{
"status": "error",
"code": "MISSING_REQUIRED_PARAMETER",
"message": "Missing required parameter."
}
{
"message": "Missing or invalid fields in the request payload"
}

409 Response

{
"status": "error",
"code": "CONFLICT",
"message": "Conflict"
}

500 Response

{
"status": "error",
"code": "INTERNAL_SERVER_ERROR",
"message": "An unexpected error occurred."
}

Responses​

StatusMeaningDescriptionSchema
201CreatedApplication DTO.ApplicationResponse
400Bad RequestBad request. Validation and other bad-request errors are returned as a standard error object (field-level details, when present, are carried in its errors array); some legacy handlers return a message-only object.Inline
409ConflictThe request conflicts with an existing resource.ErrorResponse
500Internal Server ErrorInternal server error.ErrorResponse

Response schema​

Enumerated Values​

PropertyValue
statuserror

Response Headers​

StatusHeaderTypeFormatDescription
201LocationstringuriURL of the created application.

Get an application​

GET /applications/{applicationId}

Code samples


curl -X GET https://localhost:9543/api-portal/api/v0.9/applications/{applicationId} \
-H 'Authorization: Bearer {access_token}' \
-H 'Accept: application/json'

Returns the details of a single application owned by the authenticated user.

Authentication​

This operation requires a Bearer JWT access token in the Authorization header. Required scopes (the token must carry at least one of): `dp:application:read`, `dp:application:manage`

Parameters​

NameInTypeRequiredDescription
applicationIdpathstringtrueThe application's handle (unique per org).

Example responses

200 Response

{
"id": "my-weather-app",
"displayName": "Weather App",
"description": "Application used to call Weather APIs.",
"appKeyMappings": [],
"createdBy": "[email protected]",
"updatedBy": "[email protected]",
"createdAt": "2026-05-07T08:30:00Z",
"updatedAt": "2026-05-07T08:30:00Z"
}

404 Response

{
"status": "error",
"code": "ORG_NOT_FOUND",
"message": "Organization not found."
}

500 Response

{
"status": "error",
"code": "INTERNAL_SERVER_ERROR",
"message": "An unexpected error occurred."
}

Responses​

StatusMeaningDescriptionSchema
200OKApplication DTO.ApplicationResponse
404Not FoundResource not found.ErrorResponse
500Internal Server ErrorInternal server error.ErrorResponse

Update an application​

PUT /applications/{applicationId}

Code samples


curl -X PUT https://localhost:9543/api-portal/api/v0.9/applications/{applicationId} \
-H 'Authorization: Bearer {access_token}' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d @payload.json

Updates an application owned by the authenticated user in the specified organization. The request may be JSON, multipart form fields, or an application YAML file in the application multipart field. An application.updated webhook event is published.

Payload

{
"displayName": "Weather App",
"id": "my-weather-app",
"description": "Application used to call Weather APIs."
}
displayName: Weather App
id: my-weather-app
description: Application used to call Weather APIs.

Authentication​

This operation requires a Bearer JWT access token in the Authorization header. Required scopes (the token must carry at least one of): `dp:application:update`, `dp:application:manage`

Parameters​

NameInTypeRequiredDescription
bodybodyApplicationRequesttrueApplication payload. Send JSON, multipart form fields, or an application YAML file in the application field. The JSON example below (displayName, id, description) applies only to the application/json content type. When an application YAML file is uploaded instead, its content must use the nested shape metadata.name (handle) and spec.displayName / spec.description — any top-level id inside that YAML file is ignored.
applicationIdpathstringtrueThe application's handle (unique per org).

Example responses

200 Response

{
"id": "my-weather-app",
"displayName": "Weather App",
"description": "Application used to call Weather APIs.",
"appKeyMappings": [],
"createdBy": "[email protected]",
"updatedBy": "[email protected]",
"createdAt": "2026-05-07T08:30:00Z",
"updatedAt": "2026-05-07T08:30:00Z"
}

Bad request. Validation and other bad-request errors are returned as a standard error object (field-level details, when present, are carried in its errors array); some legacy handlers return a message-only object.

{
"status": "error",
"code": "MISSING_REQUIRED_PARAMETER",
"message": "Missing required parameter."
}
{
"message": "Missing or invalid fields in the request payload"
}

404 Response

{
"status": "error",
"code": "ORG_NOT_FOUND",
"message": "Organization not found."
}

409 Response

{
"status": "error",
"code": "CONFLICT",
"message": "Conflict"
}

500 Response

{
"status": "error",
"code": "INTERNAL_SERVER_ERROR",
"message": "An unexpected error occurred."
}

Responses​

StatusMeaningDescriptionSchema
200OKApplication DTO.ApplicationResponse
400Bad RequestBad request. Validation and other bad-request errors are returned as a standard error object (field-level details, when present, are carried in its errors array); some legacy handlers return a message-only object.Inline
404Not FoundResource not found.ErrorResponse
409ConflictThe request conflicts with an existing resource.ErrorResponse
500Internal Server ErrorInternal server error.ErrorResponse

Response schema​

Enumerated Values​

PropertyValue
statuserror

Delete an application​

DELETE /applications/{applicationId}

Code samples


curl -X DELETE https://localhost:9543/api-portal/api/v0.9/applications/{applicationId} \
-H 'Authorization: Bearer {access_token}' \
-H 'Accept: text/plain'

Deletes an application owned by the authenticated user. Before removing the application record the service will make a best-effort attempt to revoke registered OAuth clients with their respective key managers and deletes all stored key mappings; failures are logged as warnings and do not abort deletion. An application.deleted webhook event is published, plus one apikey.application_updated event (with a cleared association) per API key that was associated with the application.

Authentication​

This operation requires a Bearer JWT access token in the Authorization header. Required scopes (the token must carry at least one of): `dp:application:delete`, `dp:application:manage`

Parameters​

NameInTypeRequiredDescription
applicationIdpathstringtrueThe application's handle (unique per org).

Example responses

200 Response

"string"

404 Response

{
"status": "error",
"code": "ORG_NOT_FOUND",
"message": "Organization not found."
}

500 Response

{
"status": "error",
"code": "INTERNAL_SERVER_ERROR",
"message": "An unexpected error occurred."
}

Responses​

StatusMeaningDescriptionSchema
200OKPlain text success response.string
404Not FoundResource not found.ErrorResponse
500Internal Server ErrorInternal server error.ErrorResponse

Was this page helpful?