API
The url.space API gives you direct access to the core of your account: links, collections and tags. Use it to automate your workflow or connect url.space to the tools you already use. If you build something on top of it, I'd love to hear about it. Share it with me and it may end up featured in the documentation.
All requests go to the base URL https://api.url.space/v1.
Authentication
The API uses bearer token authentication. Send your API token in the Authorization header of every request.
To create a token, go to "Access tokens" in your settings and click "Create token". You can have up to 20 tokens, so you can use a separate one for each integration and revoke it without affecting the others.
Rate limiting
The API is limited to 200 requests per minute. If you go over the limit, the API responds with a 429 Too Many Requests status code and the following body:
{
"status": "error",
"data": "too many requests"
}User
Get current user
Gets the account that owns the API token.
curl https://api.url.space/v1/me \
-H "Authorization: Bearer YOUR_API_TOKEN"{
"status": "ok",
"data": {
"id": "019a2b4c-1d3e-7f50-8a61-b2c3d4e5f607",
"email": "jane@example.com",
"username": "jane",
"displayName": "Jane Doe",
"isAdmin": false,
"isUnlimited": false,
"createdAt": "2026-03-14T10:22:05.412337Z",
"updatedAt": "2026-10-02T18:45:51.903114Z",
"stats": {
"linksCount": 248,
"linksLimit": 1000,
"collectionsCount": 7,
"collectionsLimit": 100,
"tagsCount": 23,
"tagsLimit": 100
}
}
}Links
List links
Lists your links, newest first. Results are paginated and can be filtered with the following query parameters:
page: page number, starting from 1. Defaults to 1.pageSize: number of links per page, between 1 and 500. Defaults to 100.query: matches links whose title or URL contains the given text. Up to 255 characters.collectionId: returns only links from the given collection.tagId: returns only links with the given tag. Repeat it to return links that have all of the given tags.favourite:trueorfalse.forLater:trueorfalse.
curl "https://api.url.space/v1/links?page=1&pageSize=50&forLater=true&tagId=TAG_ID_1&tagId=TAG_ID_2" \
-H "Authorization: Bearer YOUR_API_TOKEN"{
"status": "ok",
"data": [
{
"id": "019a8f12-3c4d-7e5f-8a6b-1c2d3e4f5a6b",
"title": "Example",
"description": "An example link",
"url": "https://example.com",
"favourite": false,
"forLater": true,
"tags": [
{ "id": "019a5c21-7e8f-7a90-b1c2-d3e4f5a6b7c8", "name": "reading" },
{ "id": "019a5c22-0f91-7b02-a2d3-e4f5a6b7c8d9", "name": "web-dev" }
],
"collection": { "id": "019a3f40-2b1c-7d4e-9f50-6a7b8c9d0e1f", "name": "Reading list" },
"createdAt": "2026-11-28T08:12:44.501223Z",
"updatedAt": "2026-11-28T08:12:44.501223Z"
},
{
"id": "019a8e07-9b1a-7c2d-9e3f-4a5b6c7d8e9f",
"title": "Modern CSS layouts",
"description": "A practical guide to grid and flexbox",
"url": "https://example.org/css-layouts",
"favourite": true,
"forLater": true,
"tags": [
{ "id": "019a5c21-7e8f-7a90-b1c2-d3e4f5a6b7c8", "name": "reading" },
{ "id": "019a5c22-0f91-7b02-a2d3-e4f5a6b7c8d9", "name": "web-dev" },
{ "id": "019a6d10-4a2b-7c3d-8e4f-5a6b7c8d9e0f", "name": "design" }
],
"collection": null,
"createdAt": "2026-11-21T19:03:10.087541Z",
"updatedAt": "2026-11-25T07:30:02.664190Z"
}
],
"pagination": {
"totalCount": 2,
"pageSize": 50,
"currentPage": 1,
"totalPages": 1
}
}Get link
Gets a single link by its ID.
curl https://api.url.space/v1/links/LINK_ID \
-H "Authorization: Bearer YOUR_API_TOKEN"{
"status": "ok",
"data": {
"id": "019a8f12-3c4d-7e5f-8a6b-1c2d3e4f5a6b",
"title": "Example",
"description": "An example link",
"url": "https://example.com",
"favourite": false,
"forLater": true,
"tags": [
{ "id": "019a5c21-7e8f-7a90-b1c2-d3e4f5a6b7c8", "name": "reading" },
{ "id": "019a5c22-0f91-7b02-a2d3-e4f5a6b7c8d9", "name": "web-dev" }
],
"collection": { "id": "019a3f40-2b1c-7d4e-9f50-6a7b8c9d0e1f", "name": "Reading list" },
"createdAt": "2026-11-28T08:12:44.501223Z",
"updatedAt": "2026-11-28T08:12:44.501223Z"
}
}Create link
Creates a new link. The request body accepts the following fields:
url(required): anhttporhttpsURL, up to 2048 characters.title(required): between 3 and 255 characters.description: up to 512 characters.collectionId: ID of the collection the link belongs to.tags: an array of up to 10 tag names. Tags that don't exist yet are created. Names are 2 to 50 characters long and can contain lowercase letters, digits and single hyphens.favourite:trueorfalse. Defaults tofalse.forLater:trueorfalse. Defaults tofalse.
curl -X POST https://api.url.space/v1/links \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com",
"title": "Example",
"description": "An example link",
"tags": ["reading", "web-dev"],
"forLater": true
}'{
"status": "ok",
"data": {
"id": "019a8f12-3c4d-7e5f-8a6b-1c2d3e4f5a6b",
"title": "Example",
"description": "An example link",
"url": "https://example.com",
"favourite": false,
"forLater": true,
"tags": [
{ "id": "019a5c21-7e8f-7a90-b1c2-d3e4f5a6b7c8", "name": "reading" },
{ "id": "019a5c22-0f91-7b02-a2d3-e4f5a6b7c8d9", "name": "web-dev" }
],
"collection": null,
"createdAt": "2026-11-28T08:12:44.501223Z",
"updatedAt": "2026-11-28T08:12:44.501223Z"
}
}Update link
Replaces a link with the values from the request body. It accepts the same fields as create link. Fields you leave out are reset to their defaults, so always send the full link.
curl -X PUT https://api.url.space/v1/links/LINK_ID \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com",
"title": "Example (updated)",
"description": "An example link",
"tags": ["reading"],
"favourite": true,
"forLater": false
}'{
"status": "ok",
"data": {
"id": "019a8f12-3c4d-7e5f-8a6b-1c2d3e4f5a6b",
"title": "Example (updated)",
"description": "An example link",
"url": "https://example.com",
"favourite": true,
"forLater": false,
"tags": [
{ "id": "019a5c21-7e8f-7a90-b1c2-d3e4f5a6b7c8", "name": "reading" }
],
"collection": null,
"createdAt": "2026-11-28T08:12:44.501223Z",
"updatedAt": "2026-11-29T14:06:37.920815Z"
}
}Delete link
Deletes a link by its ID. The request doesn't take a body.
curl -X DELETE https://api.url.space/v1/links/LINK_ID \
-H "Authorization: Bearer YOUR_API_TOKEN"{
"status": "ok",
"data": {
"id": "019a8f12-3c4d-7e5f-8a6b-1c2d3e4f5a6b",
"title": "Example (updated)",
"description": "An example link",
"url": "https://example.com",
"favourite": true,
"forLater": false,
"tags": [
{ "id": "019a5c21-7e8f-7a90-b1c2-d3e4f5a6b7c8", "name": "reading" }
],
"collection": null,
"createdAt": "2026-11-28T08:12:44.501223Z",
"updatedAt": "2026-11-29T14:06:37.920815Z"
}
}Collections
List collections
Lists all your collections.
curl https://api.url.space/v1/collections \
-H "Authorization: Bearer YOUR_API_TOKEN"{
"status": "ok",
"data": [
{
"id": "019a3f40-2b1c-7d4e-9f50-6a7b8c9d0e1f",
"name": "Reading list",
"slug": "reading-list",
"description": "Articles worth reading",
"public": false,
"password": null,
"createdAt": "2026-09-05T12:40:18.334901Z",
"updatedAt": "2026-09-05T12:40:18.334901Z",
"count": 42
},
{
"id": "019a4a55-6c7d-7e8f-a091-b2c3d4e5f6a7",
"name": "Recipes",
"slug": "recipes",
"description": "",
"public": true,
"password": null,
"createdAt": "2026-07-19T16:02:55.718264Z",
"updatedAt": "2026-10-11T09:15:43.250077Z",
"count": 17
}
]
}Get collection
Gets a single collection by its ID.
curl https://api.url.space/v1/collections/COLLECTION_ID \
-H "Authorization: Bearer YOUR_API_TOKEN"{
"status": "ok",
"data": {
"id": "019a3f40-2b1c-7d4e-9f50-6a7b8c9d0e1f",
"name": "Reading list",
"slug": "reading-list",
"description": "Articles worth reading",
"public": false,
"password": null,
"createdAt": "2026-09-05T12:40:18.334901Z",
"updatedAt": "2026-09-05T12:40:18.334901Z"
}
}Create collection
Creates a new collection. The request body accepts the following fields:
name(required): between 2 and 128 characters.slug(required): between 2 and 128 characters. Can contain lowercase letters, digits and single hyphens. It's used in the address of a public collection, so it must be unique.description: up to 1024 characters.public:trueorfalse. Defaults tofalse. Making a collection public requires the Unlimited plan.password: between 6 and 64 characters. Protects a public collection with a password. It's ignored for private collections.
curl -X POST https://api.url.space/v1/collections \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "Reading list",
"slug": "reading-list",
"description": "Articles worth reading"
}'{
"status": "ok",
"data": {
"id": "019a3f40-2b1c-7d4e-9f50-6a7b8c9d0e1f",
"name": "Reading list",
"slug": "reading-list",
"description": "Articles worth reading",
"public": false,
"password": null,
"createdAt": "2026-09-05T12:40:18.334901Z",
"updatedAt": "2026-09-05T12:40:18.334901Z"
}
}Update collection
Replaces a collection with the values from the request body. It accepts the same fields as create collection. Fields you leave out are reset to their defaults, so always send the full collection.
curl -X PUT https://api.url.space/v1/collections/COLLECTION_ID \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "Reading list",
"slug": "reading-list",
"description": "Articles worth reading",
"public": true,
"password": "secret-password"
}'{
"status": "ok",
"data": {
"id": "019a3f40-2b1c-7d4e-9f50-6a7b8c9d0e1f",
"name": "Reading list",
"slug": "reading-list",
"description": "Articles worth reading",
"public": true,
"password": "secret-password",
"createdAt": "2026-09-05T12:40:18.334901Z",
"updatedAt": "2026-11-29T14:11:02.475630Z"
}
}Delete collection
Deletes a collection by its ID. By default, the links in it are kept and removed from the collection. To delete them together with the collection, add the cascade=true query parameter.
curl -X DELETE "https://api.url.space/v1/collections/COLLECTION_ID?cascade=true" \
-H "Authorization: Bearer YOUR_API_TOKEN"{
"status": "ok",
"data": {
"id": "019a3f40-2b1c-7d4e-9f50-6a7b8c9d0e1f",
"name": "Reading list",
"slug": "reading-list",
"description": "Articles worth reading",
"public": true,
"password": "secret-password",
"createdAt": "2026-09-05T12:40:18.334901Z",
"updatedAt": "2026-11-29T14:11:02.475630Z"
}
}Tags
Tags are created automatically when you add them to a link, so there's no endpoint to create one.
List tags
Lists all your tags.
curl https://api.url.space/v1/tags \
-H "Authorization: Bearer YOUR_API_TOKEN"{
"status": "ok",
"data": [
{
"id": "019a5c21-7e8f-7a90-b1c2-d3e4f5a6b7c8",
"name": "reading",
"createdAt": "2026-06-02T07:55:31.120448Z",
"updatedAt": "2026-06-02T07:55:31.120448Z",
"count": 64
},
{
"id": "019a5c22-0f91-7b02-a2d3-e4f5a6b7c8d9",
"name": "web-dev",
"createdAt": "2026-06-02T07:55:31.120448Z",
"updatedAt": "2026-06-02T07:55:31.120448Z",
"count": 38
}
]
}Update tag
Renames a tag. The request body accepts the following fields:
name(required): between 2 and 50 characters. Can contain lowercase letters, digits and single hyphens.
curl -X PUT https://api.url.space/v1/tags/TAG_ID \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "web-dev"
}'{
"status": "ok",
"data": {
"id": "019a5c22-0f91-7b02-a2d3-e4f5a6b7c8d9",
"name": "web-dev",
"createdAt": "2026-06-02T07:55:31.120448Z",
"updatedAt": "2026-11-29T14:18:26.009372Z"
}
}Delete tag
Deletes a tag by its ID. By default, the links that use it are kept and only the tag is removed from them. To delete those links too, add the cascade=true query parameter.
curl -X DELETE "https://api.url.space/v1/tags/TAG_ID?cascade=true" \
-H "Authorization: Bearer YOUR_API_TOKEN"{
"status": "ok",
"data": {
"id": "019a5c22-0f91-7b02-a2d3-e4f5a6b7c8d9",
"name": "web-dev",
"createdAt": "2026-06-02T07:55:31.120448Z",
"updatedAt": "2026-11-29T14:18:26.009372Z"
}
}