0

List Images

by
Published Mar 25, 2024

Retrieves a list of JSON descriptions for all images in your Typeform account. [See the docs here](https://developer.typeform.com/create/reference/retrieve-images-collection/)

Script typeform Verified

The script

Submitted by hugo697 Bun
Verified 398 days ago
1
import { createClient } from '@typeform/api-client'
2

3
type Typeform = {
4
	token: string
5
	baseUrl: string
6
}
7

8
export async function main(resource: Typeform) {
9
	const typeformAPI = createClient({
10
		token: resource.token,
11
		apiBaseUrl: resource.baseUrl
12
	})
13

14
	return await typeformAPI.images.list()
15
}
16