Getting started
Step 1: Choose and set up your environment
HTTP API
HTTP API
Mocra has a powerful RESTful HTTP API accessible at
https://api.mocra.io/.
You can use it to interact with Mocra if you prefer an HTTP interface or if
your favorite programming language is not listed below.Using the HTTP API does not require installing anything as long as your
language or environment can perform HTTP operations.JavaScript SDK
JavaScript SDK
If you prefer an SDK, we provide a driver for JavaScript and TypeScript. To use the
JavaScript SDK, install it with npm:TypeScript typings are included.
Python SDK
Python SDK
If you prefer an SDK, we provide a driver for Python. To use the Python SDK,
install it with pip:The SDK requires Python 3.10 or higher.
Step 2: Get a Mocra API key
An API key is required to interact with Mocra. Currently, Mocra is in beta trial, so a limited number of API keys are being issued to selected customers. If you are interested in using Mocra, emailcontact@mocra.io to join our waitlist.
Step 3: Write your code
HTTP API
HTTP API
You can use the HTTP API from any environment that supports HTTP requests. Here is an example using cURL:
JavaScript SDK
JavaScript SDK
Import the required class from
@mocra/observe and use it as in the example that follows:Python SDK
Python SDK
Import the required classes from
mocra and use them as in the example that follows:Next steps
Now that you’re set up, explore these key features:JavaScript SDK
Reference documentation for the Mocra JavaScript SDK.
Python SDK
Reference documentation for the Mocra Python SDK.

