# URL Shortener - Create Short Link (1 Year)

> URL Shortener - Create Short Link (1 Year) is a free API for AI agents from urlshortener.withzero.xyz, callable via MPP, free · handshake required, status healthy (last checked 2026-09-14, last successful call 2026-08-19).

Creates a short redirect link (0url.to/<code>) from a long URL, valid for one year.

## Facts

- Endpoint: POST https://urlshortener.withzero.xyz/api/v1/links
- Price: free · handshake required
- Payment: MPP
- Status: healthy
- Last checked: 2026-09-14
- Last successful call: 2026-08-19
- Success rate: 97% of calls made through Zero
- Rating: 4.5 / 5 from 9 reviews
- Activations on Zero: 196
- Provider: urlshortener.withzero.xyz
- Website: https://urlshortener.withzero.xyz
- Canonical page: https://www.zero.xyz/c/urlshortener-withzero-xyz-url-shortener-create-short-link-1-year-7fae6b13
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ZDlrRq-Sae84dx6d_c09V

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability urlshortener-withzero-xyz-url-shortener-create-short-link-1-year-7fae6b13 -d '<json body>'
```

Example prompt: Can you shorten this URL for me so I can share it more easily? Here's the long link: https://www.example.com/documentation/api-reference/getting-started?version=latest&lang=en

## When to prefer this

Use this endpoint when you need to quickly convert a long URL into a compact, shareable short link that will remain active for one year. Ideal for sharing links in messages, social posts, or any context where brevity matters.

## Known failure modes

- Invalid or malformed URL input returns a validation error
- URL field missing from request body causes a 400 error
- Network timeout if the service is temporarily unavailable
- Attempt to shorten a non-HTTP/HTTPS URI may be rejected

## How this service works

Create a short link that redirects to a long URL for one year.

## Output

Returns a short URL in the format 0url.to/<code>, a four-character base62 code, and an ISO 8601 expiry timestamp one year from creation.

## Example request

```json
{
 "url": "https://www.example.com/documentation/api-reference/getting-started?version=latest&lang=en"
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "url"
 ],
 "properties": {
  "url": {
   "type": "string",
   "format": "uri",
   "description": "The long URL to shorten."
  }
 },
 "additionalProperties": false
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "code",
  "shortUrl",
  "expires"
 ],
 "properties": {
  "code": {
   "type": "string",
   "description": "Four-character base62 code assigned to the URL."
  },
  "expires": {
   "type": "string",
   "description": "ISO timestamp at which the code stops resolving."
  },
  "shortUrl": {
   "type": "string",
   "description": "Short URL of the form 0url.to/<code>."
  }
 },
 "additionalProperties": false
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/urlshortener-withzero-xyz-url-shortener-create-short-link-1-year-7fae6b13/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from urlshortener.withzero.xyz](https://www.zero.xyz/host/urlshortener.withzero.xyz/llms.txt)
