Skip to content

Endpoints

https://clip.smll.app/api

POST /documents

Code

Request Body
{
"type": "code",
"theme": AvailableThemes,
"language": AvailableLanguages,
"content": string
}
AvailableThemes
  • vs
  • vs-dark
  • hc-black
  • active4d
  • all-hallows-eve
  • amy
  • birds-of-paradise
  • blackboard
  • brilliance-black
  • brilliance-dull
  • chrome-devtools
  • clouds-midnight
  • clouds
  • cobalt
  • cobalt2
  • dawn
  • dracula
  • dreamweaver
  • eiffel
  • espresso-libre
  • github-dark
  • github-light
  • github
  • idle
  • katzenmilch
  • kuroir-theme
  • lazy
  • magicwb-amiga
  • merbivore-soft
  • merbivore
  • monokai-bright
  • monokai
  • night-owl
  • nord
  • oceanic-next
  • pastels-on-dark
  • slush-and-poppies
  • solarized-dark
  • solarized-light
  • spacecadet
  • sunburst
  • dominion-day
  • textmate-mac-classic
  • tomorrow-night-blue
  • tomorrow-night-bright
  • tomorrow-night-eighties
  • tomorrow-night
  • tomorrow
  • twilight
  • upstream-sunburst
  • vibrant-ink
  • xcode-default
  • zenburnesque
  • iplastic
  • idlefingers
  • krtheme
  • monoindustrial
AvailableLanguages
  • abap
  • apex
  • azcli
  • bat
  • bicep
  • cameligo
  • clojure
  • coffeescript
  • c
  • cpp
  • csharp
  • csp
  • css
  • cypher
  • dart
  • dockerfile
  • ecl
  • elixir
  • flow9
  • freemarker2
  • fsharp
  • go
  • graphql
  • handlebars
  • hcl
  • html
  • ini
  • java
  • javascript
  • json
  • julia
  • kotlin
  • less
  • lexon
  • liquid
  • lua
  • m3
  • markdown
  • mdx
  • mips
  • msdax
  • mysql
  • objective-c
  • pascal
  • pascaligo
  • perl
  • pgsql
  • php
  • pla
  • postiats
  • powerquery
  • powershell
  • proto
  • pug
  • python
  • qsharp
  • r
  • razor
  • redis
  • redshift
  • restructuredtext
  • ruby
  • rust
  • sb
  • scala
  • scheme
  • scss
  • shell
  • sol
  • aes
  • sparql
  • sql
  • st
  • swift
  • systemverilog
  • verilog
  • tcl
  • twig
  • typescript
  • vb
  • wgsl
  • xml
  • yaml
  • ada
  • cobol
  • d
  • dart
  • elixir
  • erlang
  • fortran
  • groovy
  • haskell
  • julia
  • ocaml
  • octave
  • racket
  • sbcl
  • scala

Document

Request Body
{
"type": "document",
"content": string
}

Response Body

{
"url": string
}

Example

{
"url": "https://clip.smll.app/-oCqb"
}

GET /documents/<code>

Response
Code
{
"type": "code",
"theme": AvailableThemes,
"language": AvailableLanguages,
"content": string
}
Document
{
"type": "document",
"content": string
}