Search
⌃K

API Documentation

Teta is a full-stack platform for creating fully customizable apps without code, in just a few days and on any device.
N
HTTP Req
Endpoints
Action
1
POST
/cms/insert/subscribe
Subscribing to a project
2
DELETE
/cms/insert/unsubscribe
Unsubscribing from a project
3
GET
/cms/insert/samples
Retrieving sample data
4
GET
/cms/samples
Retrieving sample data
5
GET
/cms/collections
Retrieving collections
6
GET
/me
Retrieving user information
7
GET
/trigger/:action/:prj_id/:coll_id/:doc_id
Triggering an action on a specific document

API Examples

1. Subscribing to a project

  • Request
    • POST /cms/insert/subscribe
    • Headers
      • Content-Type: application/json
      • x-z-api-key: [your key]
    • Body (form-data) :
    {
    "collection_name": "collection1",
    "hookUrl": "https://HOOK_URL/hooks/catch/1234567/abcdefg/"
    }

2. Unsubscribing from a project

  • Request
    • DELETE /cms/insert/unsubscribe
    • Headers
      • Content-Type: application/json
      • x-z-api-key: [your key]
    • Body (form-data) :
    {
    id: "1234567890"
    }

3. Retrieving sample data

  • Request
    • GET /cms/insert/samples
    • Headers
      • Content-Type: application/json
      • x-z-api-key: [your key]
    • Query Parameters
      • collection_name: collection1

4. Retrieving sample data (Same as 3)

5. Retrieving all collections of a project

  • Request
    • GET /cms/collections
    • Headers
      • Content-Type: application/json
      • x-z-api-key: [your key]

6. Retrieving user information

  • Request
    • GET /me
    • Headers
      • Content-Type: application/json
      • x-z-api-key: [your key]

7. Triggering an action on a specific document

  • Request
    • GET /trigger/:action/:prj_id/:coll_id/:doc_id
    • Headers
      • Content-Type: application/json
      • x-z-api-key: [your key]

Response Codes

* 200 OK if successful, with response body containing the object data if any
* 401 Unauthorized if missing or malformed API key
* Other error codes for other failures