Skip to main content

apps

Creates, updates, deletes, gets or lists an apps resource.

Overview

Nameapps
TypeResource
Idcloudflare.realtime_kit.apps

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstring
namestring
created_atstring

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectaccount_idFetch all apps for your account
postinsertaccount_id, nameCreate new app for your account

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
account_idstringThe Cloudflare account ID.

SELECT examples

Fetch all apps for your account

SELECT
id,
name,
created_at
FROM cloudflare.realtime_kit.apps
WHERE account_id = '{{ account_id }}' -- required
;

INSERT examples

Create new app for your account

INSERT INTO cloudflare.realtime_kit.apps (
name,
account_id
)
SELECT
'{{ name }}' /* required */,
'{{ account_id }}'
RETURNING
data,
success
;