KosmoKrator

productivity

IFTTT Lua API for KosmoKrator Agents

Agent-facing Lua documentation and function reference for the IFTTT KosmoKrator integration.

7 functions 7 read 0 write Bearer token auth

Lua Namespace

Agents call this integration through app.integrations.ifttt.*. Use lua_read_doc("integrations.ifttt") inside KosmoKrator to discover the same reference at runtime.

Agent-Facing Lua Docs

This is the rendered version of the full Lua documentation exposed to agents when they inspect the integration namespace.

Client for the IFTTT REST API — Lua API Reference

ifttt_list_services

List services in IFTTT with optional filters.

Parameters

NameTypeRequiredDescription
limitintegernoMax number of services to return.
pageintegernoPage number for pagination.

Example

local result = app.integrations.ifttt.ifttt_list_services({
  limit = 50
  page = 1
})

ifttt_get_service

Get detailed information about an IFTTT service.

Parameters

NameTypeRequiredDescription
idstringyesThe service ID.

Example

local result = app.integrations.ifttt.ifttt_get_service({
  id = ""
})

ifttt_list_applets

List applets in IFTTT with optional filters.

Parameters

NameTypeRequiredDescription
limitintegernoMax number of applets to return.
pageintegernoPage number for pagination.

Example

local result = app.integrations.ifttt.ifttt_list_applets({
  limit = 50
  page = 1
})

ifttt_get_applet

Get detailed information about an IFTTT applet.

Parameters

NameTypeRequiredDescription
idstringyesThe applet ID.

Example

local result = app.integrations.ifttt.ifttt_get_applet({
  id = ""
})

ifttt_list_connections

List connections in IFTTT with optional filters.

Parameters

NameTypeRequiredDescription
limitintegernoMax number of connections to return.
pageintegernoPage number for pagination.

Example

local result = app.integrations.ifttt.ifttt_list_connections({
  limit = 50
  page = 1
})

ifttt_get_connection

Get detailed information about an IFTTT connection.

Parameters

NameTypeRequiredDescription
idstringyesThe connection ID.

Example

local result = app.integrations.ifttt.ifttt_get_connection({
  id = ""
})

ifttt_get_current_user

Get the currently authenticated IFTTT user.

Example

local result = app.integrations.ifttt.ifttt_get_current_user({
})

Multi-Account Usage

If you have multiple ifttt accounts configured, use account-specific namespaces:

-- Default account (always works)
app.integrations.ifttt.function_name({...})

-- Explicit default (portable across setups)
app.integrations.ifttt.default.function_name({...})

-- Named accounts
app.integrations.ifttt.work.function_name({...})
app.integrations.ifttt.personal.function_name({...})

All functions are identical across accounts — only the credentials differ.

Raw agent markdown
# Client for the IFTTT REST API — Lua API Reference

## ifttt_list_services

List services in IFTTT with optional filters.

### Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `limit` | integer | no | Max number of services to return. |
| `page` | integer | no | Page number for pagination. |

### Example

```lua
local result = app.integrations.ifttt.ifttt_list_services({
  limit = 50
  page = 1
})
```

## ifttt_get_service

Get detailed information about an IFTTT service.

### Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `id` | string | yes | The service ID. |

### Example

```lua
local result = app.integrations.ifttt.ifttt_get_service({
  id = ""
})
```

## ifttt_list_applets

List applets in IFTTT with optional filters.

### Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `limit` | integer | no | Max number of applets to return. |
| `page` | integer | no | Page number for pagination. |

### Example

```lua
local result = app.integrations.ifttt.ifttt_list_applets({
  limit = 50
  page = 1
})
```

## ifttt_get_applet

Get detailed information about an IFTTT applet.

### Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `id` | string | yes | The applet ID. |

### Example

```lua
local result = app.integrations.ifttt.ifttt_get_applet({
  id = ""
})
```

## ifttt_list_connections

List connections in IFTTT with optional filters.

### Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `limit` | integer | no | Max number of connections to return. |
| `page` | integer | no | Page number for pagination. |

### Example

```lua
local result = app.integrations.ifttt.ifttt_list_connections({
  limit = 50
  page = 1
})
```

## ifttt_get_connection

Get detailed information about an IFTTT connection.

### Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `id` | string | yes | The connection ID. |

### Example

```lua
local result = app.integrations.ifttt.ifttt_get_connection({
  id = ""
})
```

## ifttt_get_current_user

Get the currently authenticated IFTTT user.

### Example

```lua
local result = app.integrations.ifttt.ifttt_get_current_user({
})
```

---

## Multi-Account Usage

If you have multiple ifttt accounts configured, use account-specific namespaces:

```lua
-- Default account (always works)
app.integrations.ifttt.function_name({...})

-- Explicit default (portable across setups)
app.integrations.ifttt.default.function_name({...})

-- Named accounts
app.integrations.ifttt.work.function_name({...})
app.integrations.ifttt.personal.function_name({...})
```

All functions are identical across accounts — only the credentials differ.

Metadata-Derived Lua Example

local result = app.integrations.ifttt.ifttt_list_services({
  limit = 1,
  page = 1
})
print(result)

Functions

ifttt_list_services

List services in IFTTT with optional filters.

Operation
Read read
Full name
ifttt.ifttt_list_services
ParameterTypeRequiredDescription
limit integer no Max number of services to return.
page integer no Page number for pagination.

ifttt_get_service

Get detailed information about an IFTTT service.

Operation
Read read
Full name
ifttt.ifttt_get_service
ParameterTypeRequiredDescription
id string yes The service ID.

ifttt_list_applets

List applets in IFTTT with optional filters.

Operation
Read read
Full name
ifttt.ifttt_list_applets
ParameterTypeRequiredDescription
limit integer no Max number of applets to return.
page integer no Page number for pagination.

ifttt_get_applet

Get detailed information about an IFTTT applet.

Operation
Read read
Full name
ifttt.ifttt_get_applet
ParameterTypeRequiredDescription
id string yes The applet ID.

ifttt_list_connections

List connections in IFTTT with optional filters.

Operation
Read read
Full name
ifttt.ifttt_list_connections
ParameterTypeRequiredDescription
limit integer no Max number of connections to return.
page integer no Page number for pagination.

ifttt_get_connection

Get detailed information about an IFTTT connection.

Operation
Read read
Full name
ifttt.ifttt_get_connection
ParameterTypeRequiredDescription
id string yes The connection ID.

ifttt_get_current_user

Get the currently authenticated IFTTT user.

Operation
Read read
Full name
ifttt.ifttt_get_current_user
ParameterTypeRequiredDescription
No parameters.