> For the complete documentation index, see [llms.txt](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/integrations/configuration/provider-drafts.md). Agents can also search and read this documentation through its [MCP server](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/~gitbook/mcp).

# Save an Integration as a Draft

Save an incomplete integration configuration as a draft, then edit, promote, or delete it.

On the **Add Integration** page, you can save an integration as a **draft** instead of creating it immediately. A draft stores a partial configuration without connecting to the source system or starting extraction. Drafts are useful for setting up an integration in stages, for example while credentials or access from another team are still pending.

In the **Integrations** list, a draft has its **State** set to **Draft**. A draft can be edited, promoted to a live integration, or deleted.

## Supported integration types

Draft mode is available for an integration type when its **Add Integration** page shows a **Save draft** button. Many built-in integration types support drafts. Custom (OAA) integrations and some built-in integration types don't.

## Save a draft

1. Choose **Integrations** on the Veza navigation bar.
2. Select **Add Integration**, then choose an integration type.
3. In the **Name** field, enter a name of at least 5 characters. **Save draft** stays unavailable until the name is long enough. Integration names are unique, so a draft reserves its name.
4. Complete any other fields that are ready. Required fields, such as credentials or host, can stay empty until later.
5. Select **Save draft** at the top of the page, then select **Save as draft** in the confirmation dialog.

Veza saves the configuration and opens the new integration's details page. While an integration is a draft, Veza doesn't validate the source-specific configuration, check the credentials, or start extraction.

![The Add Integration page, with the Save draft button next to Create Integration](https://1967633068-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZDkWMxox3pekd0NsZJ%2Fuploads%2Fgit-blob-b5c877e7a22635f85566734286abc2fcfab57cf4%2Fintegration-draft-save.png?alt=media)

## Find a draft

Drafts appear in the **Integrations** list with their **State** set to **Draft**, and have no toggle to turn them on or off. To show only drafts, use the **Draft** filter at the top of the list.

![The Integrations list, showing an integration in the Draft state](https://1967633068-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZDkWMxox3pekd0NsZJ%2Fuploads%2Fgit-blob-be4991d48d16fc2d029a16581b466b291dab8b2e%2Fintegration-draft-list.png?alt=media)

## Edit a draft

1. In the **Integrations** list, open the actions menu (**⋮**) on the draft's row and select **Edit**.
2. Change any fields.
3. Select **Save draft** to keep the entry as a draft, or [promote it](#promote-a-draft-to-a-live-integration) to a live integration.

## Promote a draft to a live integration

Promoting a draft runs the full configuration validation and connects Veza to the source system.

1. In the **Integrations** list, open the actions menu (**⋮**) on the draft's row and select **Edit**.
2. Complete the remaining required fields, such as host. Enter the integration's credentials before you activate it.
3. Select **Save & Activate**.

Veza validates the complete configuration, including the credentials, and checks the limit on the number of integrations. A draft doesn't count toward that limit until you promote it.

* On success, the integration moves from **Draft** to the active state and runs like a newly created integration.
* On failure, the form shows the errors, and the entry stays a draft.

{% hint style="warning" %}
Promotion is not reversible. After a draft becomes a live integration, it can't return to the draft state.
{% endhint %}

![Editing a draft, with the Save & Activate button next to Save draft](https://1967633068-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZDkWMxox3pekd0NsZJ%2Fuploads%2Fgit-blob-be29a25d3194ac63a66f333a35715cc117bfb696%2Fintegration-draft-promote.png?alt=media)

## Delete a draft

Open the actions menu (**⋮**) on the draft's row in the **Integrations** list, select **Delete**, and confirm in the **Delete Integration** dialog. Deleting a draft works like deleting any integration. Because a draft doesn't connect to the source system, Veza has no extracted data to remove.

## Manage drafts with the API

Drafts use the [unified provider endpoints](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/developers/api/management/provider-management.md). The per-type endpoints don't support drafts.

* To save a configuration as a draft, add the query parameter `save_as_draft=true` to `POST /api/v1/providers`, or to `PATCH` or `PUT /api/v1/providers/{id}` for an existing draft.
* A draft has its `state` set to `DRAFT`. The list endpoint returns drafts with other integrations. To list only drafts, filter with `state eq "DRAFT"`.
* To promote a draft, send a `PATCH` or `PUT` request without `save_as_draft`, or with `save_as_draft=false`. Veza runs the full validation and, on success, sets the state to `ENABLED`. On a live integration, Veza ignores `save_as_draft`.

## Limitations

[Secret references](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/integrations/connectivity/secrets-vaults/secret-references-api.md) from a secrets vault can't be attached to a draft, and Veza rejects a draft save that includes them. Add them when you promote the draft.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.veza.com/4yItIzMvkpAvMVFAamTf/integrations/configuration/provider-drafts.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
