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

# bazable add

> Fetch a live API endpoint and store its response schema in the contract.

Fetches a live API endpoint and stores its response schema in the contract.

## Usage

```bash theme={null}
bazable add <url> [options]
```

## Options

<ParamField query="-m, --method" default="GET" type="string">
  HTTP method to use when fetching the endpoint.
</ParamField>

<ParamField query="-t, --token" type="string">
  Access token for authenticated endpoints.
</ParamField>

<ParamField query="-H, --header" type="string[]">
  Additional headers in `key:value` format.
</ParamField>

## Examples

<CodeGroup>
  ```bash Simple GET theme={null}
  bazable add https://jsonplaceholder.typicode.com/posts/1
  ```

  ```bash Authenticated POST theme={null}
  bazable add https://api.example.com/v1/users --method POST --token "your-token"
  ```
</CodeGroup>

<Tip>
  Use [`bazable extract`](/commands/extract) to auto-discover endpoints from source code instead of adding them one by one.
</Tip>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.