skipcheck

Java · Python · .NET · TypeScript

TM1 client

The IBM Planning Analytics (TM1) REST API, in four languages

Every endpoint of the TM1 REST API as a typed service: cubes, dimensions, cellsets, processes, security and the server itself. The same client in Java, Python, .NET and TypeScript, with the same services and methods, each named its language's way. Its model is generated from TM1's own metadata, so it covers what your server can do, and its documentation says where TM1 behaves in surprising ways.

Docs, in every languageSource on GitHub

v0.1.1The latest release. The install steps below use it, in every language.

  1. Have a TM1 server to talk to. To run one on your own computer, follow Run Planning Analytics on your own computer. You need your own licensed copy of TM1 Server.
  2. Add the client to your project.

    Needs Java 17 or later.

    Gradle (Kotlin)

    implementation("io.skipcheck:tm1-client:0.1.1")

    Maven

    <dependency>
      <groupId>io.skipcheck</groupId>
      <artifactId>tm1-client</artifactId>
      <version>0.1.1</version>
    </dependency>

    Needs Python 3.11 or later.

    Terminal

    pip install skipcheck-tm1==0.1.1

    Needs .NET 10.

    Terminal

    dotnet add package Skipcheck.Tm1.Client --version 0.1.1

    Needs Node 22 or later.

    Terminal

    npm install @skipcheck/tm1-client@0.1.1
  3. Say hello. This connects, prints the server's version and lists its cubes (a new server has none yet):

    public static void main(String[] args) {
        Tm1Client tm1 = Tm1Client.builder()
            .baseUrl("http://localhost:8010/api/v1/")
            .basicAuth("admin", "") // tm1-server's default login
            .build();
        // block() is fine in a main(); in an application, return the Mono instead
        hello(tm1).then(tm1.close()).block();
    }
    
    static Mono<Void> hello(Tm1Client tm1) {
        return tm1.session()
            .version()
            .doOnNext(version -> System.out.println("Hello from TM1 " + version))
            .thenMany(tm1.cubes().modelCubes(ODataQuery.none().select(Cube.NAME)))
            .doOnNext(cube -> System.out.println("  " + cube.name()))
            .then();
    }

    Output

    Hello from TM1 11.8.03500.6
    def main() -> None:
        # tm1-server's default login; leaving the block closes the session
        with Tm1Client.builder().base_url("http://localhost:8010/api/v1/").basic_auth("admin", "").build() as tm1:
            hello(tm1)
    
    
    def hello(tm1: Tm1Client) -> None:
        print(f"Hello from TM1 {tm1.session.version()}")
        for cube in tm1.cubes.model_cubes(ODataQuery.none().select(Cube.NAME)):
            print(f"  {cube.name}")
    
    
    if __name__ == "__main__":
        main()

    Output

    Hello from TM1 11.8.03500.6
    public static async Task Main()
    {
        await using var tm1 = Tm1Client
            .Builder()
            .BaseUrl("http://localhost:8010/api/v1/")
            .BasicAuth("admin", "") // tm1-server's default login
            .Build();
        await Hello(tm1);
    }
    
    public static async Task Hello(Tm1Client tm1)
    {
        Console.WriteLine($"Hello from TM1 {await tm1.Session.VersionAsync()}");
        await foreach (var cube in tm1.Cubes.ModelCubesAsync(ODataQuery.None().Select(Cube.Fields.Name)))
        {
            Console.WriteLine($"  {cube.Name}");
        }
    }

    Output

    Hello from TM1 11.8.03500.6
    export async function main(): Promise<void> {
      const tm1 = Tm1Client.builder()
        .baseUrl("http://localhost:8010/api/v1/")
        .basicAuth("admin", "") // tm1-server's default login
        .build();
      try {
        await hello(tm1);
      } finally {
        await tm1.close();
      }
    }
    
    export async function hello(tm1: Tm1Client): Promise<void> {
      console.log(`Hello from TM1 ${await tm1.session.version()}`);
      for await (const cube of tm1.cubes.modelCubes(ODataQuery.none().select(Cube.Fields.Name))) {
        console.log(`  ${cube.Name}`);
      }
    }

    Output

    Hello from TM1 11.8.03500.6

