Skip to main content

Quickstart

This quickstart walks you through installing the SDK, configuring credentials, and issuing your first request against the Simulacrum forecasting API.

Prerequisites

  • Python 3.11.13 or newer.
  • A Simulacrum account at app.smlcrm.com with an API key that has forecasting permissions.
  • Network access to https://api.smlcrm.com/.
1

Create an API key

2

Install the SDK

3

Instantiate the client

4

Generate a forecast

1. Create your Simulacrum account

  1. Visit app.smlcrm.com and create or join your workspace.
  2. Select API Keys on the left navigation bar and generate a key with forecasting access.
  3. Store the key securely (for example in a secrets manager) and copy it for the next steps.

2. Install

To pin to a specific version:

3. Configure credentials

Replace "sim-key_id-secret" with the key you generated in step 1. For local development you can export it as an environment variable:
Then load it safely in code:

4. Send your first forecast

You will receive a numpy array containing one value per horizon step. The SDK validates your inputs before the request is issued, so dimension mismatches throw early exceptions.

5. Validate the API key

Use validation in CI to ensure service accounts stay active. The response includes expiration metadata when it is exposed by the platform.

Next steps