> ## Documentation Index
> Fetch the complete documentation index at: https://docs.contractag.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Playground

Use the API Playground to try any Contractag endpoint without leaving this site. The form above each endpoint builds a real request to `https://api.contractag.dev` so you can see how the API responds with your data.

<Info>
  The embedded runner currently executes cURL requests. Use it for quick checks,
  then adapt the sample code below if you prefer Python, JavaScript, or .NET in
  your application.
</Info>

## Try it

<Steps>
  <Step title="Choose an endpoint">
    Open any entry under <code>Endpoints</code> to load the Playground with the
    correct method and path.
  </Step>

  <Step title="Add your token">
    Select <code>Set token</code>, paste your API key, and we’ll send requests
    with <code>Authorization: Bearer \<token></code>.
  </Step>

  <Step title="Send the request">
    Fill in the required fields, hit <code>Send</code>, and review the live
    response in the results panel.
  </Step>
</Steps>

## Sample code

Use these snippets as a starting point when you wire the API into your stack.

### Bash (cURL)

```bash theme={null}
curl -X POST https://api.contractag.dev/... \
  -H "x-api-key: $CONTRACTAG_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "key": "value" }'
```

### Python

```python theme={null}
import requests

response = requests.post(
    "https://api.contractag.dev/...",
    headers={
        "x-api-key": "YOUR_TOKEN",
        "Content-Type": "application/json",
    },
    json={"key": "value"},
)
response.raise_for_status()
print(response.json())
```

### JavaScript

```javascript theme={null}
await fetch("https://api.contractag.dev/...", {
  method: "POST",
  headers: {
    "x-api-key": "YOUR_TOKEN",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({ key: "value" }),
});
```

### C# (.NET)

```csharp theme={null}
using System.Net.Http;
using System.Net.Http.Headers;
using System.Text;

// inside an async method
using var client = new HttpClient();
client.DefaultRequestHeaders.Add("x-api-key", "YOUR_TOKEN");

var payload = new StringContent("{\"key\":\"value\"}", Encoding.UTF8, "application/json");
var response = await client.PostAsync("https://api.contractag.dev/...", payload);
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
```

Need a hand with a specific endpoint? Email <a href="mailto:support@contractag.dev">[support@contractag.dev](mailto:support@contractag.dev)</a> and we’ll help you craft the request.
