> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://partner.ninjatrader.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://partner.ninjatrader.com/_mcp/server.

# Agreement Document Content Dependents

GET https://live.tradovateapi.com/v1/agreementDocumentContent/deps

### List the content records belonging to one agreement document.

**Available to:** All authenticated users

**Environments:** Demo, Live

**[Rate Limit](/overview/core-concepts/rate-limits):** No endpoint-specific limit

Returns the `AgreementDocumentContent` entities attached to a single agreement document. Identify the document with the `masterid` query parameter (the AgreementDocument entity ID). Each record is a lightweight reference: it carries only its own `id` and the `agreementDocumentId` it belongs to.

The document bytes themselves are stored securely outside the record and aren't returned by this endpoint. To download the generated PDF, call [`getAgreementDocument`](/api/rest-api-endpoints/users/get-agreement-document) with the same `agreementDocumentId`.

Content records are created by the platform as part of the customer application agreement workflow; you can't create or modify them directly through the API. You can find agreement document IDs for a customer application with [`agreementDocumentDependents`](/api/rest-api-endpoints/users/agreement-document-dependents).

To fetch a single record by its entity ID, use [`agreementDocumentContentItem`](/api/rest-api-endpoints/users/agreement-document-content-item). To list the content records for several agreement documents in one call, use [`agreementDocumentContentLDependents`](/api/rest-api-endpoints/users/agreement-document-content-l-dependents).

**Common Failure Scenarios**

- The `masterid` agreement document doesn't exist or isn't accessible to the calling user (returns `HTTP 404`).
- The access token is missing or invalid (returns `HTTP 401`).

Reference: https://partner.ninjatrader.com/connect/api/rest-api-endpoints/users/agreement-document-content-dependents

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: connect
  version: 1.0.0
paths:
  /agreementDocumentContent/deps:
    get:
      operationId: agreement-document-content-dependents
      summary: Agreement Document Content Dependents
      description: >-
        ### List the content records belonging to one agreement document.


        **Available to:** All authenticated users


        **Environments:** Demo, Live


        **[Rate Limit](/overview/core-concepts/rate-limits):** No
        endpoint-specific limit


        Returns the `AgreementDocumentContent` entities attached to a single
        agreement document. Identify the document with the `masterid` query
        parameter (the AgreementDocument entity ID). Each record is a
        lightweight reference: it carries only its own `id` and the
        `agreementDocumentId` it belongs to.


        The document bytes themselves are stored securely outside the record and
        aren't returned by this endpoint. To download the generated PDF, call
        [`getAgreementDocument`](/api/rest-api-endpoints/users/get-agreement-document)
        with the same `agreementDocumentId`.


        Content records are created by the platform as part of the customer
        application agreement workflow; you can't create or modify them directly
        through the API. You can find agreement document IDs for a customer
        application with
        [`agreementDocumentDependents`](/api/rest-api-endpoints/users/agreement-document-dependents).


        To fetch a single record by its entity ID, use
        [`agreementDocumentContentItem`](/api/rest-api-endpoints/users/agreement-document-content-item).
        To list the content records for several agreement documents in one call,
        use
        [`agreementDocumentContentLDependents`](/api/rest-api-endpoints/users/agreement-document-content-l-dependents).


        **Common Failure Scenarios**


        - The `masterid` agreement document doesn't exist or isn't accessible to
        the calling user (returns `HTTP 404`).

        - The access token is missing or invalid (returns `HTTP 401`).
      tags:
        - Users
      parameters:
        - name: masterid
          in: query
          description: AgreementDocument entity ID
          required: true
          schema:
            type: integer
            format: int64
        - name: Authorization
          in: header
          description: Bearer authentication
          required: true
          schema:
            type: string
      responses:
        '200':
          description: AgreementDocumentContent
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/AgreementDocumentContent'
servers:
  - url: https://live.tradovateapi.com/v1
    description: https://live.tradovateapi.com/v1
components:
  schemas:
    AgreementDocumentContent:
      type: object
      properties:
        id:
          type: integer
          format: int64
        agreementDocumentId:
          type: integer
          format: int64
      required:
        - agreementDocumentId
      title: AgreementDocumentContent
  securitySchemes:
    bearer_access_token:
      type: http
      scheme: bearer

```

## Examples



**Request**

```json
{}
```

**Response**

```json
[
  {
    "agreementDocumentId": 987654321,
    "id": 12345
  },
  {
    "agreementDocumentId": 987654321,
    "id": 12346
  }
]
```

**SDK Code**

```python
import requests

url = "https://live.tradovateapi.com/v1/agreementDocumentContent/deps"

querystring = {"masterid":"987654321"}

payload = {}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.get(url, json=payload, headers=headers, params=querystring)

print(response.json())
```

```javascript
const url = 'https://live.tradovateapi.com/v1/agreementDocumentContent/deps?masterid=987654321';
const options = {
  method: 'GET',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://live.tradovateapi.com/v1/agreementDocumentContent/deps?masterid=987654321"

	payload := strings.NewReader("{}")

	req, _ := http.NewRequest("GET", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://live.tradovateapi.com/v1/agreementDocumentContent/deps?masterid=987654321")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{}"

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://live.tradovateapi.com/v1/agreementDocumentContent/deps?masterid=987654321")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{}")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://live.tradovateapi.com/v1/agreementDocumentContent/deps?masterid=987654321', [
  'body' => '{}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://live.tradovateapi.com/v1/agreementDocumentContent/deps?masterid=987654321");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://live.tradovateapi.com/v1/agreementDocumentContent/deps?masterid=987654321")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```