API Usage Guidelines

Endpoint URL

HTTP POST to https://appsready.dev/chat

Request Parameters

Responses

Rate Limiting

Each user has an API limit specified by APILimit, and usage is tracked by APICounter. Responses beyond the limit will return the LimitOverReasponse.

Data Processing

The message is processed based on user-specific data, or global data if useGlobalData is true. The default response is returned if no matches are found.

Examples

Python

import requests

url = 'https://appsready.dev/chat'
payload = {'userId': 'example_user', 'message': 'Hello'}
response = requests.post(url, json=payload)

print(response.text)

JavaScript

fetch('https://appsready.dev/chat', {
  method: 'POST',
  headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({ userId: 'example_user', message: 'Hello' })
})
.then(response => response.json())
.then(data => console.log(data));