---
title: "Create a deeplink"
method: POST
path: "/api/v1/deeplinks"
tags: ["Deeplinks"]
---

# Create a deeplink

`POST /api/v1/deeplinks`

Required scope: `deeplinks:write` </br>Organization authorization: `supported`

## Request body

- CreateDeeplink
  - `destinationType` 'link' | 'resource', required
  - `destination` union, required
    - object
      - `url` string, nullable — URL of the link
    - object
      - `resourceType` 'charge-point', nullable — Type of the resource
      - `resourceId` integer, nullable — ID of the resource
  - `comment` string, nullable — Optional comment for the deeplink
  - `operatorId` integer, nullable — The ID of the operator for whom the deeplink will be created. If not provided, operator ID will be derived from the used api credentials

## Response `201`

Deeplink created

- DeeplinkDto
  - `id` integer — Unique identifier of the deeplink
  - `destinationType` 'link' | 'resource', required
  - `destination` union
    - object
      - `url` string, nullable — URL of the link
    - object
      - `resourceType` 'charge-point', nullable — Type of the resource
      - `resourceId` integer, nullable — ID of the resource
  - `comment` string, nullable — Optional comment for the deeplink
  - `visits` integer — Number of visits to this deeplink
  - `operatorId` integer — ID of the operator who created the deeplink
  - `qrCodeUrl` string, nullable — URL to the QR code image
  - `appUrl` string, nullable — Optional URL for the mobile app
  - `createdAt` string, required — Creation timestamp
  - `updatedAt` string, required — Last update timestamp
  - `deletedAt` string, nullable — Deletion timestamp, if deleted

## Other responses

- `400` — The request is invalid
- `401` — Consumer with provided credentials was not found
- `403` — Operator doesn't have access to resource
- `404` — Entity with the provided id was not found

---

[API](https://skmtc.net/monta/apis/monta-partner-api.md) · [All operations](https://skmtc.net/monta/apis/monta-partner-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/monta/monta-partner-api/versions/517e18f11015/schema)