Next: the client, with a service for each area of TM1, such as cubes and cellsets for reading data; and the session, for logging in with CAM, sandboxes, and sending a request no service covers. Every page shows its examples in each language.

New to it? Take it step by step: Connect and list your cubes.

Step by step, with the code in your language and what it printed:

Hand this prompt to a coding agent to build a first prototype. It names the package, how to install it, the docs and the walkthroughs, and asks you for anything it can't work out.

Prompt Show the full promptHide the prompt
Build me a first prototype in Java that works with IBM Planning Analytics (TM1) through its REST API, using the Skipcheck TM1 client: the package io.skipcheck:tm1-client, version 0.1.1.

Before you write code, ask me what the prototype should do, unless I've said already. Suggest a small start, such as connecting, listing the cubes and reading a few cells of a view. Then ask me for my TM1 server's REST address (it ends in /api/v1/) and login. Keep the password out of the code: read it from an environment variable.

1. Set up a Java project. The client needs Java 17 or later.
2. Add the client:

Gradle (Kotlin):

```kotlin
implementation("io.skipcheck:tm1-client:0.1.1")
```

Maven:

```xml
<dependency>
  <groupId>io.skipcheck</groupId>
  <artifactId>tm1-client</artifactId>
  <version>0.1.1</version>
</dependency>
```

3. Write the code. These walkthroughs do common tasks step by step, with the code in every language and what it printed against a real TM1:

- Connect and list your cubes: https://skipcheck.io/tm1-client/walkthroughs/connect/
- Read and write cells: https://skipcheck.io/tm1-client/walkthroughs/cells/
- Run a process and read its result: https://skipcheck.io/tm1-client/walkthroughs/processes/

4. Look up each type and method you use in the Java docs: https://skipcheck.io/tm1-client/docs/java/. They say where TM1 behaves in surprising ways, on the method it affects ("TM1 (11.8) ..."), so read them before working around an error. The landing page, the walkthroughs and every type's overview are also in one file for agents: https://skipcheck.io/llms-full.txt
5. Run the prototype against my server, and show me what it printed.

If I don't have a TM1 server, one can run on this computer in Docker, from my own licensed TM1 Server download. These instructions set it up: tm1-setup for one server, pa-setup for more, or for TM1 Web, Workspace or Cognos security:

- pa-setup: https://raw.githubusercontent.com/ajmyers/skipcheck-tm1/v0.1.1/agent-plugin/skills/pa-setup/SKILL.md
  Set up a local IBM Planning Analytics environment in Docker with pa-setup and pa-environment.yaml, in any combination of TM1 servers (with a shared Admin Server), TM1 Web, Planning Analytics Workspace (PAW), and Cognos Analytics security (CAM) with test users through LDAP and OpenID Connect (Keycloak).
- tm1-setup: https://raw.githubusercontent.com/ajmyers/skipcheck-tm1/v0.1.1/agent-plugin/skills/tm1-setup/SKILL.md
  Set up and start one local IBM Planning Analytics (TM1) server in Docker with tm1-server's setup script, check that it's healthy, and troubleshoot it.

Open in Claude DesktopOpen in Claude Code

Either link fills in the prompt, and you press Enter to send it. "Open in Claude Code" is for the terminal app, and works once you've run claude on this computer. Another agent, such as Codex, Cursor or Gemini CLI? Copy the prompt.

Prompt Show the full promptHide the prompt
Build me a first prototype in Python that works with IBM Planning Analytics (TM1) through its REST API, using the Skipcheck TM1 client: the package skipcheck-tm1, version 0.1.1.

Before you write code, ask me what the prototype should do, unless I've said already. Suggest a small start, such as connecting, listing the cubes and reading a few cells of a view. Then ask me for my TM1 server's REST address (it ends in /api/v1/) and login. Keep the password out of the code: read it from an environment variable.

1. Set up a Python project. The client needs Python 3.11 or later.
2. Add the client:

Terminal:

```sh
pip install skipcheck-tm1==0.1.1
```

