# Temporary APIs

> Put a small piece of data or a contract on the internet without deploying a server.

Status: Concept. An idea we find promising. No design work has started.

Owner-configured endpoints that expire, backed by a key, a schema or an approved pipeline: mock responses, fixtures, test scenarios and short-lived read-only or scoped writable interfaces.

## Why it matters

Testing a client or showing a prototype often needs an endpoint for an afternoon. Deploying a server for that is out of proportion.

## What changes

An endpoint with a documented contract exists in minutes and disappears on schedule. Mock endpoints can return chosen status codes, sizes, delays and fixed sequences for tests.

## How it might work

- Back each endpoint with a key, a schema or an approved pipeline.
- Separate public and protected routes, with allowlisted methods, versions, CORS settings and limits.
- For mocks: bounded status codes, response sizes, delays and deterministic sequences.
- Every endpoint has a lifecycle and an expiry.

## What must be solved

- It must never become an open proxy or a way to fetch arbitrary URLs.
- Abuse of public URLs, for phishing in particular.
- Limits that keep one owner's endpoint from affecting everyone else.

## Built on what exists today

- [Webhook capture](https://setget.net/docs#objects-captures)
- [Webhook relays](https://setget.net/docs#objects-relays)
- [Keys over plain HTTP](https://setget.net/docs#keys)

## Needs first

- [Core](https://setget.net/frontier/core)

## Related

- [Forge](https://setget.net/frontier/forge)
- [Live Dashboards](https://setget.net/frontier/live-dashboards)

Propose a change: https://setget.net/feedback?type=suggestion&vision=temporary-apis
