Developer
News and Updates
Get Support
Sign in
Get Support
Sign in
DOCUMENTATION
Cloud
Data Center
Resources
Sign in
Sign in
DOCUMENTATION
Cloud
Data Center
Resources
Sign in
Last updated Nov 24, 2026

Get started with the meters API

If your billing cycle started before November 5, you may see only partial account-level usage data through the APIs for the current cycle, depending on your monthly billing reset date. This is a one-time limitation in API visibility — your data is still there, and the APIs will show complete data for your next monthly billing cycle. Your complete usage data is available through CSV export or data share (for Cloud Enterprise customers).

The meters API lets organization admins check usage and allowances for meters such as Rovo credits and manage monthly account limits where supported.

This get started guide helps you prepare for using the meters API and the tutorials for meters:

  • It helps you locate the tools, credentials and IDs you’ll need (you can skip sections if you already have what you need).
  • It provides context, tips and a simple API test for anyone who needs it before using the tutorials.

The tutorials use Rovo credits as the example. For background on meters and usage, see What is Platform usage?

For full technical details of available operations, see the meters API.

Prepare your tools and credentials

RequirementDetails
Organization admin accessYou must be an organization admin in Atlassian Administration.
An API toolUse an API client, such as Postman, or curl in a terminal.
An organization API keyUse an existing key without scopes, or create one using the instructions on this page.
Your organization IDCopy it when creating the key, or find it in your browser’s address bar when you’re in Atlassian Administration.
Account IDs, where requiredFind account IDs in Atlassian Administration for use in these tutorials to check account usage or set and delete account limits.
Your organization’s meter IDFinding an organization’s meter ID is covered in Find the Rovo credits meter ID. You don’t need it to complete this setup, but you’ll need it later on.

Choose an API tool

Use a tool you’re comfortable with and that your organization permits.

  • An API client, such as Postman, lets you enter the request method, URL, headers, and body in separate fields.
  • curl lets you send requests from a terminal using the commands provided in the tutorials.

The command-line examples use curl and are written for macOS, Linux, and Git Bash. If you use another terminal, adjust the commands to suit your shell.

You can use either approach throughout the tutorials. Postman also supports importing curl commands, so you don’t need to enter each field manually.

Get an organization API key

If you already have an organization API key without scopes, you can use it for these tutorials. Otherwise, follow the steps below to create one.

A personal API token is a different credential and cannot replace the organization API key in these requests.

An API key is a secret credential. Keep it out of source code, AI chats, version control, and screenshots.

To create an API key and get the organization ID:

  1. Go to Atlassian Administration. Select your organization if you have more than one.
  2. Select Organization settings, then API keys.
  3. Select Create API key.
  4. Select API key without scopes.
  5. Enter a name that you’ll remember to identify the API key.
  6. If you’d like to change the expiration date from a week’s time, pick a new date value under Expires on. You can’t select a date more than one year away.
  7. Select Create to create the API key.
  8. Select the copy button next to Organization ID to copy the value and paste it somewhere handy to access, ready for use in your API requests later.
  9. Select the copy button next to API key to copy the value. Make sure you store the API key in a safe place. You won’t be able to view the API key contents in Atlassian Administration again.
  10. Select Done. The key will appear in your list of API keys.

For more information, see Manage an organization with the admin APIs.

Find your organization ID

If you’ve just created an API key, you probably already have your organization ID saved.

If you don’t have your organization ID already, you can find it in the browser address when viewing your organization in Atlassian Administration. It is the value immediately after /o/ and ending right before the next slash (/):

https://admin.atlassian.com/o/{orgId}/...

Copy only the organization ID, without the surrounding slashes or the rest of the address. Make sure this is the ID of the organization that contains your API key.

Find account IDs

Follow the instructions in this section for the type of account you’re checking. You don’t need account IDs to find a meter or check your organization’s total usage.

Find a user’s account ID

  1. Go to Atlassian Administration. Select your organization if you have more than one.
  2. Select Directory, then Users.
  3. Find the user and open their profile.
  4. Copy the account ID from the browser address. It is the value immediately after /users/ and ending right before the next slash (/).

To get many user account IDs, you can export your user list and use the User ID column.

You can also use the Search for users in an organization API, and copy the accountId values from the results.

(Note that POST /admin/v2/orgs/{orgId}/directories/{directoryId}/users/search) requires {directoryId} in the path, but you can use - as {directoryId} — for example, (/admin/v2/orgs/{orgId}/directories/-/users/search) — to search across all directories you manage.

Use account IDs exactly as returned. Don’t substitute email addresses or display names.

Find a service account ID

  1. Go to Atlassian Administration. Select your organization if you have more than one.
  2. Select Directory, then Service accounts.
  3. Find the service account and open its profile.
  4. Copy the account ID from the browser address. It is the value immediately after /service-accounts/ and ending right before the next slash (/).

Find an agent’s account ID

By default, agents are attributed to a user, and their usage counts toward that user’s limit. For those agents, use the user account ID to view and set limits.

Usage limits for agents using their own account (beta)

