KuikCodeDocs

Make a KuikCode for a link

POST
/links/{id}/code

Creates a KuikCode that opens the link. Its scans show on the link as QR scans, and it follows the link when the destination changes. Takes the same design, templateId and logo as POST /codes. Counts as one of the plan's codes.

Authorization

apiKey
AuthorizationBearer <token>

An API key from Settings, Developers: Authorization: Bearer kc_live_...

In: header

Path Parameters

id*string
Length1 <= length

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/links/string/code" \  -H "Content-Type: application/json" \  -d '{}'
{  "id": "string",  "shortCode": "string",  "name": "string",  "scanUrl": "string",  "destination": {    "type": "string",    "url": "string",    "pageId": "string",    "fallbackUrl": "string",    "rules": [      {        "name": "string",        "url": "http://example.com",        "conditions": [          {            "type": "time",            "operator": "before",            "value": "string",            "valueEnd": "string"          }        ],        "joins": [          "and"        ]      }    ],    "summary": "string"  },  "folderId": "string",  "tags": [    "string"  ],  "archived": true,  "hasAccessCode": true,  "previewUrl": "string",  "scans": 0,  "createdAt": "2019-08-24T14:15:22Z",  "updatedAt": "2019-08-24T14:15:22Z",  "design": {    "kind": "auto",    "archetype": "string",    "palette": [      "string"    ],    "scanVerified": true  },  "warnings": [    "string"  ]}