KuikCodeDocs

Create many links

POST
/links/bulk

Up to the plan's batch size per call (limits.bulkBatch on GET /me), all or nothing. Every row is checked first; problems answer 400 with each row's line (its position in links, starting at 1). dryRun only checks.

Authorization

apiKey
AuthorizationBearer <token>

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

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/links/bulk" \  -H "Content-Type: application/json" \  -d '{    "links": [      {        "url": "string"      }    ]  }'
{  "created": 0,  "held": 0,  "links": [    {      "id": "string",      "name": "string",      "shortUrl": "string",      "url": "string",      "state": "string"    }  ]}