# Quickstart

> Make your first API call, create a project and follow a request to the end.

Type: Get started. Updated 2 December 2026. Page: https://www.colossium.cloud/docs/quickstart

## Before you start

You need an organisation on Colossium, and to be an **owner or administrator** of it, because only they can create tokens. You need `curl`, and `jq` if you want tidy output.

> **Security.** Treat the token like a password. Put it in an environment variable, not in a file you will commit, not in a message and never in a URL.

## Five steps

#### Step 1: Create a token

1. Sign in to the console at `https://app.colossium.cloud` and open **API access**.
2. Choose **Create token**. Name it after what will use it, for example `quickstart`.
3. Choose the **Developer** permission set. It can read, create projects and make requests, and cannot delete anything.
4. Leave the expiry at 90 days. Choose **Create token**.
5. Copy the token now. **It is shown once.** Colossium keeps only a hash, so it cannot show it again.

```bash
# Keep it out of your shell history and your repository.
read -rs COLOSSIUM_API_TOKEN && export COLOSSIUM_API_TOKEN
export COLOSSIUM_API=https://api.colossium.cloud/v1
```

#### Step 2: Check the token

`/token/verify` says what the token is and what it can do right now. It is the best first call, and a good health check.

```bash
curl -sS "$COLOSSIUM_API/token/verify" -H "Authorization: Bearer $COLOSSIUM_API_TOKEN" | jq
```

You should see `"status": "active"` and a list of `scopes`. If you see an error instead, [Errors](/docs/errors) explains each one.

#### Step 3: Create a project

Projects group your resources. Pick a slug: lower-case letters, numbers and single hyphens.

```bash
curl -sS -X POST "$COLOSSIUM_API/projects" \
  -H "Authorization: Bearer $COLOSSIUM_API_TOKEN" -H "Content-Type: application/json" \
  -d '{"name":"Quickstart","slug":"quickstart"}' | tee project.json | jq
export PROJECT_ID=$(jq -r .id project.json)
```

#### Step 4: Ask for something

Make a request for a storage bucket. Every request needs an `Idempotency-Key`, which makes it safe to send twice. [Why](/docs/idempotency).

```bash
curl -sS -X POST "$COLOSSIUM_API/requests" \
  -H "Authorization: Bearer $COLOSSIUM_API_TOKEN" -H "Content-Type: application/json" \
  -H "Idempotency-Key: quickstart-bucket-1" \
  -d "{\"kind\":\"storage.create\",\"project_id\":\"$PROJECT_ID\",\"input\":{\"name\":\"quickstart-assets\",\"region\":\"eu\"}}" \
  | tee request.json | jq
export REQUEST_ID=$(jq -r .id request.json)
```

The answer has `"state": "awaiting_approval"`. Colossium reviews every request before it runs, so this is where it waits.

#### Step 5: Follow it, then clean up

```bash
# Look at it again, with its progress events:
curl -sS "$COLOSSIUM_API/requests/$REQUEST_ID" -H "Authorization: Bearer $COLOSSIUM_API_TOKEN" | jq '{state, events}'

# Changed your mind? Withdraw it while it has not started:
curl -sS -X POST "$COLOSSIUM_API/requests/$REQUEST_ID/cancel" -H "Authorization: Bearer $COLOSSIUM_API_TOKEN" | jq .state
```

A request moves through states until it ends as `succeeded`, `failed` or `cancelled`. [Requests and approvals](/docs/requests) explains each state and how long to expect.

## Where next

- Make this robust with the client from [Build a provisioning tool](/docs/build-a-tool): retries, idempotency and polling are done for you.
- Understand what a token can and cannot do: [Authentication and tokens](/docs/authentication).
- Revoke the quickstart token in the console when you are finished with it.
