# App

An app: a small Cogniscript program that runs on Maitento and orchestrates interactions, code pipelines, capsules and tools. Each deploy that changes it adds a version.

**Kind:** an object, used in responses.

## Fields

Every field is present in a response; empty ones are `null`.

| Field | Type | Description |
|---|---|---|
| `versions` | [`AppVersion`](https://docs.maitento.com/reference/types/app-version.md)`[]` | Every version of the app, oldest first. |
| `name` | `string` | The app's name, unique within its namespace: the name of its folder under `apps/`. |
| `userCreatedById` | `uuid` | The id of the user who created it. A call made with an API key is recorded as the key's user. |
| `namespaceId` | `uuid` | The id of the namespace it belongs to. |
| `tenantId` | `uuid` | The id of the tenant it belongs to. |
| `id` | `uuid` | The unique id. Use it in `by-id` routes and wherever another object refers to this one. |
| `dateCreated` | `datetime` | When it was created, in UTC. |
| `dateUpdated` | `datetime` | When it was last changed, in UTC. |

## Example

```json
{
  "versions": [
    {
      "inputs": [],
      "externalOperationsMcp": [],
      "externalOperationsOpenApi": [],
      "fileChecksum": "aGVsbG8=",
      "executionTimeLimit": "00:05:00",
      "credentialStack": "...",
      "version": 0,
      "date": "2026-10-26T12:00:00.0000000Z",
      "isDisabled": false
    }
  ],
  "name": "...",
  "userCreatedById": "3f2b8c1e-5d4a-4e6b-9c7d-2a1b0c9d8e7f",
  "namespaceId": "3f2b8c1e-5d4a-4e6b-9c7d-2a1b0c9d8e7f",
  "tenantId": "3f2b8c1e-5d4a-4e6b-9c7d-2a1b0c9d8e7f",
  "id": "3f2b8c1e-5d4a-4e6b-9c7d-2a1b0c9d8e7f",
  "dateCreated": "2026-10-26T12:00:00.0000000Z",
  "dateUpdated": "2026-10-26T12:00:00.0000000Z"
}
```

## Where it's used

- [`apps.create`](https://docs.maitento.com/reference/api/apps.md) (`POST /namespaces/{namespaceName}/apps`)
- [`apps.getByName`](https://docs.maitento.com/reference/api/apps.md) (`GET /namespaces/{namespaceName}/apps/by-name/{name}`)
- [`apps.get`](https://docs.maitento.com/reference/api/apps.md) (`GET /apps/by-id/{id}`)
- [`apps.list`](https://docs.maitento.com/reference/api/apps.md) (`GET /apps`)
- [`apps.list`](https://docs.maitento.com/reference/api/apps.md) (`GET /namespaces/{namespaceName}/apps`)
- Inside [`BuildEntityOfApp`](https://docs.maitento.com/reference/types/build-entity-of-app.md)