3. Write the code. These walkthroughs do common tasks step by step, with the code in every language and what it printed against a real TM1:

- Connect and list your cubes: https://skipcheck.io/tm1-client/walkthroughs/connect/
- Read and write cells: https://skipcheck.io/tm1-client/walkthroughs/cells/
- Run a process and read its result: https://skipcheck.io/tm1-client/walkthroughs/processes/

4. Look up each type and method you use in the Python docs: https://skipcheck.io/tm1-client/docs/python/. They say where TM1 behaves in surprising ways, on the method it affects ("TM1 (11.8) ..."), so read them before working around an error. The landing page, the walkthroughs and every type's overview are also in one file for agents: https://skipcheck.io/llms-full.txt
5. Run the prototype against my server, and show me what it printed.

If I don't have a TM1 server, one can run on this computer in Docker, from my own licensed TM1 Server download. These instructions set it up: tm1-setup for one server, pa-setup for more, or for TM1 Web, Workspace or Cognos security:

- pa-setup: https://raw.githubusercontent.com/ajmyers/skipcheck-tm1/v0.1.1/agent-plugin/skills/pa-setup/SKILL.md
  Set up a local IBM Planning Analytics environment in Docker with pa-setup and pa-environment.yaml, in any combination of TM1 servers (with a shared Admin Server), TM1 Web, Planning Analytics Workspace (PAW), and Cognos Analytics security (CAM) with test users through LDAP and OpenID Connect (Keycloak).
- tm1-setup: https://raw.githubusercontent.com/ajmyers/skipcheck-tm1/v0.1.1/agent-plugin/skills/tm1-setup/SKILL.md
  Set up and start one local IBM Planning Analytics (TM1) server in Docker with tm1-server's setup script, check that it's healthy, and troubleshoot it.

Open in Claude DesktopOpen in Claude Code

Either link fills in the prompt, and you press Enter to send it. "Open in Claude Code" is for the terminal app, and works once you've run claude on this computer. Another agent, such as Codex, Cursor or Gemini CLI? Copy the prompt.

Prompt Show the full promptHide the prompt
Build me a first prototype in .NET that works with IBM Planning Analytics (TM1) through its REST API, using the Skipcheck TM1 client: the package Skipcheck.Tm1.Client, version 0.1.1.

Before you write code, ask me what the prototype should do, unless I've said already. Suggest a small start, such as connecting, listing the cubes and reading a few cells of a view. Then ask me for my TM1 server's REST address (it ends in /api/v1/) and login. Keep the password out of the code: read it from an environment variable.

1. Set up a .NET project. The client needs .NET 10.
2. Add the client:

Terminal:

```sh
dotnet add package Skipcheck.Tm1.Client --version 0.1.1
```

3. Write the code. These walkthroughs do common tasks step by step, with the code in every language and what it printed against a real TM1:

- Connect and list your cubes: https://skipcheck.io/tm1-client/walkthroughs/connect/
- Read and write cells: https://skipcheck.io/tm1-client/walkthroughs/cells/
- Run a process and read its result: https://skipcheck.io/tm1-client/walkthroughs/processes/

4. Look up each type and method you use in the .NET docs: https://skipcheck.io/tm1-client/docs/dotnet/. They say where TM1 behaves in surprising ways, on the method it affects ("TM1 (11.8) ..."), so read them before working around an error. The landing page, the walkthroughs and every type's overview are also in one file for agents: https://skipcheck.io/llms-full.txt
5. Run the prototype against my server, and show me what it printed.

If I don't have a TM1 server, one can run on this computer in Docker, from my own licensed TM1 Server download. These instructions set it up: tm1-setup for one server, pa-setup for more, or for TM1 Web, Workspace or Cognos security:

- pa-setup: https://raw.githubusercontent.com/ajmyers/skipcheck-tm1/v0.1.1/agent-plugin/skills/pa-setup/SKILL.md
  Set up a local IBM Planning Analytics environment in Docker with pa-setup and pa-environment.yaml, in any combination of TM1 servers (with a shared Admin Server), TM1 Web, Planning Analytics Workspace (PAW), and Cognos Analytics security (CAM) with test users through LDAP and OpenID Connect (Keycloak).
