Streamtime is multi-tenant: everything belongs to an organization, and users belong to organizations.

Organizations

An organization is a tenant: its fleets, workloads, settings, users and secrets are isolated from every other organization. Organization identifiers are short slugs (lowercase and dashes, ≤ 24 characters) and appear in every API path.

  1. In the sidebar, go to Organizations and select Create organization.
  2. Give it a Name and Identifier, then select Create.
  3. Open the organization and add users under Users.
curl -X POST "https://<streamtime-api-endpoint>/organizations/" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"identifier": "acme", "name": "Acme"}'

Invite a user into an organization:

curl -X POST "https://<streamtime-api-endpoint>/organizations/acme/members/invite/" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"email": "dev@acme.example"}'

Paths from the committed OpenAPI snapshot; bodies are schema-derived and not executed against a live deployment.

Not available for this language yet.

Not available for this language yet.

Not available for this language yet.

streamtime org list
streamtime org get <org>

MCP is scoped to one organization — the one in its URL — and reads its state; it does not create organizations.

Users and invites

Users sign in through the organization’s identity provider (see Identity Providers). An organization’s administrator invites users; an invite grants access to that organization only.

The API examples below share this setup:

export STREAMTIME_TOKEN=<your-access-token>
export API=https://api.example.com/organizations/<org>
import os
from streamtime_sdk.client import AuthenticatedClient

client = AuthenticatedClient(
    base_url="https://api.example.com",
    token=os.environ["STREAMTIME_TOKEN"],
)
ORG = "<org>"

Uses the generated client in streamtime-sdk/typescript/client.

import { client } from "./client/client.gen";

client.setConfig({
  baseUrl: "https://api.example.com",
  headers: { Authorization: `Bearer ${process.env.STREAMTIME_TOKEN}` },
});
const org = "<org>";
package main

import (
    "bytes"
    "crypto/rand"
    "encoding/hex"
    "encoding/json"
    "net/http"
    "os"
)

const api = "https://api.example.com/organizations/<org>"

// newKey returns a random idempotency key.
func newKey() string {
    b := make([]byte, 16)
    rand.Read(b)
    return hex.EncodeToString(b)
}

// call sends one request with the access token and a JSON body (or none).
// An optional idempotency key is sent as the Idempotency-Key header.
func call(method, path string, body any, idempotencyKey ...string) (*http.Response, error) {
    var buf bytes.Buffer
    if body != nil {
        if err := json.NewEncoder(&buf).Encode(body); err != nil {
            return nil, err
        }
    }
    req, err := http.NewRequest(method, api+path, &buf)
    if err != nil {
        return nil, err
    }
    req.Header.Set("Authorization", "Bearer "+os.Getenv("STREAMTIME_TOKEN"))
    req.Header.Set("Content-Type", "application/json")
    if len(idempotencyKey) > 0 {
        req.Header.Set("Idempotency-Key", idempotencyKey[0])
    }
    return http.DefaultClient.Do(req)
}

Invite a member

Inviting someone gives them access to this organization. It doesn’t create their account at your identity provider: set them up there first.

  1. Go to Settings → Team Members and invite a member.
  2. Enter their Email and Select Role: Administrator, Billing Administrator, Cluster Administrator, Infrastructure Administrator or Project Owner.
  3. With Streamtime identity as the sign-in, also set a Password; they sign in with this email and password.
  4. Save. Update Member Role changes a role later; removing a member ends their access to the organization.
curl -X POST "$API/members/invite/" \
  -H "Authorization: Bearer $STREAMTIME_TOKEN" -H "Content-Type: application/json" \
  -d '{"email": "developer@example.com", "role": "Cluster Administrator"}'

Read, change or remove a member at $API/members/<email>/ with GET, PATCH or DELETE. Send password in the invite only with Streamtime identity.

from streamtime_sdk.api.organizations import organizations_members_invite_create
from streamtime_sdk.models import OrganizationMemberInviteRequest

organizations_members_invite_create.sync(
    ORG,
    client=client,
    body=OrganizationMemberInviteRequest.from_dict(
        {"email": "developer@example.com", "role": "Cluster Administrator"}
    ),
)
import { organizationsMembersInviteCreate } from "./client";

await organizationsMembersInviteCreate({
  path: { org_identifier: org },
  body: { email: "developer@example.com", role: "Cluster Administrator" },
});
resp, err := call("POST", "/members/invite/", map[string]any{
    "email": "developer@example.com",
    "role":  "Cluster Administrator",
})
if err != nil {
    return err
}
defer resp.Body.Close()

Inviting isn’t available in the CLI yet. List members with:

streamtime org members --org <org>

Not available in MCP.

resource "streamtime_member" "developer" {
  email = "developer@example.com"
  role  = "Cluster Administrator"
}

Creating the resource invites the person. For a new person signing in with Streamtime identity, also set initial_password from a sensitive variable; it is used only for the invitation. Destroying the resource removes their membership, not their account at your identity provider.

terraform import streamtime_member.developer developer@example.com

See streamtime_member.

For API keys and OAuth clients, see API keys and OAuth clients.

Roles and super users

  • Super users (the SUPER_USER_EMAILS / fleetmanager.superUserEmails list) can create organizations and have complete administrator privileges everywhere. Typically just the deployment owner.
  • Organization administrators manage their organization: users, fleets, workloads and settings.
  • Members use what their organization gives them access to.

First steps after login

  1. Sign in to the root organization (your email must be in the super user list — see Installation).
  2. Create an organization for your team.
  3. Invite your teammates.
  4. Configure the organization: Configuration.