Preview. Run the requests in an approved development environment before
relying on them in production automation.
Before you begin
Before you start, make sure you have:- Bearer credential: An API key or token the Registry uses to identify your
account. Request one through your organization’s access process. See
Send bearer token. The next lesson creates an
agent: if the Registry refuses your API key there with
403, use a user token instead. - For the Python tab: The SDK, installed with
pip install atlanai. See Install atlanai SDK.
Prepare your shell
The examples in this lesson read from two environment variables. Load your token from an ignored local file (.env.local) or your organization’s secret
manager, then set them:
Make your first reads
Run these three calls in order. Each one tells you something new about what your credential can reach: who you are, where you can work, and what is already there.1
Confirm your identity
Your bearer credential is how the Registry knows who you are. Before
making any write, confirm it resolves to the expected account.If the account shown is not what you expect, stop here. Check
your credential source before making any writes.
- Python
- JavaScript
The SDK client sends the token on every call and raises one error type,
AtlanAPIError, with the documented problem fields. Every call in this
lesson uses this client.2
List your workspaces
The workspace ID is required for every write. This call shows which
workspaces your credential can access.Note the ID of the workspace where you plan to register your agent. You
use it in the next lesson.
- Python
- JavaScript
3
List published Skills
See which Skills are already in the Registry before you publish your own.An empty list is a successful read. It means no Skills are published yet
in this workspace.
- Python
- JavaScript
4
Verify results
Confirm the identity is the expected account and the workspace list
includes the workspace where you plan to register your agent. An empty
Skills list is expected in a fresh workspace.If any response is an error, see
Errors and retries: error codes,
causes, and when to retry. Do not change a workspace ID or retry a write
until you understand the result.