> ## Documentation Index
> Fetch the complete documentation index at: https://docs.plugkit.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Quickstart

> From zero to your first published post.

## 1. Get an API key

Open the [test console](https://api.plugkit.co/dashboard.html) and create a key,
or call the API once you have one. Keys look like `sk_...` and are shown only
once — store them securely.

<Note>
  All requests go to `https://api.plugkit.co/v1` and require the header
  `Authorization: Bearer sk_...`.
</Note>

## 2. Make your first call

Check the key works by listing your profiles:

<CodeGroup>
  ```bash cURL theme={null}
  curl https://api.plugkit.co/v1/profiles \
    -H "Authorization: Bearer sk_your_key"
  ```

  ```ts TypeScript theme={null}
  const res = await fetch("https://api.plugkit.co/v1/profiles", {
    headers: { Authorization: "Bearer sk_your_key" },
  });
  const { profiles } = await res.json();
  ```

  ```python Python theme={null}
  import requests
  r = requests.get(
      "https://api.plugkit.co/v1/profiles",
      headers={"Authorization": "Bearer sk_your_key"},
  )
  print(r.json())
  ```
</CodeGroup>

## 3. Connect an account

Start the OAuth flow to link an Instagram business account:

```bash theme={null}
curl "https://api.plugkit.co/v1/connect/instagram?profileId=YOUR_PROFILE_ID" \
  -H "Authorization: Bearer sk_your_key"
```

You get back an `authUrl` — open it in a browser, approve, and the account is
created. Full walkthrough in [Connect Instagram](/guides/connect-instagram).

## 4. Publish

```bash theme={null}
curl -X POST https://api.plugkit.co/v1/posts \
  -H "Authorization: Bearer sk_your_key" \
  -H "Content-Type: application/json" \
  -d '{
    "profileId": "YOUR_PROFILE_ID",
    "content": "Hello from PlugKit 👋",
    "mediaUrls": ["https://example.com/photo.jpg"]
  }'
```

<Card title="Explore the full API" icon="code" href="/api-reference">
  Try every endpoint live in the API Reference playground.
</Card>
