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

# Higgsfield-Standard - Query Action Template - gptproto

> Higgsfield-Standard — Query Action Template (gptproto). GPTProto API reference.

Query available action templates (motions) for video generation using Higgsfield's GPTProto format API.

```bash cURL theme={null}
curl --location --request GET 'https://gptproto.com/v1/higgsfield/tpl/motions?size=20&search=' \
--header 'Authorization: YOUR_API_KEY'
```

```python Python theme={null}
import requests

url = "https://gptproto.com/v1/higgsfield/tpl/motions"
headers = {
    "Authorization": "YOUR_API_KEY"
}

params = {
    "size": 20,
    "search": ""
}

response = requests.get(url, headers=headers, params=params)
result = response.json()
print(result)
```

```javascript JavaScript theme={null}
const url = "https://gptproto.com/v1/higgsfield/tpl/motions?size=20&search=";
const headers = {
  "Authorization": "YOUR_API_KEY"
};

fetch(url, {
  method: "GET",
  headers: headers
})
  .then(response => response.json())
  .then(data => console.log(data))
  .catch(error => console.error("Error:", error));
```

```go Go theme={null}
package main

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

func main() {
    url := "https://gptproto.com/v1/higgsfield/tpl/motions?size=20&search="

    req, _ := http.NewRequest("GET", url, nil)
    req.Header.Set("Authorization", "YOUR_API_KEY")

    client := &http.Client{}
    resp, err := client.Do(req)
    if err != nil {
        panic(err)
    }
    defer resp.Body.Close()

    body, _ := ioutil.ReadAll(resp.Body)
    fmt.Println(string(body))
}
```

## Response

```json 200 - Success theme={null}
{
  "templates": [
    {
      "id": "template_001",
      "name": "Motion Template 1",
      "description": "Description of motion template"
    }
  ],
  "total": 20
}
```

```json 401 - Invalid signature theme={null}
{
  "error": {
    "message": "Invalid signature",
    "type": "401"
  }
}
```

```json 403 - Insufficient balance theme={null}
{
  "error": {
    "message": "Insufficient balance",
    "type": "403"
  }
}
```

```json 500 - Internal server error theme={null}
{
  "error": {
    "message": "Internal server error",
    "type": "500"
  }
}
```

## Query Parameters

| Parameter | Type | Required | Default | Description |
| - | - | - | - | - |
| `size` | integer | ❌ No | `20` | Number of templates to return |
| `search` | string | ❌ No | `""` | Search query to filter templates by name or description |


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