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

# Code Examples

> Ready-to-use snippets for integrating with your Mockulator endpoints.

<Tabs>
  <Tab title="JavaScript">
    ```javascript theme={null}
        fetch('https://api.mockulator.com/api/ABC12345/myserver/users', {
          method: 'POST',
          headers: {
            'Content-Type': 'application/json',
            'X-API-Key': 'your-api-key'
          },
          body: JSON.stringify({
            name: 'John Doe',
            email: 'john@example.com'
          })
        })
        .then(response => response.json())
        .then(data => console.log(data));
    ```
  </Tab>

  <Tab title="cURL">
    ```bash theme={null}
        curl -X POST \
          https://api.mockulator.com/api/ABC12345/myserver/users \
          -H "Content-Type: application/json" \
          -H "X-API-Key: your-api-key" \
          -d '{"name": "John Doe", "email": "john@example.com"}'
    ```
  </Tab>
</Tabs>
