Menu

Account

Authentication

API keys, the trial key for agents, and what works with no key at all.

Copy as MarkdownOpen in ChatGPT (opens in a new tab)Open in Claude (opens in a new tab)

API keys

Every call to a /v1 endpoint carries a key in the Authorization header:

Example
Shell
curl https://api.millionshort.com/v1/sources \
  -H "Authorization: Bearer $MILLIONSHORT_API_KEY"

Create, name, cap, roll and revoke keys in the dashboard. The Free plan needs a signed-in account with a verified email address, and no card.

Send the key only in the header. Do not put it in a URL, and do not ship it in code that runs in a browser or a mobile app: call the API from your server.

A missing key is answered with 401 and the code AUTH_MISSING_KEY; a key that is malformed, revoked or expired with 401 and AUTH_INVALID_KEY. See Errors.

Signing in to the dashboard

Keys in the dashboard are made by a signed-in account. There are three ways to sign in to the dashboard:

Way inHow
Email and passwordSign up with your address and a password of at least 8 characters. We send a confirmation link; the account opens when you open it
GitHubSign in with GitHub. The address your GitHub account has verified is the one we use
GoogleSign in with Google. The address of your Google account is the one we use

A sign-in that cannot open a free account (the address is not verified, is a disposable address, or already belongs to another account: sign in the way you did when you created it) is answered with ACCOUNT_NOT_ELIGIBLE. It is a dashboard answer only and is never returned by a /v1 call.

Trial key for agents

An agent that cannot sign up can get a key with one call and no account:

Example
Shell
curl https://api.millionshort.com/v1/keys/agent \
  -H "Content-Type: application/json" \
  -d '{ "agent": "my-agent", "purpose": "trying the search API" }'
FieldTypeNotes
agentstring, up to 60 charactersRequired. The agent's name.
purposestring, up to 200 characters or null

The response's data holds the key:

FieldTypeNotes
api_keystringThe ms-... key, shown exactly once.
tiertrial
rate_limitstring
expires_in_daysintegerexpires_in_hours rounded up to whole days.
expires_in_hoursinteger
expires_atstringWhen the key stops working.
team_idstring

A trial key carries 25 credits and stops working after 24 hours; expires_at in the response gives the exact time. Trial keys are limited per network address and in total per day; past the limit the call answers 429. When the trial ends, create a key in the dashboard to keep going.

With the SDKs:

Example
Python
from millionshort import MillionShort

key = MillionShort().create_agent_key("my-agent").api_key
client = MillionShort(api_key=key)

Without a key

Two things work with no key at all. Both are for trying the service, not for building on it.

The playground. The Agents page has a search playground that runs real searches from the browser. It needs no key and asks for none. Limits per visitor: 6 searches a minute and 15 a day (a run that also shows a comparison counts as two), one source per search, up to 5 results, no explain.

The MCP server. The hosted MCP server accepts a connection with no Authorization header. A caller with no key gets the search and list_sources tools; list_sources then returns the names of the sources only. Limits per visitor: 10 free searches a day and at most 5 in a minute, one source per search, up to 5 results, no explain. Each answer says how many searches are left today. When they are used up, the tool says so and names the dashboard, where a key is free.

Neither of these is an API. The REST endpoints under /v1 always need a key, except POST /v1/keys/agent.

Which one to use

You areUse
Building a product or a scriptAn API key from the dashboard
An agent trying the API with no human to sign upA trial key
Connecting an IDE or a coding agentThe MCP server with your API key
Connecting a chat assistant that cannot send a keyThe MCP server with no key
Just lookingThe playground

This page as Markdown ยท llms.txt