Skip to content

Create a snippet

POST
/snippets

Creates v.01 and returns the snippet including its public_url — the same
"save & copy link" gesture the UI performs. Send Idempotency-Key to make
retries safe.

Authorizations

bearer
Type
HTTP (bearer)

Request Body

application/json
JSON
{
  
"type": "string",
  
"name": "string",
  
"body": "string",
  
"category": "string",
  
"tags": [
  
  
"string"
  
],
  
"visibility": "team"
}

Responses

Created.

application/json
JSON
{
  
"id": "snp_7c4b2e09",
  
"org_id": "org_8f3a",
  
"type": "string",
  
"name": "Refund eligibility check — last 90 days",
  
"slug": "refund-eligibility-90d",
  
"category": "SQL queries / Reporting",
  
"tags": [
  
  
[
  
  
  
"stripe",
  
  
  
"refunds"
  
  
]
  
],
  
"visibility": "string",
  
"version": 7,
  
"public_url": "https://qd.sk/s/refund-eligibility-90d",
  
"body": "string",
  
"updated_at": "string"
}

Playground

Authorization
Body

Samples

Powered by VitePress OpenAPI

One vocabulary, every door.