---
agentTools:
  projectIndex: https://developer-docs.gomotive.com/llms.txt
---

# Fetch the document forms of your company

**Purpose**: Use this API to fetch all the document forms available for your company.

## Response Parameters

### forms

* **Type**: Array of Objects
* **Description**: A list of forms available.

### id

* **Type**: Integer
* **Description**: The unique identifier for the form.

### updated\_at

* **Type**: DateTime
* **Description**: The timestamp of when the form was last updated.

### hidden\_from\_drivers

* **Type**: Boolean
* **Description**: Indicates whether the form is hidden from drivers.

### editable

* **Type**: Boolean
* **Description**: Indicates whether the form is editable.

### created\_at

* **Type**: DateTime
* **Description**: The timestamp of when the form was created.

### category

* **Type**: String
* **Description**: The category of the form, e.g., "Bill of lading".

### created\_by

* **Type**: Object
* **Description**: The user who created the form.

### id

* **Type**: Integer
* **Description**: The unique identifier for the user who created the form.

### first\_name

* **Type**: String
* **Description**: The first name of the user who created the form.

### last\_name

* **Type**: String
* **Description**: The last name of the user who created the form.

### modified\_by

* **Type**: Object
* **Description**: The user who last modified the form.

### id

* **Type**: Integer
* **Description**: The unique identifier for the user who last modified the form.

### first\_name

* **Type**: String
* **Description**: The first name of the user who last modified the form.

### last\_name

* **Type**: String
* **Description**: The last name of the user who last modified the form.

***

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Motive",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.gomotive.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "x-api-key"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/v2/documents/forms": {
      "get": {
        "summary": "Fetch the document forms of your company",
        "description": "",
        "operationId": "fetch-the-document-forms-of-your-company",
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "description": "Specify the status of the document form that you are fetching. Allowed values are 'published', 'deactivated'.",
            "required": true,
            "schema": {
              "type": "string",
              "default": "published"
            }
          },
          {
            "name": "per_page",
            "in": "query",
            "description": "The number of records per page.",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 25
            }
          },
          {
            "name": "page_no",
            "in": "query",
            "description": "The current page number",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Fetch all the forms": {
                    "value": "  {\n  \"forms\": [\n    {\n      \"form\": {\n        \"id\": 156,\n        \"updated_at\": \"2021-09-29T00:45:20Z\",\n        \"hidden_from_drivers\": false,\n        \"editable\": true,\n        \"created_at\": \"2021-09-29T00:45:20Z\",\n        \"category\": \"Bill of lading\",\n        \"created_by\": {\n          \"id\": 417,\n          \"first_name\": \"John\",\n          \"last_name\": \"Doe\"\n        },\n        \"modified_by\": {\n          \"id\": 417,\n          \"first_name\": \"John\",\n          \"last_name\": \"Doe\"\n        }\n      }\n    }\n  ],\n  \"per_page\": 50,\n  \"page_no\": 1,\n  \"total\": 1\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "forms": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "form": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "integer",
                                "example": 156,
                                "default": 0
                              },
                              "updated_at": {
                                "type": "string",
                                "example": "2021-09-29T00:45:20Z"
                              },
                              "hidden_from_drivers": {
                                "type": "boolean",
                                "example": false,
                                "default": true
                              },
                              "editable": {
                                "type": "boolean",
                                "example": true,
                                "default": true
                              },
                              "created_at": {
                                "type": "string",
                                "example": "2021-09-29T00:45:20Z"
                              },
                              "category": {
                                "type": "string",
                                "example": "Bill of lading"
                              },
                              "created_by": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "integer",
                                    "example": 417,
                                    "default": 0
                                  },
                                  "first_name": {
                                    "type": "string",
                                    "example": "John"
                                  },
                                  "last_name": {
                                    "type": "string",
                                    "example": "Doe"
                                  }
                                }
                              },
                              "modified_by": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "integer",
                                    "example": 417,
                                    "default": 0
                                  },
                                  "first_name": {
                                    "type": "string",
                                    "example": "John"
                                  },
                                  "last_name": {
                                    "type": "string",
                                    "example": "Doe"
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    },
                    "per_page": {
                      "type": "integer",
                      "example": 50,
                      "default": 0
                    },
                    "page_no": {
                      "type": "integer",
                      "example": 1,
                      "default": 0
                    },
                    "total": {
                      "type": "integer",
                      "example": 1,
                      "default": 0
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "403",
            "content": {
              "application/json": {
                "examples": {
                  "Invalid API Key": {
                    "value": "{\n  \"error_message\": \"invalid API key\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "error_message": {
                      "type": "string",
                      "example": "invalid API key"
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "66acf64a829e88001980fbf2:66d1ede66c26ea0060ce6e15"
}
```