Introduction
Welcome to the LeadPages Dejavu API documentation.
This API adheres to the LeadPages HTTP API Standards document.
Endpoints
/leads/v1
Ping
/leads/v1/ping
A no-op endpoint that can be used to check what
the currently-deployed version of the API is.
http GET http://dejavu.docker/leads/v1/ping
{
"_meta": {
"_version": "0.7.19"
},
"_status": {
"code": 200
}
}
Request
GET /leads/v1/ping
Get the currently-deployed version of the API.
Response
| Body |
|
_meta._version |
String The current internal version number of the API. |
_meta |
Dictionary
|
Exports
/leads/v1/exports
Request
GET /leads/v1/exports
| Query string |
|
limit |
Regexp?(\d+) The maximum number of items to return in the response. |
cursor |
Regexp?(\d+) A string representing where a previous request "left off" |
Response
Request
POST /leads/v1/exports
| Body |
|
start |
DateTime?
|
end |
DateTime?
|
contentUuid |
String?
|
formUuid |
String?
|
excludeSpam |
Boolean?
|
search |
String?
|
notifyEmail |
Email?
|
timezone |
String?
|
include |
List?[String]
|
exclude |
List?[String]
|
deleted |
Boolean?
|
spamOnly |
Boolean?
|
Response
| Body |
|
start |
DateTime?
|
end |
DateTime?
|
contentUuid |
String?
|
formUuid |
String?
|
excludeSpam |
Boolean?
|
search |
String?
|
notifyEmail |
Email?
|
timezone |
String?
|
include |
List?[String]
|
exclude |
List?[String]
|
deleted |
Boolean?
|
spamOnly |
Boolean?
|
_meta |
Meta Meta information about the resource. |
status |
String?
|
downloadUrl |
URI?
|
Export
/leads/v1/exports/{uuid}
Request
GET /leads/v1/exports/{uuid}
Response
| Body |
|
start |
DateTime?
|
end |
DateTime?
|
contentUuid |
String?
|
formUuid |
String?
|
excludeSpam |
Boolean?
|
search |
String?
|
notifyEmail |
Email?
|
timezone |
String?
|
include |
List?[String]
|
exclude |
List?[String]
|
deleted |
Boolean?
|
spamOnly |
Boolean?
|
_meta |
Meta Meta information about the resource. |
status |
String?
|
downloadUrl |
URI?
|
| Errors |
|
404 Not Found |
export {uuid} not found |
Request
DELETE /leads/v1/exports/{uuid}
Response
| Errors |
|
404 Not Found |
export {uuid} not found |
Exportcsv
/leads/v1/exports/{uuid}.csv
Request
GET /leads/v1/exports/{uuid}.csv
Response
| Errors |
|
404 Not Found |
export {uuid} not found |
/leads/v1/forms
Request
GET /leads/v1/forms
| Query string |
|
limit |
Regexp?(\d+) The maximum number of items to return in the response. |
cursor |
Regexp?(\d+) A string representing where a previous request "left off" |
Response
| Body |
|
_meta |
ListingMeta Meta information about the response. |
_items |
List[Form]
|
/leads/v1/forms/{uuid}
Request
GET /leads/v1/forms/{uuid}
Response
| Body |
|
_meta |
Meta Meta information about the resource. |
name |
String
|
content_name |
String?
|
content_uuid |
String?
|
content_type |
String?
|
current_version |
String?
|
| Errors |
|
404 Not Found |
form {uuid} not found |
Request
PUT /leads/v1/forms/{uuid}
| Body |
|
name |
String
|
content_name |
String?
|
content_uuid |
String?
|
content_type |
String?
|
current_version |
String?
|
created |
DateTime
|
updated |
DateTime
|
deleted |
DateTime?
|
fields |
List[Field]
|
Response
Submissions
/leads/v1/submissions
Request
GET /leads/v1/submissions
| Query string |
|
limit |
Regexp?(\d+) The maximum number of items to return in the response. |
cursor |
Regexp?(\d+) A string representing where a previous request "left off" |
start |
DateTime?
|
end |
DateTime?
|
content |
String?
|
form |
String?
|
excludeSpam |
Enum('true', 'True', 'yes', '1', 'on', 'false', 'False', 'no', '0', 'off')
|
search |
String?
|
orderBy |
String?
|
direction |
Enum('asc', 'desc')
|
deleted |
Enum('true', 'True', 'yes', '1', 'on', 'false', 'False', 'no', '0', 'off')
|
spamOnly |
Enum('true', 'True', 'yes', '1', 'on', 'false', 'False', 'no', '0', 'off')
|
Response
Request
PATCH /leads/v1/submissions
| Query string |
|
limit |
Regexp?(\d+) The maximum number of items to return in the response. |
cursor |
Regexp?(\d+) A string representing where a previous request "left off" |
start |
DateTime?
|
end |
DateTime?
|
content |
String?
|
form |
String?
|
excludeSpam |
Enum('true', 'True', 'yes', '1', 'on', 'false', 'False', 'no', '0', 'off')
|
search |
String?
|
orderBy |
String?
|
direction |
Enum('asc', 'desc')
|
deleted |
Enum('true', 'True', 'yes', '1', 'on', 'false', 'False', 'no', '0', 'off')
|
spamOnly |
Enum('true', 'True', 'yes', '1', 'on', 'false', 'False', 'no', '0', 'off')
|
Response
Request
DELETE /leads/v1/submissions
| Body |
|
include |
List[String]
|
deletionMethod |
Enum('soft', 'permanent')
|
| Query string |
|
limit |
Regexp?(\d+) The maximum number of items to return in the response. |
cursor |
Regexp?(\d+) A string representing where a previous request "left off" |
start |
DateTime?
|
end |
DateTime?
|
content |
String?
|
form |
String?
|
excludeSpam |
Enum('true', 'True', 'yes', '1', 'on', 'false', 'False', 'no', '0', 'off')
|
search |
String?
|
orderBy |
String?
|
direction |
Enum('asc', 'desc')
|
deleted |
Enum('true', 'True', 'yes', '1', 'on', 'false', 'False', 'no', '0', 'off')
|
spamOnly |
Enum('true', 'True', 'yes', '1', 'on', 'false', 'False', 'no', '0', 'off')
|
Response
Submission
/leads/v1/submissions/{uuid}
Request
GET /leads/v1/submissions/{uuid}
Response
| Body |
|
_meta |
Meta Meta information about the resource. |
email |
String?
|
formUuid |
String
|
isBot |
Boolean?
|
data |
Dictionary
|
formName |
String?
|
contentName |
String?
|
contentType |
String?
|
contentUuid |
String?
|
deleted |
DateTime?
|
| Errors |
|
404 Not Found |
submission {uuid} not found |
Request
PUT /leads/v1/submissions/{uuid}
| Body |
|
email |
String?
|
form_uuid |
String?
|
form_version |
String?
|
is_bot |
Boolean?
|
created |
DateTime
|
data |
Dictionary
|
deleted |
DateTime?
|
Response
Definitions
| Meta |
|
id |
Or[String, Integer] The resource's unique identifier. |
uri |
String The resource's absolute URI. |
created |
DateTime When the resource was created. |
updated |
DateTime When the resource was last updated. |
| ListingMeta |
|
limit |
Integer The requested limit on the number of items. |
total |
Integer? The number of items in the database. |
count |
Integer The total number of items in the response. |
cursor |
String? This is used in conjunction with limit to paginate through lists of items. |
Export
| Export |
|
start |
DateTime?
|
end |
DateTime?
|
contentUuid |
String?
|
formUuid |
String?
|
excludeSpam |
Boolean?
|
search |
String?
|
notifyEmail |
Email?
|
timezone |
String?
|
include |
List?[String]
|
exclude |
List?[String]
|
deleted |
Boolean?
|
spamOnly |
Boolean?
|
_meta |
Meta Meta information about the resource. |
status |
String?
|
downloadUrl |
URI?
|
Field
| Field |
|
name |
String
|
form_uuid |
String
|
form_version |
String?
|
kind |
String
|
label |
String
|
required |
Boolean
|
| Form |
|
_meta |
Meta Meta information about the resource. |
name |
String
|
content_name |
String?
|
content_uuid |
String?
|
content_type |
String?
|
current_version |
String?
|
Submission
| Submission |
|
_meta |
Meta Meta information about the resource. |
email |
String?
|
formUuid |
String
|
isBot |
Boolean?
|
data |
Dictionary
|
formName |
String?
|
contentName |
String?
|
contentType |
String?
|
contentUuid |
String?
|
deleted |
DateTime?
|
PatchSubmission
| PatchSubmission |
|
deleted |
DateTime?
|