---
title: "Make your first API call"
description: "Sign in to pkgplane, create an API key and call the API with it, in about five minutes."
---

> Documentation Index
> Fetch the complete documentation index at: https://pkgplane-docs.richaisolutions.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Make your first API call

By the end of this page you'll have an API key and you'll have used it to ask the pkgplane API who
you are.

You need a pkgplane account. If you have an invite email, open its link and choose a password
first. Invites expire after seven days.

1. **Sign in**

   Go to [pkgplane](https://pkgplane.richaisolutions.com/sign-in) and sign in with your email and
   password.
2. **Create an API key**

   Open **API keys** in the sidebar and select **Create key**. Name it `quickstart`, leave
   **Expires** at **Never**, and select **Create key**.

   The key appears once. Copy it before you close the dialog.
3. **Call the API**

   Put the key in an environment variable, then call `GET /api/me` with it:

   ```sh
   export PKGPLANE_API_KEY=pkp_...
   curl -H "Authorization: Bearer $PKGPLANE_API_KEY" https://pkgplane.richaisolutions.com/api/me
   ```

   The API answers with your account:

   ```json
   {
     "id": "UB1olG48oIPXWdC46MscgqS8A3dh4vgg",
     "name": "Ada Lovelace",
     "email": "ada@example.com",
     "createdAt": "2026-11-02T09:14:27.000Z"
   }
   ```

That key now works for any API call that accepts one. When you're done with it, [revoke
it](https://pkgplane-docs.richaisolutions.com/guides/revoke-an-api-key/).

## Next steps

- [Create an API key](https://pkgplane-docs.richaisolutions.com/guides/create-an-api-key/) for a script or CI job, with an expiry.
- [Add a passkey](https://pkgplane-docs.richaisolutions.com/guides/add-a-passkey/) so you can sign in without a password.
- Read [Accounts and access](https://pkgplane-docs.richaisolutions.com/concepts/accounts-and-access/) to see what a key can and can't do.

Source: https://pkgplane-docs.richaisolutions.com/quickstart/index.mdx
