Skip to navigation

Authentication overview

How an agency's application proves who it is, and how EVVA decides, on every request, what it may do for each creator.

The Partner API is server-to-server. Your integration does not sign in as a person: it acts as an application that your agency registers in the Partner Hub. The application authenticates with its own credentials, receives short-lived access tokens, and can act only for the creators your agency has granted to it.

The model

PieceWhat it isWhere it comes from
AgencyYour organisation on EVVA. Every application belongs to exactly one agency, and acts only for that agency’s creators.The Partner Hub.
ApplicationYour integration — a CRM bridge, a bot, an AI assistant. It is not a staff member and not a creator: it has no Hub role, only scopes. Each application lives in one environment: live or sandbox.Created by the agency owner in Integrations → Applications.
CredentialsA client ID plus a client secret, or a public key you registered for private_key_jwt.The application’s Credentials tab.
Access tokenAn opaque bearer token, valid for 15 minutes, that your server sends with every call.The token endpoint, in exchange for the credentials. See Requesting tokens.
GrantThe agency’s decision that this application may act for a creator, or for a group of creators, with a set of scopes.The application’s Permissions & creators tab.
ConsentThe creator’s link to your agency, which carries the scopes the creator agreed to.Made when the creator connects to your agency; the creator can end it at any time.

The environment is visible in every identifier, so a sandbox credential can never be mistaken for a live one:

LiveSandbox
Client IDevpc_live_…evpc_test_…
Client secretevps_live_…evps_test_…
Access tokenevpa_live_…evpa_test_…

A live application acts for your real creators and waits for EVVA’s review before it can obtain tokens. A sandbox application is active at once and acts only in the sandbox.

Getting and using a token

The application uses the OAuth 2.0 client_credentials grant. There is no browser redirect, no user and no refresh token.

Send the token in the Authorization header of every call:

GET /partner/v1/app/me HTTP/1.1
Host: api.evvahub.com
Authorization: Bearer evpa_live_…

You never send an agency ID: the token already names the agency. If you do send an X-Agency-Id header, it must be your application’s own agency, or the request is refused with 403 AGENCY_CONTEXT_MISMATCH.

GET /partner/v1/app/me tells you which application, agency and environment a token belongs to and the scopes it carries; GET /partner/v1/app/capabilities lists everything the application can call, creator by creator.

Effective access

A token is not a blanket permission. For every request that concerns a creator, EVVA works out what the application may do for that creator at that moment:

effective scopes = scopes the application is allowed
∩ scopes of the agency's grants that reach the creator
∩ scopes the creator's consent covers
∩ scopes on the token

An operation is allowed only when every scope it requires is in that set, and only while:

  • your agency is active, and the application is active;
  • EVVA has not paused integrations for that creator;
  • the creator’s account status permits the action.

Nothing can widen this set. A group grant cannot give a creator’s application more than that creator consented to; a token cannot carry a scope the application is not allowed; and an agency cannot grant a scope it has not allowed the application.

EVVA evaluates the whole chain on every request, reading the current state each time, with no caching. So a change takes effect on the next request — you never have to restart your integration or fetch a new token for a narrower grant to apply.

See Scopes and grants for the scope vocabulary, how grants work, and the 403 code each broken link of the chain returns.

When access changes

What changedRESTRealtimeToken endpoint
A grant is revoked or narrowed, or a creator leaves a granted groupNext request for that creator: 403 NOT_ASSIGNEDThe connection stays open; that creator’s events stop. The event feed records grant.changed or access.revoked.Unaffected
The creator ends their link to your agency403 GRANT_REVOKEDThat creator’s events stopUnaffected
EVVA pauses integrations for a creator403 CREATOR_INTEGRATIONS_HELDThat creator’s events stopUnaffected
The application’s allowed scopes are narrowedExisting tokens lose the removed scopes from the next requestEvents needing them stopRequests for a removed scope: invalid_scope
The application is disabled or revokedEvery token is revoked at once: 401 INVALID_TOKENClosed with SESSION_REVOKED, close code 4401unauthorized_client (disabled) or invalid_client (revoked)
Your agency is suspended403 AGENCY_SUSPENDEDClosed with SESSION_REVOKED, close code 4401unauthorized_client
You revoke a tokenThat token: 401 INVALID_TOKENConnections opened with it are closedUnaffected
A token expires401 INVALID_TOKENClosed at the moment of expiry; reconnect with a new tokenRequest a new token

Realtime closes for application-wide changes reach every connection within about a second.

Rotating a client secret or revoking a public key changes how the application gets tokens, not the tokens it already holds: those keep working until they expire. See Rotating credentials.

Keeping credentials safe

  • Keep client secrets and private keys on your servers only, in a secret manager or injected environment. Never ship them, or a token, to a browser or a mobile app.
  • Prefer private_key_jwt in production: the private key never leaves your infrastructure, and rotation is a new key ID.
  • Never log a secret, an assertion or an access token. The official SDKs redact them.
  • Revoke a token you no longer need, and rotate a credential the moment you suspect it leaked.

Next steps