Platform
APIs & SDKs
Resources

...

App monitoring

Introduction

App monitoring is a tool that lets you to make use of the Platform reporting feature. Log errors that occur in your application and analyze data in the Developer Console. This funtionality allows you monitor the performance of your app without implementing a complex analytics solution.

There are two ways to report errors:

App ID

Whiever method of logging events you choose, you'll need to know your App ID (appId param).

💡 How to find App ID? Go to Developer Console > Apps > Overview or extract it from the URL: https://platform.text.com/console/apps/{appId}/monitor

AppId in Developer Console

Monitoring API

Events

Log events such as 4xx or 5xx errors that occur in your application. You need to provide appId in the endpoint.

Specifics

Method URLhttps://api.text.com/app_monitoring/<appId>/events
HTTPPOST
Authorization-

Request

FieldTypeDescription
organization_idstringUUID format. Organization ID associated with the event
typestring4xx or 5xx
payloadstringEvent payload. Max size: 1 kB
/app_monitoring/<appId>/events
Copied!
curl -X POST \
https://api.text.com/app_monitoring/<appId>/events \
  -H 'Content-Type: application/json' \
  -d '{
    "organization_id": "3aa138c1-c137-41c6-6b26-cface5857378",
    "type": "4xx",
    "payload": "404 Not found"
  }'

Developer SDK

If your app uses JavaScript, you can make use of the sendError() method from Developer SDK to achieve the same result as with the /events endpoint.

See Developer SDK docs

Contact us

We're happy to provide our support in case you need it. If you have any questions or suggestions, feel free to contact us at developers@text.com or join our Discord for Developers.

...

Join the community
Get in direct contact with us through Discord.
Follow us
Follow our insightful tweets and interact with our content.
Contribute
See something that's wrong or unclear? Submit a pull request.
Contact us
Want to share feedback? Reach us at: developers@text.com