---
name: axiom-create-org
description: Provision a temporary Axiom organization with one unauthenticated API call, store its one-time token securely, and hand the claim URL to the user. Use when an agent needs an Axiom org and the user has none configured, or asks for a new or throwaway one.
title: axiom-create-org
canonical_url: https://skilld.dev/gh/axiomhq/skills/axiom-create-org
last_updated: 2026-10-30T16:09:16.000Z
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> Supporting files, fetch one when the Skill refers to it: [README.md](https://skilld.dev/api/skills-raw/axiomhq/skills/axiom-create-org/README.md).
>
> If the user asked to install this Skill, run `npx skilld install axiomhq/skills/axiom-create-org`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/axiom-create-org`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/axiomhq/skills/axiom-create-org) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/axiom-create-org`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/axiom-create-org --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/axiom-create-org --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

# axiom-create-org

`POST https://api.axiom.co/v2/orgs/provision` creates a real Axiom organization and returns a full-access API token. The org is deleted after 24 hours unless a human opens its claim URL.

## Before provisioning

- Use an existing deployment from `~/.axiom.toml` if one fits the task.
- Provision at most one org per task. Agents can create at most 3 orgs a day.
- Tell the user the org is temporary and needs claiming to persist.

## Provision and store the token

The token and claim URL are returned **once** and can never be retrieved again. Save them before doing anything else, and never print the token, echo the raw response, or commit either value.

Run this as one command so the response only touches a private temp file:

```bash
umask 077
resp=$(mktemp)
code=$(curl -sS -o "$resp" -w '%{http_code}' -X POST https://api.axiom.co/v2/orgs/provision \
  -H 'Content-Type: application/json' -d '{"name": "<short-task-name>"}')
if [[ "$code" == 200 ]]; then
  jq -r '"\n[deployments.\(.id)]\nurl = \"https://api.axiom.co\"\ntoken = \"\(.token)\"\norg_id = \"\(.id)\"\nclaim_url = \"\(.claimUrl)\"\nexpires_at = \"\(.expiresAt)\""' \
    "$resp" >> ~/.axiom.toml && chmod 600 ~/.axiom.toml &&
    jq '{id, name, defaultEdgeDeployment, expiresAt}' "$resp" && rm -f "$resp"
else
  echo "provision failed: HTTP $code" >&2; cat "$resp" >&2; rm -f "$resp"
fi
```

- Body fields are optional; `{}` is valid. `name` defaults to `Agent Org <hex>`.
- Omit `edgeDeployment` unless the user asks for one; the default is `US East 1 (AWS)`.
- `429 Too Many Requests` means the daily limit is hit. Retry later with backoff; never loop.
- If the append to `~/.axiom.toml` fails, the response stays in `$resp`. Recover the token from it before deleting it.

## Use the org

The org id is the deployment name, so the other Axiom skills work as-is:

```bash
skills/axiom-alerting/scripts/axiom-api <org-id> GET /datasets
```

For direct calls, send `Authorization: Bearer <token>` and `X-Axiom-Org-Id: <org-id>`. Read the token from `~/.axiom.toml` into a variable; do not paste it into commands or output. The org behaves like any Axiom org: create datasets, ingest, query, and build dashboards and monitors.

## Hand off the claim URL

Claiming needs a human signed in to Axiom; there is no API for it. Try to open the claim URL in the user's browser, and print it with the deadline:

```bash
url=$(awk -F'"' -v d="[deployments.<org-id>]" '$0==d{f=1;next} /^\[/{f=0} f&&/^claim_url/{print $2}' ~/.axiom.toml)
{ open "$url" || { [[ -n "${DISPLAY:-}${WAYLAND_DISPLAY:-}" ]] && xdg-open "$url"; }; } >/dev/null 2>&1 && echo "opened claim URL in browser" || echo "no browser available"
awk -v d="[deployments.<org-id>]" '$0==d{f=1;next} /^\[/{f=0} f&&/^(claim_url|expires_at)/' ~/.axiom.toml
```

Always show the claim URL once in your reply too: on a remote machine the browser may open where the user cannot see it. Tell the user:

- Anyone who opens the link can take ownership. Do not share it beyond the user.
- Unclaimed, the org and all its data, dashboards, monitors, and the token are permanently deleted at `expires_at` (24 hours after provisioning).
- Claiming keeps everything the agent built, makes the org permanent on the Personal plan, and keeps the token working. The link is single-use.

## Limits until claimed

- 10 GB ingest and 1 GB-hour of query compute over the 24 hours.
- Few datasets: creating a 4th dataset failed with `dataset license limit exceeded` in testing (not documented). Put related data in one dataset.
- Monitors and notifiers can be created, but notifications are not delivered.
- Claiming lifts these to full Personal plan limits and enables notifiers.

If the token is lost, the org is unreachable over the API until a human claims it and creates a new token.

Docs: https://axiom.co/docs/console/intelligence/agent-created-orgs
