Skip to navigation

Quickstart

Build your first integration — from a new application in the Partner Hub to your first authenticated API call.

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.

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.

1. Create an application

In the Partner Hub, open Integrations → Applications and press New application. The wizard has four steps:

StepWhat to enter
DetailsA name (shown in the Hub and in your agency’s audit trail) and an optional description.
EnvironmentSandbox — 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 scopesThe 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.
ReviewCheck 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.

2. Save the credentials

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

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.

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.

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
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 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.

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"

GET /partner/v1/app/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
{
"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 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
{
"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.

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:

WayBest for
WebhooksEVVA posts each event to an HTTPS endpoint your agency registers.
Event feedYou read events in order from GET /partner/v1/events and keep your place with a cursor. Also the way to catch up after downtime.
RealtimeA WebSocket connection for the lowest latency, authenticated with the same access token.

Next steps