Images

Create image

post
https://api.typeform.com/images

Adds an image in your Typeform account.

Specify the URL of your image or send your image in base64 format, which encodes the image data as ASCII text. You can use a tool like Base64 Image Encoder to get the base64 code for the image you want to add.

Request

Request Body

file_name
string

File name for the image.

image
string

Base64 code for the image. Note that base64 encoders may add descriptors to the code (such as data:image/png;base64,). Do not include these descriptors in your image string---include only the base64 code.

url
string

URL of the image.

Example

{
  "file_name": "newimage.gif",
  "image": "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAIAAAAC64paAAAAG0lEQVR42mOccuMbA7mAcVTzqOZRzaOaB1YzABKjL70rq/b4AAAAAElFTkSuQmCC"
}

Response

Status

201 Created

Headers

LocationURL of the new image.