The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
update openAPI spec
Steven Tey78ac9a9f5364
diff --git a/apps/web/app/api/route.ts b/apps/web/app/api/route.tsindex 3a37a76d98..1b554ba603 100644--- a/apps/web/app/api/route.ts+++ b/apps/web/app/api/route.ts@@ -9,7 +9,7 @@ export function GET(): NextResponse<OpenAPIV3.Document> {info: {title: "Dub.co API",description:- "Dub is an open-source link management tool for modern marketing teams to create, share, and track short links.",+ "Dub is link management infrastructure for companies to create marketing campaigns, link sharing features, and referral programs.",contact: {email: "[email protected]",name: "Dub.co Support",@@ -39,24 +39,24 @@ export function GET(): NextResponse<OpenAPIV3.Document> {{name: "projectSlug",description:- "The slug for the project to retrieve links for. E.g. for app.dub.co/acme, the projectSlug is 'acme'.",+ "The slug for the project to retrieve links for. E.g. for `app.dub.co/acme`, the projectSlug is `acme`.",in: "query",required: true,schema: {description:- "The slug for the project to retrieve links for. E.g. for app.dub.co/acme, the projectSlug is 'acme'.",+ "The slug for the project to retrieve links for. E.g. for `app.dub.co/acme`, the projectSlug is `acme`.",type: "string",},},{name: "domain",description:- "The domain to filter the links by. E.g. 'ac.me'. If not provided, all links for the project will be returned.",+ "The domain to filter the links by. E.g. `ac.me`. If not provided, all links for the project will be returned.",in: "query",required: false,schema: {description:- "The domain to filter the links by. E.g. 'ac.me'. If not provided, all links for the project will be returned.",+ "The domain to filter the links by. E.g. `ac.me`. If not provided, all links for the project will be returned.",type: "string",},},@@ -85,13 +85,13 @@ export function GET(): NextResponse<OpenAPIV3.Document> {{name: "sort",description:- "The field to sort the links by. The default is 'createdAt', and sort order is always descending.",+ "The field to sort the links by. The default is `createdAt`, and sort order is always descending.",in: "query",required: false,schema: {default: "createdAt",description:- "The field to sort the links by. The default is 'createdAt', and sort order is always descending.",+ "The field to sort the links by. The default is `createdAt`, and sort order is always descending.",type: "string",enum: ["createdAt", "clicks", "lastClicked"],},@@ -121,12 +121,12 @@ export function GET(): NextResponse<OpenAPIV3.Document> {{name: "showArchived",description:- "Whether to include archived links in the response. Defaults to false if not provided.",+ "Whether to include archived links in the response. Defaults to `false` if not provided.",in: "query",required: false,schema: {description:- "Whether to include archived links in the response. Defaults to false if not provided.",+ "Whether to include archived links in the response. Defaults to `false` if not provided.",type: "boolean",enum: [true, false],},@@ -161,12 +161,12 @@ export function GET(): NextResponse<OpenAPIV3.Document> {{name: "projectSlug",description:- "The slug for the project to create links for. E.g. for app.dub.co/acme, the projectSlug is 'acme'.",+ "The slug for the project to create links for. E.g. for `app.dub.co/acme`, the projectSlug is `acme`.",in: "query",required: true,schema: {description:- "The slug for the project to create links for. E.g. for app.dub.co/acme, the projectSlug is 'acme'.",+ "The slug for the project to create links for. E.g. for `app.dub.co/acme`, the projectSlug is `acme`.",type: "string",},},@@ -212,36 +212,36 @@ export function GET(): NextResponse<OpenAPIV3.Document> {{name: "projectSlug",description:- "The slug for the project that the link belongs to. E.g. for app.dub.co/acme, the projectSlug is 'acme'.",+ "The slug for the project that the link belongs to. E.g. for `app.dub.co/acme`, the projectSlug is `acme`.",in: "query",required: true,schema: {description:- "The slug for the project that the link belongs to. E.g. for app.dub.co/acme, the projectSlug is 'acme'.",+ "The slug for the project that the link belongs to. E.g. for `app.dub.co/acme`, the projectSlug is `acme`.",type: "string",},},{name: "domain",description:- "The domain of the link to retrieve. E.g. for dub.sh/github, the domain is 'dub.sh'.",+ "The domain of the link to retrieve. E.g. for `dub.sh/github`, the domain is `dub.sh`.",in: "query",required: true,schema: {description:- "The domain of the link to retrieve. E.g. for dub.sh/github, the domain is 'dub.sh'.",+ "The domain of the link to retrieve. E.g. for `dub.sh/github`, the domain is `dub.sh`.",type: "string",},},{name: "key",description:- "The key of the link to retrieve. E.g. for dub.sh/github, the key is 'github'.",+ "The key of the link to retrieve. E.g. for `dub.sh/github`, the key is `github`.",in: "query",required: true,schema: {description:- "The key of the link to retrieve. E.g. for dub.sh/github, the key is 'github'.",+ "The key of the link to retrieve. E.g. for `dub.sh/github`, the key is `github`.",type: "string",},},@@ -274,12 +274,12 @@ export function GET(): NextResponse<OpenAPIV3.Document> {{name: "projectSlug",description:- "The slug for the project that the link belongs to. E.g. for app.dub.co/acme, the projectSlug is 'acme'.",+ "The slug for the project that the link belongs to. E.g. for `app.dub.co/acme`, the projectSlug is `acme`.",in: "query",required: true,schema: {description:- "The slug for the project that the link belongs to. E.g. for app.dub.co/acme, the projectSlug is 'acme'.",+ "The slug for the project that the link belongs to. E.g. for `app.dub.co/acme`, the projectSlug is `acme`.",type: "string",},},@@ -333,12 +333,12 @@ export function GET(): NextResponse<OpenAPIV3.Document> {{name: "projectSlug",description:- "The slug for the project that the link belongs to. E.g. for app.dub.co/acme, the projectSlug is 'acme'.",+ "The slug for the project that the link belongs to. E.g. for `app.dub.co/acme`, the projectSlug is `acme`.",in: "query",required: true,schema: {description:- "The slug for the project that the link belongs to. E.g. for app.dub.co/acme, the projectSlug is 'acme'.",+ "The slug for the project that the link belongs to. E.g. for `app.dub.co/acme`, the projectSlug is `acme`.",type: "string",},},@@ -384,12 +384,12 @@ export function GET(): NextResponse<OpenAPIV3.Document> {{name: "projectSlug",description:- "The slug for the project to create links for. E.g. for app.dub.co/acme, the projectSlug is 'acme'.",+ "The slug for the project to create links for. E.g. for `app.dub.co/acme`, the projectSlug is `acme`.",in: "query",required: true,schema: {description:- "The slug for the project to create links for. E.g. for app.dub.co/acme, the projectSlug is 'acme'.",+ "The slug for the project to create links for. E.g. for `app.dub.co/acme`, the projectSlug is `acme`.",type: "string",},},@@ -563,12 +563,12 @@ export function GET(): NextResponse<OpenAPIV3.Document> {{name: "projectSlug",description:- "The slug for the project to retrieve. E.g. for app.dub.co/acme, the projectSlug is 'acme'.",+ "The slug for the project to retrieve. E.g. for `app.dub.co/acme`, the projectSlug is `acme`.",in: "path",required: true,schema: {description:- "The slug for the project to retrieve. E.g. for app.dub.co/acme, the projectSlug is 'acme'.",+ "The slug for the project to retrieve. E.g. for `app.dub.co/acme`, the projectSlug is `acme`.",type: "string",},},@@ -601,12 +601,12 @@ export function GET(): NextResponse<OpenAPIV3.Document> {{name: "projectSlug",description:- "The slug for the project to retrieve tags for. E.g. for app.dub.co/acme, the projectSlug is 'acme'.",+ "The slug for the project to retrieve tags for. E.g. for `app.dub.co/acme`, the projectSlug is `acme`.",in: "path",required: true,schema: {description:- "The slug for the project to retrieve tags for. E.g. for app.dub.co/acme, the projectSlug is 'acme'.",+ "The slug for the project to retrieve tags for. E.g. for `app.dub.co/acme`, the projectSlug is `acme`.",type: "string",},},@@ -640,12 +640,12 @@ export function GET(): NextResponse<OpenAPIV3.Document> {{name: "projectSlug",description:- "The slug for the project to create tags for. E.g. for app.dub.co/acme, the projectSlug is 'acme'.",+ "The slug for the project to create tags for. E.g. for `app.dub.co/acme`, the projectSlug is `acme`.",in: "path",required: true,schema: {description:- "The slug for the project to create tags for. E.g. for app.dub.co/acme, the projectSlug is 'acme'.",+ "The slug for the project to create tags for. E.g. for `app.dub.co/acme`, the projectSlug is `acme`.",type: "string",},},@@ -750,21 +750,21 @@ export function GET(): NextResponse<OpenAPIV3.Document> {title: {type: "string",description:- "The title of the short link generated via api.dub.co/metatags. Will be used for Custom Social Media Cards if `proxy` is true.",+ "The title of the short link generated via `api.dub.co/metatags`. Will be used for Custom Social Media Cards if `proxy` is true.",default: null,nullable: true,},description: {type: "string",description:- "The description of the short link generated via api.dub.co/metatags. Will be used for Custom Social Media Cards if `proxy` is true.",+ "The description of the short link generated via `api.dub.co/metatags`. Will be used for Custom Social Media Cards if `proxy` is true.",default: null,nullable: true,},image: {type: "string",description:- "The image of the short link generated via api.dub.co/metatags. Will be used for Custom Social Media Cards if `proxy` is true.",+ "The image of the short link generated via `api.dub.co/metatags`. Will be used for Custom Social Media Cards if `proxy` is true.",default: null,nullable: true,},@@ -790,7 +790,7 @@ export function GET(): NextResponse<OpenAPIV3.Document> {geo: {type: "object",description:- 'Geo targeting information for the short link in JSON format {[COUNTRY]: "https://example.com" }. Learn more: https://dub.sh/geo',+ "Geo targeting information for the short link in JSON format {[COUNTRY]: `https://example.com` }. Learn more: `https://dub.sh/geo`",additionalProperties: {type: "string",format: "uri",@@ -826,13 +826,13 @@ export function GET(): NextResponse<OpenAPIV3.Document> {shortLink: {type: "string",description:- "The full URL of the short link, including the https protocol (e.g. https://dub.sh/try).",+ "The full URL of the short link, including the https protocol (e.g. `https://dub.sh/try`).",readOnly: true,},qrCode: {type: "string",description:- "The full URL of the QR code for the short link (e.g. https://api.dub.co/qr?url=https://dub.sh/try).",+ "The full URL of the QR code for the short link (e.g. `https://api.dub.co/qr?url=https://dub.sh/try`).",readOnly: true,},utm_source: {