Submission API Documentation
Base URL
The base URL for the submission endpoints is /submission
.
Routes
Create Submission
URL:
/submission/new
Method:
POST
Authentication Required: Yes
Request Parameters
name
(optional): Name of the submission.projectName
(required): Name of the project.email
(required): Email address associated with the submission.about
(optional): Details about the submission.links
(optional Stringify json data):Relevant links (e.g., social media, website).
Request Example
Example Request Using cURL
Modify Submission
URL:
/submission/save
Method:
POST
Authentication Required: Yes
Request Parameters
id
(required): ID of the submission to modify.name
(optional): Updated name.projectName
(optional): Updated project name.email
(optional): Updated email address.about
(optional): Updated details.links
(optional): Updated links.
Request Example
Example Request Using cURL
Delete Submission
URL:
/submission/delete
Method:
POST
Authentication Required: Yes
Request Parameters
id
(required): ID of the submission to delete.
Request Example
Example Request Using cURL
Retrieve Submission
URL:
/submission
Method:
GET
Authentication Required: No
Request Parameters
id
(required): ID of the submission to retrieve.
Request Example
Example Request Using cURL
Retrieve All Submissions
URL:
/submission/all
Method:
GET
Authentication Required: No
Request Parameters
sort
: Optional. Sort order of the results. Can beasc
(ascending) ordesc
(descending). Default isasc
.num
: Required. Number of submissions to retrieve. Can beall
to retrieve all submissions or a specific number.
Request Example
Example Request Using cURL
Submission Search API Documentation
This document details the API endpoint for searching submission data within the PAAL AI platform.
Base URL
The base URL for the submission search endpoint is /submission/search
.
Route
Search Submissions
URL:
/submission/search
Method:
GET
Authentication Required: No
Request Parameters
sort
(optional): Sort order of the results. Can beasc
(ascending) ordesc
(descending). Default isasc
.num
(optional): Number of submissions to retrieve. Can beall
to retrieve all submissions or a specific number.key
(required): The field to search within the submissions.value
(required): The value to search for in the specified field.
Request Example
Example Request Using cURL
Response
The response will include an array of submission data objects matching the search criteria, or an empty array if no submissions match the search.
Each submission data object contains the following fields:
id
: ID of the submission.projectName
: Name of the project associated with the submission.name
: Name of the submitter.about
: Description or details about the submission.email
: Email address of the submitter.links
: Links provided by the submitter.date
: Date of the submission.data
: Additional data related to the submission.
Example Response
Error Responses
If required parameters (
key
andvalue
) are missing:If no submissions match the search criteria:
Last updated