> For the complete documentation index, see [llms.txt](https://nuderebatsin-roal.gitbook.io/zkcloud-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://nuderebatsin-roal.gitbook.io/zkcloud-docs/apis/create-proof-r1cs.md).

# Create Proof (r1cs)

## Create Proof (r1cs)

<mark style="color:green;">`POST`</mark> `https://api.zkcloud.systems/proofs/create/r1cs`

This endpoint allows you to generate a proof posting r1cs circom.

#### Headers

| Name          | Type   | Description                                                                                                                      |
| ------------- | ------ | -------------------------------------------------------------------------------------------------------------------------------- |
| Authorization | string | Authentication token.                                                                                                            |
| Accept        | string | The Accept request-header field can be used to specify certain media types which are acceptable for the response and versioning. |

#### Request Body

| Name       | Type   | Description                            |
| ---------- | ------ | -------------------------------------- |
| wasmCircom | object | Wasm circom file (multipart/form-data) |
| r1csCircom | object | R1cs circom file (multipart/form-data) |
| input      | object | Input file (multipart/form-data)       |
| protocol   | string | Protocol type (multipart/form-data)    |

{% tabs %}
{% tab title="200 Proof successfully retrieved." %}

```
{
  "id":"EA6h9bxo2tlknmM-hmYh-",
  "duration": 0,
  "protocol":"PLONK",
  "status":"CREATED",
  "proofFileUrl": null,
  "startDate": null
  "endDate": null
}
```

{% endtab %}
{% endtabs %}

#### Example

```
curl -H "Authorization: Bearer <API_TOKEN>" -F 'wasmCircom=@./circuit.wasm' -F 'r1csCircom=@./circuit.r1cs' -F 'input=@./input.json' -F 'protocol=PLONK' http://api.zkcloud.systems/proofs/create/r1cs
```


---

# 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 dynamically by asking a question.

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

```
GET https://nuderebatsin-roal.gitbook.io/zkcloud-docs/apis/create-proof-r1cs.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.
