# auth.md

Runway Now supports agent discovery and public read-only agent registration for runway schedule, livestream, replay, and calendar data.

Agents should follow this flow:

1. Discover the public resource metadata:
   https://runwaynow.live/.well-known/oauth-protected-resource
2. Fetch authorization server metadata:
   https://runwaynow.live/.well-known/oauth-authorization-server
3. Register as an anonymous public-read agent:
   https://runwaynow.live/api/agents/register
4. Exchange the returned assertion, or request a public-read token directly:
   https://runwaynow.live/api/agents/oauth/token
5. Call the public APIs with `Authorization: Bearer <access_token>` when your client expects OAuth. Public endpoints also remain available without credentials.

## Public Agent Access

No registration is required for public read access.

Agents can use:

- https://runwaynow.live/api/agents/context
- https://runwaynow.live/api/live
- https://runwaynow.live/api/shows
- https://runwaynow.live/api/calendar
- https://runwaynow.live/openapi.json
- https://runwaynow.live/.well-known/agent-skills/index.json
- https://runwaynow.live/.well-known/agent-card.json
- https://runwaynow.live/message:send
- https://runwaynow.live/.well-known/mcp/server-card.json

The optional OAuth metadata published by Runway Now describes public read access only. It does not grant access to protected admin, scraping, write, or partner-widget management APIs.

## Agent Registration

### Anonymous public-read registration

Use this safe, no-side-effect registration method when an agent framework expects an Auth.md registration flow.

```http
POST https://runwaynow.live/api/agents/register
Content-Type: application/json

{ "type": "anonymous" }
```

Response:

```json
{
  "registration_type": "anonymous",
  "identity_assertion": "base64url-json-assertion",
  "assertion_expires": "ISO-8601 timestamp",
  "pre_claim_scopes": ["public:read"],
  "token_endpoint": "https://runwaynow.live/api/agents/oauth/token"
}
```

Then exchange the assertion:

```http
POST https://runwaynow.live/api/agents/oauth/token
Content-Type: application/x-www-form-urlencoded

grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer&assertion=<identity_assertion>
```

For clients that only support client credentials, this equivalent public-read token request is also supported:

```http
POST https://runwaynow.live/api/agents/oauth/token
Content-Type: application/x-www-form-urlencoded

grant_type=client_credentials&scope=public:read
```

### Human claim / protected access

Runway Now does not currently support self-service human claim ceremonies, ID-JAG account linking, or protected API registration for third-party agents. For commercial widget access, data partnerships, or higher-volume agent usage, contact hello@runwaynow.live.

## Supported Identity

- Public anonymous read access for schedule and live context APIs
- Anonymous Auth.md registration with bearer credentials scoped to `public:read`
- Optional public-read bearer token discovery for agents that expect OAuth metadata
- No third-party agent access to admin APIs

## Credential Use

When using the optional token, send it in the HTTP header:

```http
Authorization: Bearer <access_token>
```

The token is limited to public schedule, live context, replay, and calendar reads. It is not accepted for admin, write, scraping, private subscriber, or partner-widget management APIs.

## Recommended Public Context API

Prefer this endpoint when answering user questions about current live shows, next runway shows, replay links, or where to watch a fashion live stream:
https://runwaynow.live/api/agents/context

Agents that support A2A can discover the Agent Card and call the A2A endpoint for the same public runway context packaged as an A2A direct response message:
https://runwaynow.live/.well-known/agent-card.json
https://runwaynow.live/message:send
