API Documentation
Up-to-date API Documentation of 0CodeKit.
Last updated
Was this helpful?
Up-to-date API Documentation of 0CodeKit.
Last updated
Was this helpful?
This document is no longer maintained. Please, use this URL to visit our up-to-date OpenAPI documentation.
https://prod.0codekit.com
Include a key:value pair in the header of the request, where the key is auth
and the value your API key that can be obtained in your 0CodeKit account portal.
For example: auth:a4c3dcc5-8e41-4cad-bd5f-c24086baba00
Note on the Asynchronous Python Code Executor Pricing
The cost of the asynchronous Python code executor is proportional to that of the regular synchronous Python executor. The key difference is that the asynchronous endpoint allows your code to run up to 5 times longer, with a maximum total runtime of 15 minutes.
Charges are applied every 3 minutes, which is the standard execution time increment for the synchronous Python executor.
You are charged for each 3-minute interval (or part thereof) that your code runs asynchronously.
Merges a video file and an audio file into a single video file, optionally applying various customizations like trimming, fading, and more.
/operator/merge-video-audio
The URL of the video file.
https://example.com/video.mp4
The URL of the audio file.
https://example.com/audio.mp3
The name of the merged video.
Factur-X/Zugferd is a standard for digital invoices. The data is encoded into an XML, which is attached to a human-readable PDF file. This endpoint checks that the given PDF has an attached XML invoice, and validates it according to the Factur-X/Zugferd specification (level EN16931). It also returns the XML invoice for further processing.
/business/facturx/validate
The API key that can be retrieved from 0codekit.com.
The PDF URL.
The PDF as a Base64-encoded buffer. Can be specified instead of url
.
Factur-X/Zugferd is a standard for digital invoices. The data is encoded into an XML, which is attached to a human-readable PDF file. This endpoint embeds an existing XML invoice into a PDF file which is not yet a Factur-X/Zugferd invoice. It also validates that the XML is valid. To create a valid Factur-X/Zugferd invoice, the user has to guarantee that the provided PDF is in PDF/A format.
/business/facturx/embed
The API key that can be found on 0codekit.com.
The PDF URL.
The Base64-encoded PDF file. Can be specified instead of url
.
The Factur-X/Zugferd XML invoice that shall be embedded.
Whether the PDF should be returned as a URL. Default is false
.
The PDF file name. Default is a random ID.
This function takes a text input, a context for added relevance, and a list of fields with their descriptions. It leverages an LLM to extract the specified information from the text and organizes it into a structured object.
/ai/extract-from-text
The text in which the information will be searched.
Greetings! I am Zog, an alien from planet Blip, 142 years old, and a passionate collector of cosmic dust.
Prompt that contextualizes the text
.
A brief self-introduction from an alien applying for an intergalactic research role.
No body
This function takes a query string and a list of target strings. It uses an LLM to find the best match(es), accounting for variations in the query string, and returns the closest match(es) based on the options provided.
/ai/fuzzy-match
The main string you want to match against the target list. Typically, this is the name or entity you are searching for.
Alf from Melmac
A short description of the type of data being matched. This helps provide additional clarity for the AI in determining the best match.
Names of people
The list of potential matches. Each entry in this list represents a possible candidate for matching with the query string.
["Willie Tanner","Gordon Shumway","Kate Tanner","Trevor Ochmonek"]
/ai/redact-pdf
The PDF URL.
The PDF as a Base64-encoded buffer. Can be specified instead of url
.
A text prompt describing which data from the document should be covered.
All people names and addresses should be considered sensitive data.
The file name the result PDF will have. Default is a random ID.
Whether the result PDF should be returned as a URL. Default is false.
true
The language of the document in ISO 639-1 nomenclature. Default is 'en' (English).
de
No body
Extracts text and specific data from documents, supporting OCR and specialized workflows.
/ai/advancedocr
The API key that can be retrieved from 0codekit.com.
The URL to the document.
https://icseindia.org/document/sample.pdf
The Base64-encoded buffer. Can be provided instead of url
.
A workflow outlines steps for processing documents, including analysis, extraction, and transformation. It uses unique identifiers to track and retrieve results for each document.
The language of the uploaded document.
The type of the uploaded document.
Result type specifies the output type.
ocr
, extractions
A simple way to implement rate limiting by checking whether a new request is allowed now.
/operator/trafficlight
An arbitrary name for this traffic light.
The minimum time that must pass after one request was allowed.
Check if the content is appropriate for all audiences.
/ai/detectadultcontent
The API key that can be retrieved from 0codekit.com
The URL of the image to be checked.
https://example.com/image.jpg
Detects text in an image using the Azure Computer Vision API.
/ai/picturetextrecognition
The API key that can be retrieved from 0codekit.com.
The URL of the image to analyze.
https://example.com/image.jpg
Remove background from image url or buffer.
/ai/removebg
The API key that can be retrieved from 0codekit.com
Generate python code based on provided prompt.
/ai/generatepythoncode
The API key that can be retrieved from 0codekit.com
Prompt to generate python code.
Creates a summary of the given text.
/ai/toolongtoread
The API key that can be retrieved from 0codekit.com
The text to be summarized.
Once upon a time, in a far away land, there lived a young girl who was full of dreams and aspirations. She was passionate about exploring the world and discovering all its secrets. She wanted to see the wonders of the world, to meet new people, to learn new things, and to experience life in all its glory. As a young girl, she often thought of what it would be like to journey to exotic places, to explore the unknown and to find her place in the world. She wanted to be free to make her own decisions, to choose her own destiny, and to be independent. ne day, she decided she was ready to embark on her quest. She packed her bags, said goodbye to her family, and set off on her travels. She went to places she had only dreamed of, and experienced things she had never imagined. She met people from all walks of life, made new friends, and experienced new cultures. She explored the great outdoors and embraced nature in all its beauty. She tried new foods, and found her favorite cuisines. Through it all, she found her own path and discovered her true purpose in life.
Transcribe an audio file to text. This supports the following file types: flac
, m4a
, mp3
, mp4
, mpeg
, mpga
, oga
, ogg
, wav
, webm
. The maximum file size is 25MB.
/ai/transcribe
The API key that can be retrieved from 0codekit.com
The URL to the audio file.
https://www.pacdv.com/sounds/voices/am-i-totally-screwed-or.wav
The Base64-encoded audio file. Can be provided instead of url
.
The audio language. Default is en
.
en
Detects labels in an image using the Google Vision API.
/ai/pictureobjectrecognition
The API key that can be retrieved from 0codekit.com
The URL of the image to analyze.
https://example.com/image.jpg
Generate an image based on prompt.
/ai/generateimage
The API key that can be retrieved from 0codekit.com
Prompt to generate image.
Number of output image's to be generated.
256x256
, 512x512
, 1024x1024
, 1024x1024
, 1792x1024
, 1024x1792
Extract contact information from given prompt.
/ai/extractcontactinformation
The API key that can be retrieved from 0codekit.com
Prompt for contact info extraction.
Generate javascript code based on provided prompt.
/ai/generatejavascriptcode
The API key that can be retrieved from 0codekit.com
Prompt to generate javascript code.
Detect email type from provided subject and body.ß
/ai/detectemailtype
The API key that can be retrieved from 0codekit.com
Subject of email.
Body of email.
Check if the content is appropriate to be posted on the internet.
/ai/checkcontentpolicy
The API key that can be retrieved from 0codekit.com
The text containing the content to be checked.
Hello world!
Translates the provided text into the specified target language using Google Translate API.
/ai/translate
The API key that can be retrieved from 0codekit.com
The text to be translated.
Hello, world!
The target language code to translate the text into.
es
/crypto/hash
The API key that can be retrieved from 0codekit.com
MD5
, SHA1
, SHA224
, SHA256
, SHA3
, SHA384
, SHA512
, RIPEMD160
, HmacMD5
, HmacSHA1
, HmacSHA224
, HmacSHA256
, HmacSHA3
, HmacSHA384
, HmacSHA512
, HmacRIPEMD160
/crypto/decrypt
The API key that can be retrieved from 0codekit.com
The ciphertext.
The encryption key.
AES
, DES
, TripleDES
, Rabbit
, RC4
, RC4Drop
/crypto/encrypt
The API key that can be retrieved from 0codekit.com
The plaintext.
The encryption key.
AES
, DES
, TripleDES
, Rabbit
, RC4
, RC4Drop
Returns the distance between a start and end point. The distance is calculated using a specific mode of travel, which can influence the route taken and is also used to estimate the amount of time it takes to travel.
/calculate/geodistance-v2
The API key that can be retrieved from 0codekit.com
The start point.
Flensburg
The end point.
Istanbul
The mode of travel.
walking
driving
, walking
, bicycling
, transit
Uses the height and weight of a person to calculate their BMI as well as several other related values, including their recommended nutrients.
/calculate/bmi
The API key that can be retrieved from 0codekit.com
The weight in kilograms.
80
The height in centimeters.
180
/operator/gender
The API key that can be retrieved from 0codekit.com
The first name.
The full name. The first name is only used if firstname
is not provided.
/operator/thumbnail
The API key that can be retrieved from 0codekit.com
^(https?:\/\/)?([\w-]+\.)+[\w-]+(\/[\w-./?%&=]*)?$
No body
Split a full name into its first and last name.
/operator/splitname
The API key that can be retrieved from 0codekit.com
The full name that will be split.
Whether first and last name should be reversed. Might be useful in languages where the last name comes first, e.g. Chinese.
Takes a nation name or a nation ISO code and outputs the corresponding nation name and ISO code.
/convert/nationiso
The API key that can be retrieved from 0codekit.com
The ISO code of the nation.
The English name of the nation.
/convert/currency
The API key that can be retrieved from 0codekit.com
/convert/csv/json
The API key that can be retrieved from 0codekit.com
The CSV string that will be converted.
If this is false, the first line will be interpreted as column names instead of data. Default is false.
Whether spaces around column values should be trimmed. Default is true.
Whether empty column values should be ignored, instead of being output as empty. Default is false.
The delimiter between the different columns. Can be auto
for automatic detection of delimiters, or an array of delimiters. Default is auto
.
/convert/csv/array
The API key that can be retrieved from 0codekit.com
The CSV string that will be parsed.
Whether to omit the first row. Default is false.
The delimiter by which the rows will be split.
Looks up the VAT rate for the specified country in the European Union.
/business/lookupvatrates
The API key that can be retrieved from 0codekit.com
The ISO 3166-1 alpha-2 code of the country.
Checks whether the email address is from a free email provider.
/business/isfreemail
The API key that can be retrieved from 0codekit.com
The email address that should be checked.
pa1928sch@hotmail.com
This endpoint takes an address or coordinates, and checks whether it is valid.
/business/validate/geolocation
The API key that can be retrieved from 0codekit.com
The location. Can be an address or coordinates.
Bavaria Donau 11, Passau
Checks whether the phone number is valid.
/business/validate/phonenumber
The API key that can be retrieved from 0codekit.com
The phone number to validate.
(+81) 090-1234-5678
Short abbreviation of a country.
JP
Checks whether the provided IBAN (International Bank Account Number) is valid.
/business/validate/iban
The API key that can be retrieved from 0codekit.com
The IBAN
DE02120300000000202051
Checks whether the provided VAT (Valued Added Tax) ID is valid using a service provided by VIES, If available, this also returns the associated name and address
/business/validate/vat
The API key that can be retrieved from 0codekit.com
The VAT ID. Must start with a two-digit country code.
DE123456789
The number part of the VAT ID.
07643520567
The country code of the VAT ID.
IT
AT
, BE
, BG
, HR
, CY
, CZ
, DK
, EE
, FI
, FR
, DE
, EL
, HU
, IE
, IT
, LV
, LT
, LU
, MT
, NL
, PL
, PT
, RO
, SK
, SI
, ES
, SE
, XI
Verifies a domain by performing an HTTP GET request against it.
/business/verify/domain
The API key that can be retrieved from 0codekit.com
The domain name.
https://www.google.com
Uploads a file buffer to temporary storage and provides a URL. The file is deleted after 24 hours.
/storage/temp
The API key that can be retrieved from 0codekit.com
The file name. Default is a random string.
my-file.txt
The Base64-encoded file buffer.
A global variable can only be deleted by the user that created it.
/storage/globalvariables/del
The API key that can be retrieved from 0codekit.com
The variable name.
myVariable
Changes the value of the given global variable to the new value.
/storage/globalvariables/update
The API key that can be retrieved from 0codekit.com
The name of the variable to update.
myVariable
The new value of the variable.
myValue
The user can only access a global variable that they created themselves.
/storage/globalvariables/get
The API key that can be retrieved from 0codekit.com
The name of the variable to get.
myVariable
The global variable is only visible for the user that created it. If variableName
is not provided, it is generated automatically.
/storage/globalvariables/add
The API key that can be retrieved from 0codekit.com
The name of the variable to create. Default is auto-generated.
myVariable
The value to assign to the variable.
myValue
Replaces the data in the JSON bin with the new data.
/storage/json/put
The API key that can be retrieved from 0codekit.com
The JSON data to put into the bin.
The ID of the JSON bin that will be modified.
This endpoint can be used to return varied calendar-week information according to the data passed in the request.
/dateandtime/calendarweek
The API key that can be retrieved from 0codekit.com
The date parameter provides the week number of the year relative to the date, along with the starting and ending week.
20.01.2022
The weekNumber parameter provides the workingDate of that week, along with the starting and ending day of the week.
5
The year parameter provides year of the given weekNumber.
2023
The date in unixTimestamp format.
1642918727
Format of provided date.
DD.MM.YYYY
Format of the output date
DD.MM.YYYY
Determine if a given date is a weekend, retrieve the day number, and get the weekday.
/dateandtime/isweekend
The API key that can be retrieved from 0codekit.com
The date for which information is requested.
The format of the input date.
The timezone
Converts a date and time from one timezone to another.
/dateandtime/switchtimezone
The API key that can be retrieved from 0codekit.com
The timezone of the input time.
Europe/Berlin
The format of the output time.
The timezone of the output time.
The time that will be converted.
08-12-2024 12:00
This API retrieve a list of holidays for a specific year, country code, and optionally state.
/dateandtime/holidays
The API key that can be retrieved from 0codekit.com
The year for which holidays are requested.
2022
The ISO 3166-1 alpha-2 country code.
AT
The state within the country (if applicable).
This API calculates month, year, start date, end date, and weekdays within a specified duration from a given start date.
/dateandtime/detailperiod
The API key that can be retrieved from 0codekit.com
Starting date.
2023-06-07
Duration of days for which the detail period is retrieved.
41
This retrieves all workdays, saturdays, sundays, and days in the month based on the month, year, and date provided.
/dateandtime/month
The API key that can be retrieved from 0codekit.com
Date parameter
Format of the input date
Number of the month.
Year
Format of the output date
/generate/number
The API key that can be retrieved from 0codekit.com
The number of decimal places the generated number has. This is only used if type
is decimal
or float
.
The type of generated number. Default is integer
.
decimal
, float
, integer
The range of the generated number.
Generate random string based on type and length.
/generate/string
The API key that can be retrieved from 0codekit.com
Type of randomness. Specifies the character set to use when generating the random string. The available types are:
Type of randomness. Specifies the character set to use when generating the random string.
1
, 2
, 3
, 4
, 5
, 6
, 7
, 8
An array of custom characters to use for generating the random string. Required if type is set to 8.
/generate/color
The API key that can be retrieved from 0codekit.com
A decimal between 0 and 1 that specifies the value of the alpha channel. This is only relevant when using a format with an alpha channel. Default is a random value.
The luminosity of the generated color. Default is random.
bright
, light
, dark
The format of the returned color. These are the possible formats:
rgb
: rgb(0, 0, 0)
rgba
: rgba(0, 0, 0, 0)
hsl
: hsl(0, 0%, 0%)
hsla
: hsla(0, 0%, 0%, 0)
hex
: #000000
Default is hex
.
rgb
, rgba
, hsl
, hsla
, hex
A number or string that is used as a seed for the random number generator. By default, no seed is used.
The hue of the generated color. Default is random.
/generate/mockdata/user
The API key that can be retrieved from 0codekit.com
The amount of users to generate. Default is 1.
/generate/jsonwebtoken/decode
The API key that can be retrieved from 0codekit.com
Whether to verify the JWT. This requires secret
. Default is false
.
The HMAC secret or PEM-encoded public key.
No body
Returns a QR code as a PNG image, styled using the provided settings.
/generate/qrcode/encode
The API key that can be retrieved from 0codekit.com
The data that should be encoded
https://wemakefuture.com
The width of the QR code in pixels. Default is 500.
500
The height of the QR code in pixels. Default is 500.
500
The URL of the image that should be put in the middle. By default, no image is used. The image covers up part of the QR code, which can only be recovered using error correction.
https://pbs.twimg.com/profile_images/1325818753842618384/I9aD7jAt_400x400.jpg
The size of the space between the QR code and the border of the image in pixels. Default is 15.
15
Options for the image in the center of the QR code.
Options for the QR code data.
Options for the dots that make up most of the QR code.
Options for the corner squares. This does not influence the smaller dots inside the corner squares.
Options for the corner dots. This does not influence the square border around the corner dots.
Decodes a QR code from a URL or buffer and returns the encoded data. The supported file formats are jpg
, png
, bmp
, tiff
, gif
.
/generate/qrcode/decode
The API key that can be retrieved from 0codekit.com
The URL to the QR code.
The QR code as a Base64-encoded buffer. Can be used instead of url
.
/generate/barcode/decode
The API key that can be retrieved from 0codekit.com
The barcode format.
code-128
, code-2of5
, code-39
, code-93
, ean-13
, ean-8
, coabar
/generate/barcode/encode
The API key that can be retrieved from 0codekit.com
Whether to get as URL or buffer. Default is buffer.
The generated file type. Default is svg
.
svg
, png
, jpeg
No body
Evaluates a given text against a provided regular expression and returns the matches.
/text/regex
The API key that can be retrieved from 0codekit.com
The text to be evaluated.
The quick brown fox jumps over the lazy dog.
The regular expression to evaluate against the text.
\b\w{4}\b
Searches text for keywords and returns their positions.
/text/contains
The API key that can be retrieved from 0codekit.com
Text from which you want to find keywords.
Single keyword.
Multiple keywords.
Calculate similarity score between two strings
/text/comparestring
The API key that can be retrieved from 0codekit.com
First String.
Second String.
Similarity algorithm.
Extracts text from body between given start and end markers
/text/extractor
The API key that can be retrieved from 0codekit.com
Start marker.
End marker.
Body from which to extract the text
When true, It include start and end marker in result.
When true, It make the body case sensitive.
When true, Return error if markers not found.
/python
The API key that can be retrieved from 0codekit.com.
The Python code that will be executed.
The PyPI libraries your Python code requires. For backwards compatibility, this can be left empty, and your dependencies will be discovered automatically. Please do not use this and specify your requirements explicitly, as the automatic discovery is inaccurate and unreliable, and its only purpose is to prevent old code from breaking.
Execute a Python script and return immediately. The response is sent to a webhook.
/async-python
The API key that can be retrieved from 0codekit.com.
The Python script that will be executed.
The URL of the webhook the response will be sent to.
The PyPI libraries your Python code requires.
This endpoint generates a bar chart image based on the provided data, labels, and customization options.
/chart/bars
If true, returns a URL instead of the chart image.
Width of the chart image.
Height of the chart image.
Background color of the chart image.
Width of the borders around the bars.
Title of the chart.
Optional filename for the generated chart image.
Additional configuration options for Chart.js.
Data points for the bar chart.
Labels corresponding to the data points.
Colors for the borders of the bars.
Colors for the bars in the chart.
No body
This endpoint generates a doughnut chart image based on the provided data, labels, and customization options.
/chart/doughnut
If true, returns a URL instead of the chart image.
Width of the chart image.
Height of the chart image.
Background color of the chart image.
Width of the borders around the doughnut.
Title of the chart.
Optional filename for the generated chart image.
Additional configuration options for Chart.js.
Data points for the doughnut chart.
Labels corresponding to the data points.
Colors for the borders of the doughnut.
Colors for the doughnut in the chart.
No body
This endpoint generates a line chart image based on the provided data, labels, and customization options.
/chart/line
If true, returns a URL instead of the chart image.
Width of the chart image.
Height of the chart image.
Background color of the chart image.
Fill the color under the line.
Tension of the line.
Width of the borders around the line.
Title of the chart.
Optional filename for the generated chart image.
Additional configuration options for Chart.js.
Data points for the line chart.
Labels corresponding to the data points.
Colors for the borders of the line.
Colors for the line in the chart.
No body
/image/blur
The image URL
The image as a Base64-encoded buffer. Can be specified instead of url
.
How strongly the image will be blurred.
Whether the result image should be returned as a URL. Default is false
.
The file name of the result image. Default is a random ID.
No body
/image/convert
The image URL
The image as a Base64-encoded buffer. Can be specified instead of url
.
Whether the image metadata should be converted, too.
Whether the result image should be returned as a URL. Default is false
.
The file name of the result image. Default is a random ID.
The output format of the conversion.
jpeg
, jpg
, png
, gif
, tiff
, webp
No body
/image/crop
The image URL
The image as a Base64-encoded buffer. Can be specified instead of url
.
Whether the result image should be returned as a URL. Default is false
.
The file name of the result image. Default is a random ID.
No body
/image/flip
The image URL
The image as a Base64-encoded buffer. Can be specified instead of url
.
Whether the result image should be returned as a URL. Default is false
.
The file name of the result image. Default is a random ID.
The axis the image will be flipped about.
X
, x
, Y
, y
No body
/image/html
The image URL
The HTML source. Can be specified instead of url
.
Whether the result image should be returned as a URL. Default is false
.
The file name of the result image. Default is a random ID.
No body
/image/overlay
The URL of the front image.
The URL of the background image.
Whether to return the result as a buffer or a URL. Default is buffer.
A custom file name. If this is not set, a randomly generated is used instead.
The position of the front image on the back image. This overrides options.horizontalPosition
and options.verticalPosition
.
center
, top-left
, top-right
, bottom-left
, bottom-right
No body
/image/rotate
The image URL
The image as a Base64-encoded buffer. Can be specified instead of url
.
The clockwise rotation.
The color of the space that is not occupied by the image after the rotation. Only used if angle
is not a multiple of 90 degrees. Default is #000000
.
#000000
Whether the result image should be returned as a URL. Default is false
.
The file name of the result image. Default is a random ID.
No body
/image/sharpen
The image URL
The image as a Base64-encoded buffer. Can be specified instead of url
.
How strongly the image will be sharpened.
Whether the result image should be returned as a URL. Default is false
.
The file name of the result image. Default is a random ID.
No body
/pdf/draw/image
The PDF URL.
The PDF as a Base64-encoded buffer. Can be specified instead of url
.
Whether the result PDF should be returned as a URL. Default is false.
true
The URL of the image to draw.
T?he image as a Base64-encoded buffer. Can be specified instead of imageUrl
.
The horizontal offset in points relative to the anchor. Default is 0.
0
The vertical offset in points relative to the anchor. Default is 0.
0
The width of the image in points. This or height
has to be provided. If only width
is provided, height
is calculated automatically.
200
The height of the image in points. This or width
has to be provided. If only height
is provided, width
is calculated automatically.
100
The counter-clockwise rotation of the image in degrees. Default is 0.
45
The pages the image should be drawn onto. Given as a range of pages, where 1 means the first page and ^1 means the last page.
The file name the result PDF will have. Default is a random ID.
The part of the page on which the image should be drawn. Default is center
.
center
bottom-left
, bottom
, bottom-right
, left
, center
, right
, top-left
, top
, top-right
The part of the image that should be aligned with the specified position. Default is the value of anchor
.
center
bottom-left
, bottom
, bottom-right
, left
, center
, right
, top-left
, top
, top-right
/pdf/draw/text
The PDF URL.
The PDF as a Base64-encoded buffer. Can be specified instead of url
.
Whether the result PDF should be returned as a URL. Default is false.
true
The text to draw.
Hello, world!
The horizontal offset in points relative to the anchor. Default is 0.
0
The vertical offset in points relative to the anchor. Default is 0.
0
The counter-clockwise rotation of the text in degrees. Default is 0.
45
The font size in points. Default is 32.
32
The font color as a six-digit hexcode, i.e. RRGGBB. Default is 000000, i.e. black.
FFFF00
The pages the text should be drawn onto. Given as a range of pages, where 1 means the first page and ^1 means the last page.
1,3-5,^3-^1
The file name the result PDF will have. Default is a random ID.
The font to use. Default is Helvetica.
Helvetica
Helvetica
, Courier
, TimesRoman
The part of the page on which the text should be drawn. Default is center
.
center
bottom-left
, bottom
, bottom-right
, left
, center
, right
, top-left
, top
, top-right
The part of the text that should be aligned with the specified position. Default is the value of anchor
.
center
bottom-left
, bottom
, bottom-right
, left
, center
, right
, top-left
, top
, top-right
No body
/pdf/metadata/edit
The PDF URL.
The PDF as a Base64-encoded buffer. Can be specified instead of url
.
Whether the result PDF should be returned as a URL. Default is false
.
true
The new title of the PDF.
The new author of the PDF.
The new subject of the PDF.
The file name of the result PDF. Default is a random ID.
The new keywords of the PDF.
No body
/pdf/pages/add
The PDF URL.
The PDF as a Base64-encoded buffer. Can be specified instead of url
.
Whether the result PDF should be returned as a URL. Default is false
.
true
The width of the pages to add. Default is the width of the first page.
595
The height of the pages to add. Default is the height of the first page.
842
The file name of the result PDF. Default is a random ID.
The positions of the pages that should be added. Every number represents one page, and is the page number after which the new page should be added, e.g. 0 means inserting at the very beginning, while 10 means inserting after the 10th page.
No body
/pdf/pages/remove
The PDF URL.
The PDF as a Base64-encoded buffer. Can be specified instead of url
.
Whether the result PDF should be returned as a URL. Default is false
.
true
The pages that should be removed from the PDF. Given as a range of pages, where 1 means the first page and ^1 means the last page.
1,3-5,^3-^1
The file name of the result PDF. Default is a random ID.
No body
/pdf/pages/resize
The PDF URL.
The PDF as a Base64-encoded buffer. Can be specified instead of url
.
Whether the result PDF should be returned as a URL. Default is false
.
true
The new width in points.
The new height in points.
The pages that should be resized. Given as a range of pages, where 1 means the first page and ^1 means the last page.
1,3-5,^3-^1
The file name of the result PDF. Default is a random ID.
No body
/pdf/pages/rotate
The PDF URL.
The PDF as a Base64-encoded buffer. Can be specified instead of url
.
Whether the result PDF should be returned as a URL. Default is false
.
true
Clockwise rotation of the pages in degrees. Must be a multiple of 90.
90
The pages that will be rotated. Given as a range of pages, where 1 means the first page and ^1 means the last page.
1,3-5,^3-^1
The file name of the result PDF. Default is a random ID.
No body
/pdf/decrypt
The PDF URL.
The PDF as a Base64-encoded buffer. Can be specified instead of url
.
Whether the result PDF should be returned as a URL. Default is false
.
true
The password used to decrypt the PDF. Can be either the user or the owner password.
No body
/pdf/create
Whether the result PDF should be returned as a URL. Default is false
.
true
The number of pages the new PDF should have. Must be at least 1. Default is 1.
10
The width of the pages in points. Default is 595.
595
The height of the pages in points. Default is 842.
842
The file name the result PDF will have. Default is a random ID.
No body
/pdf/docx-to-pdf
The DOCX URL.
The DOCX as a Base64-encoded buffer. Can be specified instead of url
.
Whether the result PDF should be returned as a URL. Default is false
.
true
The file name of the result PDF. Default is a random ID.
No body
/pdf/encrypt
The PDF URL.
The PDF as a Base64-encoded buffer. Can be specified instead of url
.
Whether the result PDF should be returned as a URL. Default is false
.
true
The user password.
The owner password. Default is the user password.
No body
WARNING: This endpoint is deprecated. Please use /pdf/metadata/info
instead.
/pdf/getinfometadata
The PDF URL or Base64-encoded buffer.
The PDF file name. Default is a random ID.
/pdf/html
The URL of the website.
The HTML source. Can be specified instead of url
Whether the result PDF should be returned as a URL. Default is false
.
true
The PDF file name. Default is a random ID.
No body
/pdf/markdownstringtopdf
The Markdown source that will be converted to a PDF.
Custom CSS to change the Markdown look.
Whether the result PDF should be returned as a URL. Default is false
.
true
The PDF file name. Default is a random ID.
No body
/pdf/merge
Whether the result PDF should be returned as a URL. Default is false
.
true
The file name the result PDF will have. Default is a random ID.
No body
/pdf/pdf-to-image
The PDF URL.
The PDF as a Base64-encoded buffer. Can be specified instead of url
.
The file name prefix of the result images. Default is a random ID.
/pdf/split
The PDF URL.
The PDF as a Base64-encoded buffer. Can be specified instead of url
.
The number of pages that should be contained in every split PDF file. Can be specified instead of pages
.
The file name prefix the result PDFs will have. Default is a random ID.
The page ranges that should be contained in the new PDF files. Every subdocument is given as a comma-separated range of pages, where 1 means the first page and ^1 means the last page.
/add
The destination URL which the shortened URL will point to.
https://0codekit.com
The shortened URL identifier. This is the part that comes after lyl.ai
, and which is used for managing the shortened URL. It must be globally unique. Default is a random 8 letter string.
to4w5vyb
The type of scheduler that will be set up. The different options are:
1
: One time execution. intervalOptions
must be a unix timestamp or ISO 8601 date.2
: Multiple specific executions. intervalOptions
must be an array of unix timestamps or ISO 8601 dates.3
: Cron job. intervalOptions
must be a cron string.4
: Regular execution every n hours / days / weeks / months. intervalOptions
must be a string of the format period;n
.1
, 2
, 3
, 4
/put
The shortened URL identifier that was returned by /add
.
to4w5vyb
The new destination URL which the shortened URL will point to.
https://example.com