You can set limits for agents that use their own account through a CSV upload or the REST API. This feature is in beta, and we’re still refining the experience.

Unlike standard user limits, agent-specific limits don’t notify owners or let agents request an increase. Organization admins need to monitor usage and help agents resume work if they reach a limit.

  1. Go to Atlassian Administration. Select your organization if you have more than one.
  2. Select AI and Rovo, then Agents.
  3. Select Export agents, then follow the prompts to export all or some agents.
  4. From the email you receive confirming the export, select the link to download the CSV file.
  5. Open the CSV file and look for any agent names you’re interested in.
  6. Locate the user id column for an agent. This column contains its account ID.

Test your API connection

If you’re new to using APIs, the steps below help you test your API connection. The tips at the end of this page might also help you if you run into any issues.

If you’re sure your API connection already works, you can skip these steps and continue to Find the Rovo credits meter ID.

Open your API tool

Open your API tool. If you don’t have one installed, you can use a simple terminal window with a command line interface.

  • macOS: Open Spotlight, search for Terminal, then open it.
  • Linux: Open Terminal from your applications menu.
  • Windows: Open Git Bash, if it’s installed. This example uses Bash syntax, so it won’t work unchanged in Command Prompt or PowerShell.

Prepare your command

The meters API uses the base URL https://api.atlassian.com/admin. The examples include the complete URL, so you don’t need to construct it yourself.

To verify your organization ID and API key first, copy the following read-only request and paste it into a local plain-text editor:

1
2
3
4
5
curl --include --request GET \
  --url "https://api.atlassian.com/admin/v1/orgs/{orgId}" \
  --header "Authorization: Bearer <api_key>" \
  --header "Accept: application/json"
  • Replace {orgId} with your organization ID, remembering to remove the braces. Example only: --url "https://api.atlassian.com/admin/v1/orgs/6f2c9a81-4d73-4b08-9e65-a1c7d30f825b" \
  • Replace <api_key> with your organization API key, remembering to remove the angled brackets. Remember, a personal API token can’t replace the organization API key. Example only: --header "Authorization: Bearer 8nR4xK2vM7qL9wT5yH3pB6cD" \
  • Keep the quotation marks, and leave a space between Bearer and your API key. Each backslash (\) must remain the last character on its line, with no spaces after it.

Run your command

When you’ve prepared your command with your own organization ID and API key, paste it into your API tool or your terminal and send the request.

The command sends a GET request to the API. The --include option displays the response headers, including the HTTP status, before the response body. For example:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{
  "data": {
    "attributes": {
      "name": "Prosperify"
    },
    "id": "6f2c9a81-4d73-4b08-9e65-a1c7d30f825b",
    "links": {
      "self": "/v1/orgs/6f2c9a81-4d73-4b08-9e65-a1c7d30f825b"
    },
    "relationships": {
      "domains": {
        "related": "https://api.atlassian.com/admin/v1/orgs/6f2c9a81-4d73-4b08-9e65-a1c7d30f825b/domains"
      },
      "users": {
        "related": "https://api.atlassian.com/admin/v1/orgs/6f2c9a81-4d73-4b08-9e65-a1c7d30f825b/users"
      }
    },
    "type": "orgs"
  }
}

Your command contains a secret API key and may be stored in your terminal’s command history. Don’t share it or include it in screenshots.

Check the response

A successful request returns 200 OK and a JSON response containing your organization’s details.

Response fieldWhat to check
data.idMatches the organization ID you used in the request.
data.attributes.nameIs the name of the organization you intended to query.

For technical details, see https://developer.atlassian.com/cloud/admin/organization/rest/api-group-orgs/#api-v1-orgs-orgid-get.

If the request didn’t work, check the following:

  • You replaced both placeholders, including their braces or angle brackets.
  • You used an organization API key, rather than a personal API token.
  • The key belongs to the organization in the URL and hasn’t expired or been revoked.
  • The Authorization header contains Bearer followed by the key.
  • You haven’t introduced spaces or line breaks within the URL or API key.

If you need help spotting formatting mistakes, you can share the command and error message with Rovo Chat. Remove your API key before sharing.

Tips if you’re new to APIs

Skip this section if you already use API tools. These tips will help you use the request examples in the tutorials:

Replace the whole placeholder

Replace values such as {orgId} and <api_key>, including their braces or angle brackets. Each tutorial explains which values you need.

Keep URLs free of spaces and line breaks

An extra space can change an ID and cause the request to fail.

Import curl examples into your API client

If your client supports importing curl commands, import the complete example and replace its placeholders.

If entering the request manually, copy the method, URL, and headers into their corresponding fields. Paste only the JSON from --data into the JSON body editor, without the surrounding single quotes.

From the command line, run the complete curl command

Each continuation backslash (\) must be the last character on its line, with no spaces after it. The tutorials already contain this for you.

Check the HTTP status separately from the JSON body

Find it in your client’s response summary, or add --include to your curl command. For batch updates, also check each account’s result in the JSON body.

Start your first tutorial

Start with Find the Rovo credits meter ID. You’ll use this meter ID in the other tutorials.

Rate this page: