> This page is part of EVVA for Developers (https://developers.evvahub.com), the documentation of the EVVA Partner API. The API is in developer preview and the SDK packages are not yet published: do not suggest installing them. Index: https://developers.evvahub.com/llms.txt

# Quickstart

This guide takes you from nothing to a working call against the Partner API. You need a Partner Hub account as the **agency owner** — only the agency owner can create applications, credentials and grants. Team leads can see them.

> **Tip**
>
> Start with a **sandbox** application. It is active at once, works only with synthetic creators and fans, and nothing it does reaches a real person or moves money. See [Sandbox](/sandbox).

## 1. Create an application

In the [Partner Hub](https://partner.evvahub.com), open **Integrations → Applications** and press **New application**. The wizard has four steps:

| Step               | What to enter                                                                                                                                                                                      |
| ------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Details**        | A name (shown in the Hub and in your agency's audit trail) and an optional description.                                                                                                            |
| **Environment**    | **Sandbox** — synthetic creators and buyers only, active at once. **Live** — your real creators; the application waits for EVVA's review before it can obtain tokens.                              |
| **Allowed scopes** | The most this application may ever be granted. Choose the least it needs — for a first integration that reads and answers messages: `read:messages`, `write:messages`, `write:messages:automated`. |
| **Review**         | Check everything, then press **Create application**.                                                                                                                                               |

On a live application that has passed review you can later remove allowed scopes, but not add them. Scopes are explained in [Scopes and grants](/authentication/scopes).

## 2. Save the credentials

When the application is created, a dialog shows the **client ID** and the **client secret**.

> **Warning**
>
> The client secret is shown **once**. Copy it into your server's secret manager before closing the dialog. EVVA cannot show it again; if you lose it, rotate the secret on the application's **Credentials** tab.

The client ID starts with `evpc_test_` for a sandbox application and `evpc_live_` for a live one. You can copy it again from the **Credentials** tab at any time.

Prefer not to hold a shared secret? Register a public key under **Credentials → Public keys (private_key_jwt) → Add a public key**, and sign a short JWT for each token request instead. See [Authenticating with a private key](/authentication/tokens#authenticating-with-a-private-key).

## 3. Grant creators to the application

A new application can act for no one. Grant it the creators it should work for:

1. Open the application's **Permissions & creators** tab and use **Grant access**.
2. Under **Who**, choose **One creator** or **A creator group**, then pick them.
3. Tick the scopes this creator, or group, should get, and press **Grant**.

You can grant only scopes the application is allowed **and** the creator's link to your agency covers — that link is the creator's consent, given when they connected to your agency. The tab's **Creators this application can act for now** shows the result. For a sandbox application, grant your agency's synthetic sandbox creators.

## 4. Request an access token

Exchange the credentials for a token at the token endpoint. Tokens are opaque, last 15 minutes, and there is no refresh token — request a new one when it expires. The SDKs do all of this for you.

**`cURL`**

```bash title="cURL"
export EVVA_CLIENT_ID=evpc_test_…        # from step 2
export EVVA_CLIENT_SECRET=…              # from your secret manager

curl -sS https://api.evvahub.com/partner/v1/oauth/token \
  -u "$EVVA_CLIENT_ID:$EVVA_CLIENT_SECRET" \
  -d grant_type=client_credentials
```

**`TypeScript`**

```typescript title="TypeScript"
import { EvvaPartnerClient } from '@evvahub/partner-sdk';

const evva = new EvvaPartnerClient({
  baseUrl: 'https://api.evvahub.com',
  credentials: {
    method: 'client_secret_basic',
    clientId: process.env.EVVA_CLIENT_ID!,
    clientSecret: process.env.EVVA_CLIENT_SECRET!,
  },
});
```

**`Python`**

```python title="Python"
import os
from evva_partner import ClientSecretBasic, EvvaPartnerClient

client = EvvaPartnerClient(
    base_url="https://api.evvahub.com",
    auth=ClientSecretBasic(os.environ["EVVA_CLIENT_ID"], os.environ["EVVA_CLIENT_SECRET"]),
)
```

**`Go`**

```go title="Go"
// Reads EVVA_BASE_URL, EVVA_CLIENT_ID and EVVA_CLIENT_SECRET from the environment.
cfg, err := evvapartner.ConfigFromEnv()
if err != nil {
	log.Fatal(err)
}
client, err := evvapartner.NewClient(cfg) // safe to share: create one per application
if err != nil {
	log.Fatal(err)
}
```

**`PHP`**

```php title="PHP"
use Evva\Partner\Auth\ClientCredentials;
use Evva\Partner\PartnerClient;

$evva = new PartnerClient(
    baseUrl: 'https://api.evvahub.com',
    credentials: ClientCredentials::secretBasic(getenv('EVVA_CLIENT_ID'), getenv('EVVA_CLIENT_SECRET')),
);
```

**`200 OK`**

```json title="200 OK"
{
  "access_token": "evpa_test_…",
  "token_type": "Bearer",
  "expires_in": 900,
  "scope": "read:messages write:messages write:messages:automated"
}
```

If the request is refused, the [error table](/authentication/tokens#errors) explains each code. A live application that is still waiting for review gets `unauthorized_client`.

## 5. Make your first calls

First ask who you are, then which creators you can act for.

**`cURL`**

```bash title="cURL"
TOKEN=evpa_test_…   # access_token from step 4

curl -sS https://api.evvahub.com/partner/v1/app/me \
  -H "Authorization: Bearer $TOKEN"

curl -sS https://api.evvahub.com/partner/v1/accounts \
  -H "Authorization: Bearer $TOKEN"
```

**`TypeScript`**

```typescript title="TypeScript"
const me = await evva.app.me();
console.log(me.application.name, me.environment, me.scopes);

const { items } = await evva.accounts.list();
for (const account of items) {
  console.log(account.creatorId, account.handle, account.scopes);
}
```

**`Python`**

```python title="Python"
me = client.app.me()
print(me["application"]["name"], me["environment"], me["scopes"])

for account in client.accounts.list():
    print(account["creatorId"], account.get("handle"), account.get("scopes"))
```

**`Go`**

```go title="Go"
app, err := client.App.Me(ctx)
if err != nil {
	log.Fatal(err)
}
fmt.Println(app.Name, app.Environment, app.Scopes)

for account, err := range client.Accounts.List(nil).All(ctx) {
	if err != nil {
		log.Fatal(err)
	}
	fmt.Println(account.CreatorID, account.Handle)
}
```

**`PHP`**

```php title="PHP"
$me = $evva->app->me();
echo $me->name, ' ', $me->environment, PHP_EOL;

foreach ($evva->accounts->iterate() as $creator) {
    echo $creator->creatorId, ' ', $creator->handle, PHP_EOL;
}
```

[`GET /partner/v1/app/me`](https://developers.evvahub.com/api-reference/application/get-application-me) describes the application, its agency and environment, the scopes this token carries, and the rate limit it is metered against:

**`GET /partner/v1/app/me — 200`**

```json title="GET /partner/v1/app/me — 200"
{
  "application": {
    "id": "00000000-0000-4000-8000-000000000000",
    "name": "CRM bridge",
    "clientId": "evpc_test_…",
    "status": "ACTIVE",
    "environment": "SANDBOX",
    "allowedScopes": ["read:messages", "write:messages", "write:messages:automated"],
    "createdAt": "2026-12-01T09:00:00.000Z",
    "lastUsedAt": "2026-12-01T09:05:00.000Z"
  },
  "agency": { "id": "YOUR_AGENCY_ID" },
  "environment": "SANDBOX",
  "scopes": ["read:messages", "write:messages", "write:messages:automated"],
  "rateLimits": { "requestsPerWindow": 60, "windowSeconds": 60, "bucket": "application" }
}
```

[`GET /partner/v1/accounts`](https://developers.evvahub.com/api-reference/accounts/list-accounts) lists the creators your grants reach, each with the scopes the application may exercise for them right now — grants, consent and the token's scopes combined:

**`GET /partner/v1/accounts — 200`**

```json title="GET /partner/v1/accounts — 200"
{
  "items": [
    {
      "creatorId": "cre_123",
      "handle": "example_creator",
      "displayName": "Example Creator",
      "scopes": ["read:messages", "write:messages", "write:messages:automated"]
    }
  ]
}
```

An empty `items` list means no grant reaches a creator yet — go back to step 3. Use `creatorId` in every creator-scoped path, such as [`GET /partner/v1/accounts/{creatorId}/conversations`](https://developers.evvahub.com/api-reference/messaging/list-conversations).

## 6. Receive events

Instead of polling, let EVVA tell you when something happens — a new message, a purchase, a change in your access. Every event has the same envelope, whichever way you receive it:

| Way                            | Best for                                                                                                                                                        |
| ------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Webhooks](/webhooks/overview) | EVVA posts each event to an HTTPS endpoint your agency registers.                                                                                               |
| [Event feed](/event-feed)      | You read events in order from [`GET /partner/v1/events`](https://developers.evvahub.com/api-reference/events/list-events) and keep your place with a cursor. Also the way to catch up after downtime. |
| [Realtime](/realtime)          | A WebSocket connection for the lowest latency, authenticated with the same access token.                                                                        |

## Next steps

#### [Sandbox](/sandbox)

Test end to end with synthetic creators, fans and purchases.

#### [Authentication overview](/authentication/overview)

How tokens, grants and consent decide what your application may do.

#### [Webhooks](/webhooks/overview)

Subscribe an endpoint and verify what EVVA sends.

#### [SDKs](/sdks/overview)

TypeScript, Python, Go and PHP clients that handle tokens, retries and events.