CommunityCreate AccountSign in
  • Overview
    • Welcome
    • Authentication
    • Using Environments
  • API Reference
LogoLogo
LogoLogo
CommunityCreate AccountSign in
API ReferenceAssistant

POST
https://api.x.flatfile.com/v1//prompts
POST
/v1//prompts
1curl -X POST https://api.x.flatfile.com/v1/prompts \
2 -H "X-Disable-Hooks: true" \
3 -H "Authorization: Bearer <token>" \
4 -H "Content-Type: application/json" \
5 -d '{
6 "prompt": "Combine first name and last name into a new column called Full Name",
7 "environmentId": "us_env_YOUR_ID",
8 "spaceId": "us_sp_YOUR_ID"
9}'
Try it
200Example0
1{
2 "data": {
3 "id": "us_pr_YOUR_ID",
4 "createdById": "us_usr_YOUR_ID",
5 "accountId": "us_acc_YOUR_ID",
6 "promptType": "AI_ASSIST",
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 "environmentId": "us_env_YOUR_ID",
11 "spaceId": "us_sp_YOUR_ID"
12 }
13}
Was this page helpful?
Previous

Delete a prompts

Next
Built with
Creates a prompt
Create a prompt

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Headers

X-Disable-Hooks"true"RequiredDefaults to true

Request

This endpoint expects an object.
promptstringRequired
environmentIdstringRequired
Environment ID
spaceIdstringRequired
Space ID
promptTypeenumOptional

Type of prompt; Defaults to AI_ASSIST

Allowed values:

Response

This endpoint returns an object.
dataobject