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:
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.
| Requirement | Details |
|---|---|
| Organization admin access | You must be an organization admin in Atlassian Administration. |
| An API tool | Use an API client, such as Postman, or curl in a terminal. |
| An organization API key | Use an existing key without scopes, or create one using the instructions on this page. |
| Your organization ID | Copy it when creating the key, or find it in your browser’s address bar when you’re in Atlassian Administration. |
| Account IDs, where required | Find account IDs in Atlassian Administration for use in these tutorials to check account usage or set and delete account limits. |
| Your organization’s meter ID | Finding 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. |
Use a tool you’re comfortable with and that your organization permits.
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.
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:
For more information, see Manage an organization with the admin APIs.
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.
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.
/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.
/service-accounts/ and ending right before the next slash (/).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.
user id column for an agent. This column contains its account ID.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. If you don’t have one installed, you can use a simple terminal window with a command line interface.
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 5curl --include --request GET \ --url "https://api.atlassian.com/admin/v1/orgs/{orgId}" \ --header "Authorization: Bearer <api_key>" \ --header "Accept: application/json"
{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" \<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" \Bearer and your API key. Each backslash (\) must remain the last character on its line, with no spaces after it.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.
A successful request returns 200 OK and a JSON response containing your organization’s details.
| Response field | What to check |
|---|---|
data.id | Matches the organization ID you used in the request. |
data.attributes.name | Is 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:
Authorization header contains Bearer followed by the 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.
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 with Find the Rovo credits meter ID. You’ll use this meter ID in the other tutorials.
Rate this page: