Assistant

List prompts

GET
Returns prompts created by user

Query parameters

pageSizeintegerOptional
Number of prompts to return in a page (default 7)
pageNumberintegerOptional
Based on pageSize, which page of prompts to return

Response

This endpoint returns an object
data
list of objects
pagination
objectOptional
pagination info
GET
$curl https://api.x.flatfile.com/v1//prompts \
> -H "Authorization: Bearer <token>"
Response
1{
2 "data": [
3 {
4 "id": "us_pr_YOUR_ID",
5 "createdById": "us_usr_YOUR_ID",
6 "accountId": "us_acc_YOUR_ID",
7 "prompt": "Combine first name and last name into a new column called Full Name",
8 "createdAt": "2021-01-01T00:00:00Z",
9 "updatedAt": "2021-01-01T00:00:00Z"
10 }
11 ],
12 "pagination": {
13 "currentPage": 3,
14 "pageCount": 50,
15 "totalCount": 100
16 }
17}