- tm1-setup: https://raw.githubusercontent.com/ajmyers/skipcheck-tm1/v0.1.1/agent-plugin/skills/tm1-setup/SKILL.md
  Set up and start one local IBM Planning Analytics (TM1) server in Docker with tm1-server's setup script, check that it's healthy, and troubleshoot it.

Open in Claude DesktopOpen in Claude Code

Either link fills in the prompt, and you press Enter to send it. "Open in Claude Code" is for the terminal app, and works once you've run claude on this computer. Another agent, such as Codex, Cursor or Gemini CLI? Copy the prompt.

Prompt Show the full promptHide the prompt
Build me a first prototype in TypeScript that works with IBM Planning Analytics (TM1) through its REST API, using the Skipcheck TM1 client: the package @skipcheck/tm1-client, version 0.1.1.

Before you write code, ask me what the prototype should do, unless I've said already. Suggest a small start, such as connecting, listing the cubes and reading a few cells of a view. Then ask me for my TM1 server's REST address (it ends in /api/v1/) and login. Keep the password out of the code: read it from an environment variable.

1. Set up a TypeScript project. The client needs Node 22 or later.
2. Add the client:

Terminal:

```sh
npm install @skipcheck/tm1-client@0.1.1
```

3. Write the code. These walkthroughs do common tasks step by step, with the code in every language and what it printed against a real TM1:

- Connect and list your cubes: https://skipcheck.io/tm1-client/walkthroughs/connect/
- Read and write cells: https://skipcheck.io/tm1-client/walkthroughs/cells/
- Run a process and read its result: https://skipcheck.io/tm1-client/walkthroughs/processes/

4. Look up each type and method you use in the TypeScript docs: https://skipcheck.io/tm1-client/docs/typescript/. They say where TM1 behaves in surprising ways, on the method it affects ("TM1 (11.8) ..."), so read them before working around an error. The landing page, the walkthroughs and every type's overview are also in one file for agents: https://skipcheck.io/llms-full.txt
5. Run the prototype against my server, and show me what it printed.

If I don't have a TM1 server, one can run on this computer in Docker, from my own licensed TM1 Server download. These instructions set it up: tm1-setup for one server, pa-setup for more, or for TM1 Web, Workspace or Cognos security:

- pa-setup: https://raw.githubusercontent.com/ajmyers/skipcheck-tm1/v0.1.1/agent-plugin/skills/pa-setup/SKILL.md
  Set up a local IBM Planning Analytics environment in Docker with pa-setup and pa-environment.yaml, in any combination of TM1 servers (with a shared Admin Server), TM1 Web, Planning Analytics Workspace (PAW), and Cognos Analytics security (CAM) with test users through LDAP and OpenID Connect (Keycloak).
- tm1-setup: https://raw.githubusercontent.com/ajmyers/skipcheck-tm1/v0.1.1/agent-plugin/skills/tm1-setup/SKILL.md
  Set up and start one local IBM Planning Analytics (TM1) server in Docker with tm1-server's setup script, check that it's healthy, and troubleshoot it.

Open in Claude DesktopOpen in Claude Code

Either link fills in the prompt, and you press Enter to send it. "Open in Claude Code" is for the terminal app, and works once you've run claude on this computer. Another agent, such as Codex, Cursor or Gemini CLI? Copy the prompt.

  • A service for each area of TM1: dimensions, hierarchies, elements and subsets; cubes, views and rules; cellsets, cell writes, sandboxes and drillthrough; processes, chores and debugging; users, groups, sessions and threads; server configuration and logs.
  • Each language's own style: reactive in Java, on Project Reactor; sync and asyncio in Python; async in .NET and TypeScript. Large results stream instead of loading at once.
  • Typed: a model generated from TM1's $metadata, with typed queries and filters.
  • TM1's surprises, documented: where TM1 ignores, refuses or reinterprets a request, the method's documentation says so, and a test against a real server pins it.
  • Logins: TM1 security and Cognos (CAM), with session pooling and impersonation.