# Submit Signed Artifact

Submit the externally signed artifact for the current swap step.

**Endpoint:** `POST /api/v1/swap/{swapId}/signing`\
**Auth:** Required (`Authorization: Bearer YOUR_API_KEY`)

## Headers

| Header            | Required | Description                                                                                                                                                                                                                                                                                                             |
| ----------------- | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `Idempotency-Key` | No       | Optional opaque dedupe token. If omitted, the gateway generates one automatically. Leave it blank for one-off Swagger or curl calls. Send your own UUIDv4 or ULID only when retrying the exact same payload and you need retry-safe dedupe. Allowed characters: `A-Z`, `a-z`, `0-9`, `.`, `_`, `:`, `-`. Max 200 chars. |

## Path parameters

| Field    | Type   | Required | Description                            |
| -------- | ------ | -------- | -------------------------------------- |
| `swapId` | string | Yes      | Swap ID returned by `POST /swap/build` |

## Request body

| Field   | Type   | Required | Description                                                           |
| ------- | ------ | -------- | --------------------------------------------------------------------- |
| `rawTx` | string | Yes      | Signed transaction artifact returned by the external wallet or signer |

## Example

```bash
curl -X POST 'https://api.gateway.zert.com/api/v1/swap/92714c81-38ec-4782-8624-0f56f526a9fd/signing' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -d '{
    "rawTx": "0x_signed_tx_from_external_wallet"
  }'
```

Leave `Idempotency-Key` blank for one-off Swagger or curl calls. If you need retry-safe dedupe, send your own key only when retrying the exact same payload. The SDK and Postman collection can generate one automatically.

## Responses

| Code | Description                                                                 |
| ---- | --------------------------------------------------------------------------- |
| 200  | Signed artifact accepted. Poll the same signing surface for the next step   |
| 400  | Invalid signed transaction                                                  |
| 401  | Unauthorized                                                                |
| 404  | Swap not found                                                              |
| 409  | Current tx request is expired, not yet valid, or does not match the payload |
| 503  | PG or Kafka unavailable                                                     |

{% embed url="<https://api.gateway.zert.com/docs>" %}
Zert API — Submit Signed Artifact
{% endembed %}


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.zert.com/api-reference/swap/submit-wallet-signed-artifact.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
