KuikCodeDocs
APIReferenceCodes

Create many codes

POST
/codes/bulk

Up to the plan's batch size per call (see limits.bulkBatch on GET /me), all into one folder, all or nothing. Send csv to import a file as the dashboard would; dryRun: true returns a preview with a previewHash to confirm with. Ten batches per ten minutes per key; dry runs are free.

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

application/json

application/json

curl -X POST "https://example.com/codes/bulk" \  -H "Content-Type: application/json" \  -d '{}'
{  "preview": true,  "kind": "website",  "rows": 0,  "sample": [    {      "name": "string",      "url": "string"    }  ],  "errors": [    "string"  ],  "quota": {    "limit": 0,    "used": 0,    "remaining": 0,    "fits": true  },  "batchLimit": 0,  "over": 0,  "design": {    "kind": "auto"  },  "previewHash": "string"}