> For the complete documentation index, see [llms.txt](https://documentation.siteglide.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.siteglide.com/developer-tools/site-api/modules.md).

# Modules

## GET /modules/{module}/items

> Retrieve all Module Items from an individual Module

```json
{"openapi":"3.1.0","info":{"title":"Siteglide Site API","version":"2.0.0"},"servers":[{"url":"{siteUrl}/api/site/v2","variables":{"siteUrl":{"default":"https://www.my-site.com"}}}],"security":[{"apiKey":[],"siteID":[]}],"components":{"securitySchemes":{"apiKey":{"type":"apiKey","in":"header","name":"x-api-key","description":"Your Siteglide API key"},"siteID":{"type":"apiKey","in":"header","name":"x-site-id","description":"The ID of the Siteglide site you are working with (not an API key — just the numeric site ID)"}}},"paths":{"/modules/{module}/items":{"get":{"tags":["Modules"],"summary":"Retrieve all Module Items from an individual Module","parameters":[{"name":"module","in":"path","required":true,"description":"The Module ID","schema":{"type":"string"}},{"name":"per_page","in":"query","description":"Number of items to retrieve, maximum of 500","schema":{"type":"integer"}},{"name":"sort_type","in":"query","description":"Field by which to sort the results. Use `id`, `created_at`, or `updated_at` for system fields, or a custom field ID (e.g. `module_field_3_1`).","schema":{"type":"string"}},{"name":"sort_order","in":"query","description":"Order of results","schema":{"type":"string","enum":["asc","desc"],"default":"desc"}},{"name":"page","in":"query","description":"Page to retrieve number, to be used with per_page","schema":{"type":"integer"}}],"responses":{"200":{"description":"OK"},"401":{"description":"Unauthorized - Credentials Incorrect"},"403":{"description":"Forbidden - You cannot access this site"},"404":{"description":"Not Found - Module does not exist"},"422":{"description":"Unprocessable Entity - Required data missing or data invalid"}}}}}}
```

## GET /modules/{module}/items/{id}

> Retrieve all data about an individual Module Item

```json
{"openapi":"3.1.0","info":{"title":"Siteglide Site API","version":"2.0.0"},"servers":[{"url":"{siteUrl}/api/site/v2","variables":{"siteUrl":{"default":"https://www.my-site.com"}}}],"security":[{"apiKey":[],"siteID":[]}],"components":{"securitySchemes":{"apiKey":{"type":"apiKey","in":"header","name":"x-api-key","description":"Your Siteglide API key"},"siteID":{"type":"apiKey","in":"header","name":"x-site-id","description":"The ID of the Siteglide site you are working with (not an API key — just the numeric site ID)"}}},"paths":{"/modules/{module}/items/{id}":{"get":{"tags":["Modules"],"summary":"Retrieve all data about an individual Module Item","parameters":[{"name":"module","in":"path","required":true,"description":"The Module ID","schema":{"type":"string"}},{"name":"id","in":"path","required":true,"description":"The ID of the Module item","schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"401":{"description":"Unauthorized - Credentials Incorrect"},"403":{"description":"Forbidden - You cannot access this site"},"404":{"description":"Not Found - Module Item does not exist"},"422":{"description":"Unprocessable Entity - Required data missing or data invalid"}}}}}}
```

## Update a Module Item within an individual Module

> To see the Module's fields and the value each one takes, first get its fields (\`GET /modules/{module}/fields\`).

```json
{"openapi":"3.1.0","info":{"title":"Siteglide Site API","version":"2.0.0"},"servers":[{"url":"{siteUrl}/api/site/v2","variables":{"siteUrl":{"default":"https://www.my-site.com"}}}],"security":[{"apiKey":[],"siteID":[]}],"components":{"securitySchemes":{"apiKey":{"type":"apiKey","in":"header","name":"x-api-key","description":"Your Siteglide API key"},"siteID":{"type":"apiKey","in":"header","name":"x-site-id","description":"The ID of the Siteglide site you are working with (not an API key — just the numeric site ID)"}}},"paths":{"/modules/{module}/items/{id}":{"put":{"tags":["Modules"],"summary":"Update a Module Item within an individual Module","description":"To see the Module's fields and the value each one takes, first get its fields (`GET /modules/{module}/fields`).","parameters":[{"name":"module","in":"path","required":true,"description":"The Module ID","schema":{"type":"string"}},{"name":"id","in":"path","required":true,"description":"The Module Item ID","schema":{"type":"string"}}],"requestBody":{"required":true,"description":"Your Module custom fields as a JSON object","content":{"application/json":{"schema":{"type":"object","required":["name","enabled"],"properties":{"name":{"type":"string"},"slug":{"type":"string"},"enabled":{"type":"string"},"module_field_3_1":{"type":"string"},"module_field_custom_3_2":{"type":"string"}}}}}},"responses":{"200":{"description":"OK"},"401":{"description":"Unauthorized - Credentials Incorrect"},"403":{"description":"Forbidden - You cannot access this site"},"422":{"description":"Unprocessable Entity - Required data missing or data invalid"}}}}}}
```

## Create a Module Items within an individual Module

> To see the Module's fields and the value each one takes, first get its fields (\`GET /modules/{module}/fields\`).

```json
{"openapi":"3.1.0","info":{"title":"Siteglide Site API","version":"2.0.0"},"servers":[{"url":"{siteUrl}/api/site/v2","variables":{"siteUrl":{"default":"https://www.my-site.com"}}}],"security":[{"apiKey":[],"siteID":[]}],"components":{"securitySchemes":{"apiKey":{"type":"apiKey","in":"header","name":"x-api-key","description":"Your Siteglide API key"},"siteID":{"type":"apiKey","in":"header","name":"x-site-id","description":"The ID of the Siteglide site you are working with (not an API key — just the numeric site ID)"}}},"paths":{"/modules/{module}/create":{"post":{"tags":["Modules"],"summary":"Create a Module Items within an individual Module","description":"To see the Module's fields and the value each one takes, first get its fields (`GET /modules/{module}/fields`).","parameters":[{"name":"module","in":"path","required":true,"description":"The Module ID","schema":{"type":"string"}}],"requestBody":{"required":true,"description":"Your Module custom fields as a JSON object","content":{"application/json":{"schema":{"type":"object","required":["name","enabled"],"properties":{"name":{"type":"string"},"slug":{"type":"string"},"enabled":{"type":"string"},"module_field_3_1":{"type":"string"},"module_field_custom_3_2":{"type":"string"}}}}}},"responses":{"200":{"description":"OK"},"401":{"description":"Unauthorized - Credentials Incorrect"},"403":{"description":"Forbidden - You cannot access this site"},"422":{"description":"Unprocessable Entity - Required data missing or data invalid"}}}}}}
```
