Export API
This API exports Resources as combined YAML in JSON responses.
Download the OpenAPI definition (YAML)
Security schemes
OAuth2: oauth2
clientCredentials flow, token URL /oauth2/token
1 scopes
| Scope | Description |
|---|---|
system | Full system access |
Export
Export all declared resources as a combined YAML document.
Export resources as JSON
POST /export
Exports the requested resources and returns a JSON response containing the combined YAML export content and the generated .env file content.
Scopes: system
Request body (required): application/json
Schema: ExportRequest
19 properties
| Name | Type | Required | Description |
|---|---|---|---|
applications | array of string | IDs of applications to export, or ["*"] for all. | |
connections | array of string | IDs of connections (identity providers and notification senders) to export, or ["*"] for all. | |
userTypes | array of string | IDs of user types to export, or ["*"] for all. | |
agentTypes | array of string | IDs of agent types to export, or ["*"] for all. | |
organizationUnits | array of string | IDs of organization units to export, or ["*"] for all. | |
projects | array of string | IDs of projects to export, or ["*"] for all. Only a Control Plane serves projects. | |
users | array of string | IDs of users to export, or ["*"] for all. | |
groups | array of string | IDs of groups to export, or ["*"] for all. | |
resourceServers | array of string | IDs of resource servers to export, or ["*"] for all. | |
authorizationDetailTypes | array of string | IDs of RFC 9396 authorization details types to export, or ["*"] for all. | |
roles | array of string | IDs of roles to export, or ["*"] for all. | |
flows | array of string | IDs of flows to export, or ["*"] for all. | |
translations | array of string | IDs of translations to export, or ["*"] for all. | |
layouts | array of string | IDs of layouts to export, or ["*"] for all. | |
themes | array of string | IDs of themes to export, or ["*"] for all. | |
credentialConfigurations | array of string | IDs of OpenID4VCI credential configurations to export, or ["*"] for all. | |
presentationDefinitions | array of string | IDs of OpenID4VP presentation definitions to export, or ["*"] for all. | |
notificationTemplates | array of string | IDs of notification templates to export, or ["*"] for all. | |
options | ExportOptions | Configuration options that control export behavior. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Combined YAML and environment variable export | JSONExportResponse |
400 | Bad request | Error |
401 | Unauthorized - missing or invalid authentication token | Error |
500 | Internal server error | Error |
Schemas
ExportRequest
Type: object
Specifies which resources to export. Each field accepts a list of resource IDs, or ["*"] to export all resources of that type.
19 properties
| Name | Type | Required | Description |
|---|---|---|---|
applications | array of string | IDs of applications to export, or ["*"] for all. | |
connections | array of string | IDs of connections (identity providers and notification senders) to export, or ["*"] for all. | |
userTypes | array of string | IDs of user types to export, or ["*"] for all. | |
agentTypes | array of string | IDs of agent types to export, or ["*"] for all. | |
organizationUnits | array of string | IDs of organization units to export, or ["*"] for all. | |
projects | array of string | IDs of projects to export, or ["*"] for all. Only a Control Plane serves projects. | |
users | array of string | IDs of users to export, or ["*"] for all. | |
groups | array of string | IDs of groups to export, or ["*"] for all. | |
resourceServers | array of string | IDs of resource servers to export, or ["*"] for all. | |
authorizationDetailTypes | array of string | IDs of RFC 9396 authorization details types to export, or ["*"] for all. | |
roles | array of string | IDs of roles to export, or ["*"] for all. | |
flows | array of string | IDs of flows to export, or ["*"] for all. | |
translations | array of string | IDs of translations to export, or ["*"] for all. | |
layouts | array of string | IDs of layouts to export, or ["*"] for all. | |
themes | array of string | IDs of themes to export, or ["*"] for all. | |
credentialConfigurations | array of string | IDs of OpenID4VCI credential configurations to export, or ["*"] for all. | |
presentationDefinitions | array of string | IDs of OpenID4VP presentation definitions to export, or ["*"] for all. | |
notificationTemplates | array of string | IDs of notification templates to export, or ["*"] for all. | |
options | ExportOptions | Configuration options that control export behavior. |
ExportOptions
Type: object
Configuration options that control export behavior.
5 properties
| Name | Type | Required | Description |
|---|---|---|---|
includeMetadata | boolean | When true, includes metadata such as creation dates and IDs. Default: | |
includeDependencies | boolean | When true, automatically exports related dependent resources. Default: | |
format | string | Output format for individual resource files. Only Allowed values: | |
folderStructure | FolderStructureOptions | Controls how exported files are organized within the output. | |
pagination | PaginationOptions | Pagination settings for bulk exports. |
FolderStructureOptions
Type: object
Controls how exported files are organized within the output.
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
groupByType | boolean | When true, creates a separate sub-folder for each resource type. Default: | |
customStructure | object | Maps resource types to custom folder paths. | |
fileNamingPattern | string | Pattern for naming exported files. Supports |
PaginationOptions
Type: object
Pagination settings for bulk exports.
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
page | integer | Page number (1-based). | |
limit | integer | Maximum number of resources per page. |
ExportResponse
Type: object
Legacy internal export model with individual files and summary. Public JSON endpoints return JSONExportResponse.
6 properties
| Name | Type | Required | Description |
|---|---|---|---|
files | array of ExportFile | Yes | List of exported resource files. |
envFile | EnvironmentFile | Generated environment file metadata and content. Present when template variables are detected in exported resources, otherwise omitted (or | |
envFile.fileName | string | Yes | Always |
envFile.content | string | Yes | Key=value pairs, one per line, with empty values. Variable names correspond directly to uppercase template parameter names. |
envFile.size | integer (int64) | File size in bytes. | |
summary | ExportSummary | Metadata about the export operation. |
JSONExportResponse
Type: object
JSON response returned by the export endpoints. The resources field contains the full combined YAML export and environment_variables contains the generated .env file content.
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
resources | string | Yes | Combined YAML content for all exported resources. |
environment_variables | string | Yes | Generated .env file content. Empty when no template variables are present. |
ExportFile
Type: object
A single exported resource file.
6 properties
| Name | Type | Required | Description |
|---|---|---|---|
fileName | string | Yes | Name of the file, including extension. |
content | string | Yes | File content as a UTF-8 string. |
folderPath | string | Relative path within the export archive where this file is placed. Empty for files at the root. | |
resourceType | string | The resource type this file represents. | |
resourceId | string | ID of the exported resource. | |
size | integer (int64) | File size in bytes. |
EnvironmentFile
Type: object
A generated .env file whose variable names are derived from the uppercase template variable names (e.g. {{.CLIENT_SECRET}}, {{- range .REDIRECT_URIS}}) found in the exported resource files. The content is returned in JSONExportResponse.environment_variables when template variables are detected, and is empty otherwise.
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
fileName | string | Yes | Always |
content | string | Yes | Key=value pairs, one per line, with empty values. Variable names correspond directly to uppercase template parameter names. |
size | integer (int64) | File size in bytes. |
ExportSummary
Type: object
Metadata about the export operation. totalFiles and totalSizeBytes include the .env file when it is generated.
6 properties
| Name | Type | Required | Description |
|---|---|---|---|
totalFiles | integer | Total number of files in the export, including the | |
totalSizeBytes | integer (int64) | Combined size of all exported files in bytes, including the | |
exportedAt | string (date-time) | ISO 8601 timestamp of when the export was performed. | |
resourceTypes | object | Map of resource type to the count of exported resources. | |
errors | array of ExportError | Non-fatal errors encountered during export. Resources that produced an error are excluded from the output files. | |
pagination | PaginationInfo | Pagination metadata included in the export summary. |
ExportError
Type: object
A non-fatal error that occurred while exporting a specific resource.
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
resourceType | string | ||
resourceId | string | ||
error | string | ||
code | string |
PaginationInfo
Type: object
Pagination metadata included in the export summary.
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
page | integer | ||
limit | integer | ||
totalPages | integer | ||
hasMore | boolean |
Error
Type: object
Standard error response.
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
code | string | Yes | Error code. Codes follow the EXP-XXXX convention. |
message | I18nMessage | Yes | Internationalized message with translation key and default value. |
description | I18nMessage | Internationalized message with translation key and default value. |
I18nMessage
Type: object
Internationalized message with translation key and default value.
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
key | string | Yes | Translation key for fetching localized message. |
defaultValue | string | Yes | Default message in English (fallback). |
Was this page helpful?