> 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/webapps.md).

# WebApps

## GET /webapps/{webapp}/items

> Retrieve all WebApp Items from an individual WebApp

```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":{"/webapps/{webapp}/items":{"get":{"tags":["WebApps"],"summary":"Retrieve all WebApp Items from an individual WebApp","parameters":[{"name":"webapp","in":"path","required":true,"description":"The WebApp 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. `webapp_field_1_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 - WebApp does not exist"},"422":{"description":"Unprocessable Entity - Required data missing or data invalid"}}}}}}
```

## GET /webapps/{webapp}/items/{id}

> Retrieve all data about an individual WebApp 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":{"/webapps/{webapp}/items/{id}":{"get":{"tags":["WebApps"],"summary":"Retrieve all data about an individual WebApp Item","parameters":[{"name":"webapp","in":"path","required":true,"description":"The WebApp ID","schema":{"type":"string"}},{"name":"id","in":"path","required":true,"description":"The ID of the WebApp 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 - WebApp Item does not exist"},"422":{"description":"Unprocessable Entity - Required data missing or data invalid"}}}}}}
```

## Update a WebApp Item within an individual WebApp

> To see the WebApp's fields and the value each one takes, first get its fields (\`GET /webapps/{webapp}/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":{"/webapps/{webapp}/items/{id}":{"put":{"tags":["WebApps"],"summary":"Update a WebApp Item within an individual WebApp","description":"To see the WebApp's fields and the value each one takes, first get its fields (`GET /webapps/{webapp}/fields`).","parameters":[{"name":"webapp","in":"path","required":true,"description":"The WebApp ID","schema":{"type":"string"}},{"name":"id","in":"path","required":true,"description":"The WebApp Item ID","schema":{"type":"string"}}],"requestBody":{"required":true,"description":"Your WebApp 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"},"webapp_field_1_1":{"type":"string"},"webapp_field_1_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 WebApp Items within an individual WebApp

> To see the WebApp's fields and the value each one takes, first get its fields (\`GET /webapps/{webapp}/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":{"/webapps/{webapp}/create":{"post":{"tags":["WebApps"],"summary":"Create a WebApp Items within an individual WebApp","description":"To see the WebApp's fields and the value each one takes, first get its fields (`GET /webapps/{webapp}/fields`).","parameters":[{"name":"webapp","in":"path","required":true,"description":"The WebApp ID","schema":{"type":"string"}}],"requestBody":{"required":true,"description":"Your WebApp 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"},"webapp_field_1_1":{"type":"string"},"webapp_field_1_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"}}}}}}
```
