<!-- The Markdown version of https://hyviral.com/docs/mcp/auth: the same content as the page. -->

Guide

# Choose what your agent can reach

OAuth 2.1 with PKCE for interactive clients, personal access tokens for scripts. Either way the credential belongs to one account and carries only the permissions that account approved.

## The flow

Your client posts to the endpoint without a credential and gets a `401` carrying a `WWW-Authenticate` header that names our protected-resource metadata. From there it reads the authorization server, registers itself if it needs to, and runs a standard authorization-code exchange with PKCE.

```
401 Unauthorized
WWW-Authenticate: Bearer resource_metadata="https://api.hyviral.com/.well-known/oauth-protected-resource"
```

Access tokens are short-lived and bound to this resource: a token minted for a different audience is rejected as invalid rather than as insufficient, because it is not our credential at all. Refresh tokens rotate, and re-use of an old one revokes the family.

## Scopes

10 scopes. Your user sees each of these in plain language on the consent screen and can approve fewer than you asked for. Request the narrowest set that does the job, because a request for everything is a request people decline.

`intel:read`

Read your content intelligence

Profile stats, recent posts, growth trends, best posting times, competitor digests, and your saved uploads and assets.

`sales:read`

Read your sales and earnings

The sales, orders and commissions you import from platforms like TikTok Shop, per video and per product. Earnings are their own permission: content intelligence does not include them.

`research:run`

Run research

Analyse a URL, build post reports and the digest on request, and search the research already saved to the account. Quoted work uses credits; the digest and the cache search are free.

`creative:generate`

Generate media

Images, video, voiceovers and music. Spends credits: every one of these quotes first.

`edit:render`

Edit and render video

Trim, caption, restyle and render projects on our infrastructure. Cuts, captions and looks are free; transcription, planning passes, shorts, clean-ups, reviews and the final render are quoted first and spend credits.

`uploads:write`

Upload media

Put the agent's own footage and images into the account's library, through the same validated path the app uses.

`jobs:read`

Track background jobs

Check, list and cancel the long-running work it started. Cannot see jobs started by anything else.

`account:read`

Read your plan, goals and settings

The plan, goals and content settings on the account, plus the model catalog and its prices.

`account:write`

Manage profiles, calendar and settings

Link profiles, manage the content calendar and watchlist, change content settings, record what was published and import sales exports.

`feedback:write`

Send feedback

File a bug report when a tool misbehaves, or send product feedback. Free, and a bug report attaches the technical trace automatically.

## Insufficient scope

Calling a tool you do not hold the scope for returns an error naming every missing scope at once, not one per attempt. Re-run the authorization flow asking for the fuller set.

Tools your plan does not include are still LISTED, with the plan named in the description. An agent that cannot see a tool tells its user "HYVIRAL can't do that"; one that sees "[Requires Pro plan]" tells them how to get it.

## Revocation

Your user can disconnect an agent, or revoke a token, from Profile → Settings at any time. It takes effect on the next call: there is no cache window. Work already delivered stays in their account.
