Codes weergeven
GET/v1/codes
Queryparameters
limitnumberoptioneelPaginagrootte, 1 tot 100. Standaard 25.cursorstringoptioneelnextCursor van de vorige pagina.folderIdstringoptioneelAlleen codes in deze map.typestringoptioneelSlechts één codetype, bijvoorbeeld url.statusstringoptioneelactive, paused, expired, scan_limit_reached of disabled.dynamicbooleanoptioneeltrue of false.searchstringoptioneelZoekt in de naam en de slug.sortstringoptioneelcreated_at, updated_at, name of scans; voorvoegsel - voor aflopend. Standaard -created_at.Voorbeeldverzoek
verzoekGET /v1/codes
curl "https://api.dotwick.com/v1/codes?folderId=fld_8k2m4q7x&status=active&limit=50" \ -H "Authorization: Bearer sk_live_…"antwoord200 OK
{ "data": [ { "id": "qr_8841ce2mxk", "workspaceId": "ws_8f21ac4e9d0b7c11", "name": "Van fleet – unit 14", "type": "url", "dynamic": true, "status": "active", "slug": "Xq7mK2p", "domainId": null, "shortUrl": "https://dotwick.co/Xq7mK2p", "content": { "type": "url", "url": "https://example.com/fleet/van-014" }, "design": { "pattern": "rounded", "eyes": { "frame": "circle", "ball": "circle" }, "colors": { "fg": "#18181B", "bg": "#FFFFFF" } }, "rules": { "routes": [], "expiresAt": null, "scanLimit": null, "inactiveUrl": null, "passwordProtected": false }, "folderId": "fld_8k2m4q7x", "templateId": null, "createdBy": "u8Hk2LmN0pQ4rS6tV8wX0yZ2aB4cD6eF", "createdAt": "2026-09-10T09:41:08.000Z", "updatedAt": "2026-09-10T09:41:08.000Z", "scans": 1284 } ], "nextCursor": "eyJ0IjoxNzU3NDk2ODY4fQ"}Meer pagina’s
Als nextCursor niet null is, geef hem als cursor mee om de volgende pagina te krijgen. Een sleutel die tot mappen is beperkt, ziet alleen codes daarin. Scantellingen kunnen enkele seconden achterlopen op de statistiek-endpoints.