# Import and export agent packages and configure system agents

Export or load agent packages, and query, validate, and update system-agent configuration. This page does not cover normal-agent creation, versions, or runtime configuration.

## Prerequisites

Prepare credentials that can access the target workspace and the target information to import, export, or configure. For service endpoints, authentication, and general request formats, see [Prepare to call an API](../../api-call-basics.md).

The package information required by export and load actions is defined by their action pages. Query the current configuration before updating a system agent.

## Call sequence

1. To migrate or back up an agent, export its package. To load an existing package, use the load action and confirm its returned result.
2. Before configuring a system agent, [get the system-agent configuration](../../../../reference/api/ai-studio/agents/system-agent-setups/get-system-agent-setup.md).
3. To select a GitHub project, list available projects based on the current configuration or the new configuration to submit.
4. After updating the configuration, get the system-agent configuration again to confirm the current result.

## API operations

### Import and export agent packages

| What you need to do | API operation | Use it when |
| --- | --- | --- |
| Export an agent package | [Export an agent package](../../../../reference/api/ai-studio/agents/agent-packages/export-agent-package.md) | Obtain an agent package. |
| Load an agent package | [Load an agent package](../../../../reference/api/ai-studio/agents/agent-packages/load-agent-package.md) | You prepared an agent package and need to load it. |

### Query and update system-agent configuration

| What you need to do | API operation | Use it when |
| --- | --- | --- |
| Get system-agent configuration | [Get system-agent configuration](../../../../reference/api/ai-studio/agents/system-agent-setups/get-system-agent-setup.md) | Confirm the current configuration before or after an update. |
| List system-agent GitHub projects | [List system-agent GitHub projects](../../../../reference/api/ai-studio/agents/system-agent-setups/list-system-agent-github-projects.md) | Select a GitHub project based on the current configuration. |
| List system-agent GitHub projects for new configuration | [List GitHub projects for new configuration](../../../../reference/api/ai-studio/agents/system-agent-setups/list-github-projects-for-create.md) | Query projects from the content to submit before creating a new configuration. |
| Update system-agent configuration | [Update system-agent configuration](../../../../reference/api/ai-studio/agents/system-agent-setups/update-system-agent-setup.md) | You confirmed the target configuration. |

## Confirm the result

After loading a package, confirm the result on its load action page. After updating a system-agent configuration, use [Get system-agent configuration](../../../../reference/api/ai-studio/agents/system-agent-setups/get-system-agent-setup.md) to confirm the current configuration.

## Next steps

- [Create and maintain agents](agents.md)
- [Configure models, runtimes, and policies](model-runtime-policies.md)
