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

# Compensation Workflows

> Retrieve executive compensation records by issuer using the API or SDK to power pay-analysis and governance research workflows.

## Latest compensation records

### API

```bash theme={null}
curl -H "x-api-key: $SECAPI_API_KEY" \
  "$SECAPI_BASE_URL/v1/compensation?ticker=AAPL&limit=10"
```

### SDK

```ts theme={null}
const client = new SecApiClient({ apiKey: process.env.SECAPI_API_KEY })
const records = await client.compensation({ ticker: "AAPL", limit: 10 })
```

### CLI

```bash theme={null}
secapi compensation list --ticker AAPL --limit 10
```

## Compare the latest two compensation disclosures

### API

```bash theme={null}
curl -X POST \
  -H "content-type: application/json" \
  -H "x-api-key: $SECAPI_API_KEY" \
  -d '{"ticker":"AAPL","limit":10}' \
  "$SECAPI_BASE_URL/v1/compensation/compare"
```

### SDK

```ts theme={null}
const comparison = await client.compareCompensation({ ticker: "AAPL", limit: 10 })
```

### CLI

```bash theme={null}
secapi compensation compare --ticker AAPL --limit 10
```
