Wavix Link shortener API
Short link and click metrics
Short link and click metrics
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/wavix-com:wavix-com-link-shortener-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Wavix Link shortener API
description: Wavix provides robust APIs that let you integrate voice and text messaging features directly into your app. Send text, place calls, and access detailed reports programmatically.
termsOfService: https://wavix.com/terms-and-conditions
license:
name: MIT
identifier: MIT
contact:
name: Wavix
url: https://wavix.com
email: support@wavix.com
version: 3.2.0
servers:
- url: https://api.wavix.com
description: https://api.wavix.com
variables: {}
security:
- bearerAuth: []
tags:
- name: Link shortener
description: Short link and click metrics
paths:
/v1/short-links:
post:
tags:
- Link shortener
summary: Create a short link
description: Creates a short link that redirects to the target URL and tracks click metrics.
operationId: link_shortener_create
security:
- bearerAuth:
- campaigns:write
x-fern-sdk-group-name:
- linkShortener
x-fern-sdk-method-name: create
x-mcp:
readOnly: false
destructive: true
openWorld: true
expose: true
toolset: messaging
parameters: []
requestBody:
description: Attributes for the new short link.
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/ShortLinkCreateRequest'
type: object
required: true
responses:
'200':
description: Returns the created short link.
headers: {}
content:
application/json:
schema:
$ref: '#/components/schemas/ShortLinkResponse'
examples:
success:
summary: Successful response
value:
short_link: https://wx.com/hd82Jhs21
'400':
$ref: '#/components/responses/BadRequestErrorResponse'
'401':
$ref: '#/components/responses/UnauthorizedErrorResponse'
'403':
$ref: '#/components/responses/ForbiddenErrorResponse'
'404':
$ref: '#/components/responses/NotFoundErrorResponse'
'422':
description: Returns a validation error when a field value is invalid.
headers: {}
content:
application/json:
schema:
$ref: '#/components/schemas/RecordNotFoundErrorResponse'
examples:
default:
value:
success: false
message: Expiration time can't be in the past
deprecated: false
/v1/short-links/metrics:
get:
tags:
- Link shortener
summary: List short link metrics
description: Returns per-click metrics for short links, including device, location, and campaign attribution, within the requested date range.
operationId: link_shortener_metrics_list
security:
- bearerAuth:
- campaigns:read
x-fern-sdk-group-name:
- linkShortener
- metrics
x-fern-sdk-method-name: list
x-mcp:
readOnly: true
destructive: false
openWorld: false
expose: true
toolset: messaging
parameters:
- name: from
in: query
description: Start of the date range to query, in `YYYY-MM-DD` format. Inclusive.
required: true
style: form
explode: true
schema:
type: string
format: date
example: '2023-05-01'
- name: to
in: query
description: End of the date range to query, in `YYYY-MM-DD` format. Inclusive.
required: true
style: form
explode: true
schema:
type: string
format: date
example: '2023-05-31'
- name: phone
in: query
description: Filters metrics by the phone number associated with the click, in E.164 format.
style: form
explode: true
schema:
type: string
example: '1872025555'
- name: utm_campaign
in: query
description: Filters metrics by `utm_campaign` name.
style: form
explode: true
schema:
type: string
example: summer
- name: page
in: query
description: Page number to retrieve. Default `1`.
style: form
explode: true
schema:
type: integer
format: int32
example: 1
- name: per_page
in: query
description: Number of records to return per page. Default `25`.
style: form
explode: true
schema:
type: integer
format: int32
example: 25
responses:
'200':
description: Returns a paginated list of short link metrics.
headers: {}
content:
application/json:
schema:
$ref: '#/components/schemas/ShortLinkMetricsResponse'
examples:
success:
summary: Successful response
value:
metrics:
- latitude: 59.3247
longitude: 18.056
operating_system: Mac OS X 10.15
browser: Firefox
language: English
phone: '12762025555'
utm_campaign: summer
created_at: '2023-07-19 18:23:42'
link_hash: hd82Jhs21
user_id: 100017
pagination:
current_page: 2
per_page: 25
total: 101
total_pages: 5
'400':
$ref: '#/components/responses/BadRequestErrorResponse'
'401':
$ref: '#/components/responses/UnauthorizedErrorResponse'
'403':
$ref: '#/components/responses/ForbiddenErrorResponse'
'404':
$ref: '#/components/responses/NotFoundErrorResponse'
deprecated: false
components:
responses:
BadRequestErrorResponse:
description: Request failed. Missing or invalid parameter <param_name>
headers: {}
content:
application/json:
schema:
$ref: '#/components/schemas/ValidationErrorResponse'
UnauthorizedErrorResponse:
description: Unauthorized
headers: {}
content:
application/json:
schema:
$ref: '#/components/schemas/UnauthorizedErrorResponse'
ForbiddenErrorResponse:
description: Request failed. The feature is disabled for your account.
headers: {}
content:
application/json:
schema:
$ref: '#/components/schemas/ForbiddenErrorResponse'
NotFoundErrorResponse:
description: Request failed. An object with the specified ID is not found.
headers: {}
content:
application/json:
schema:
$ref: '#/components/schemas/NotFoundErrorResponse'
schemas:
ShortLinkMetricsItem:
title: ShortLinkMetricsItem
required:
- latitude
- longitude
- operating_system
- browser
- language
- phone
- utm_campaign
- created_at
- user_id
- link_hash
type: object
additionalProperties: false
properties:
latitude:
type:
- number
- 'null'
description: "Latitude of the location derived from the IP address\n used to open the short link."
example: 59.3247
longitude:
type:
- number
- 'null'
description: "Longitude of the location derived from the IP address\n used to open the short link."
example: 18.056
operating_system:
type:
- string
- 'null'
description: Operating system of the device that opened the short link.
example: Mac OS X 10.15
browser:
type:
- string
- 'null'
description: Browser used to open the short link.
example: Firefox
language:
type:
- string
- 'null'
description: Browser language preference.
example: English
phone:
type:
- string
- 'null'
description: Phone number associated with the short link.
example: '12762025555'
utm_campaign:
type:
- string
- 'null'
description: UTM campaign name associated with the short link.
example: summer
created_at:
type: string
description: Date and time when short link was opened.
example: '2023-07-19 18:23:42'
link_hash:
type: string
description: Hash of the short link.
example: hd82Jhs21
user_id:
type: integer
description: Account ID.
example: 100017
ValidationErrorResponse:
title: ValidationErrorResponse
type: object
properties:
success:
type: boolean
description: Indicates whether the request was successful. Always `false` for this error.
example: false
message:
type: string
description: Human-readable description naming the missing or invalid request parameter.
example: Missing or invalid parameter <param_name>
ShortLinkMetricsResponse:
title: ShortLinkMetricsResponse
required:
- metrics
- pagination
type: object
additionalProperties: false
properties:
metrics:
type: array
items:
$ref: '#/components/schemas/ShortLinkMetricsItem'
description: List of short link metrics matching search criteria.
pagination:
$ref: '#/components/schemas/Pagination'
UnauthorizedErrorResponse:
title: UnauthorizedErrorResponse
type: object
properties:
success:
type: boolean
description: Indicates whether the request was successful. Always `false` for this error.
example: false
error:
type: boolean
description: Indicates that the response represents an error. Always `true` for this error.
example: true
message:
type: string
description: Human-readable description stating that authentication is missing or invalid.
example: Unauthorized
Pagination:
title: Pagination
required:
- current_page
- per_page
- total
- total_pages
type: object
additionalProperties: false
properties:
current_page:
type: integer
description: Current page number.
format: int32
example: 2
per_page:
type: integer
description: Number of records per page.
format: int32
example: 25
total:
type: integer
description: Total number of records.
format: int32
example: 101
total_pages:
type: integer
description: Total number of pages.
format: int32
example: 5
ShortLinkCreateRequest:
title: ShortLinkCreateRequest
required:
- link
type: object
additionalProperties: false
properties:
link:
type: string
format: uri
pattern: ^https://
description: Target URL to shorten. Must be `https://` — the short link is publicly resolvable and redirects any visitor here, so only pass URLs you trust; this endpoint is a common target for open-redirect and phishing abuse.
example: https://your-site.com/long-url
expiration_time:
type: string
format: date-time
description: Expiration date and time in ISO 8601 format.
example: '2023-07-19T18:18:34.235Z'
fallback_url:
type: string
format: uri
pattern: ^https://
description: Fallback URL for expired or invalid links. Must be `https://` — same open-redirect/phishing considerations as `link` apply.
example: https://examples.com/fallback
phone:
type: string
description: Phone number the short link is associated with, in E.164 format (without the leading `+`). Used to attribute click metrics returned by short link metrics list.
example: '15155982927'
utm_campaign:
type: string
description: UTM campaign name for tracking insights.
example: summer_promo
ShortLinkResponse:
title: ShortLinkResponse
required:
- short_link
type: object
additionalProperties: false
properties:
short_link:
type: string
description: Generated short URL.
example: https://wx.com/hd82Jhs21
RecordNotFoundErrorResponse:
title: RecordNotFoundErrorResponse
required:
- success
- message
type: object
properties:
success:
type: boolean
description: Indicates whether the request was successful. Always `false` for this error.
example: false
message:
type: string
description: Human-readable error description
example: Record not found
example:
success: false
message: Record not found
ForbiddenErrorResponse:
title: ForbiddenErrorResponse
type: object
properties:
success:
type: boolean
description: Indicates whether the request was successful. Always `false` for this error.
example: false
message:
type: string
description: Human-readable description of why access is forbidden.
example: The service is not provisioned for your account.
NotFoundErrorResponse:
title: NotFoundErrorResponse
type: object
properties:
success:
type: boolean
description: Indicates whether the request was successful. Always `false` for this error.
example: false
message:
type: string
description: Human-readable description stating that no resource matches the given ID.
example: Record not found
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: 'Wavix API key. Pass as `Authorization: Bearer <api_key>`. Keys support per-resource scopes (none / read / write). See [Restricted keys and scopes](https://docs.wavix.com/api-reference/authentication#restricted-keys-and-scopes).
'