Submission List

Overview

The Submission List API allows you to retrieve a list of journal submissions with pagination and search capabilities. The following documentation outlines authentication, request methods, and response handling.

Base URL

https://jms.kryoni.com/api/v1/external/submissions

Endpoint

  • URL: https://jms.kryoni.com/api/v1/external/submissions
  • Method: GET
  • Description: Retrieves a list of submissions, filtered by journal ID, with pagination and search options.

Authentication

To access this API, include the following headers in your request:

Request Headers

HeaderValueDescription
x-api-key{Your Api Key Generated in Developer Option}API key to authenticate the request.
x-api-secret{Your Api Secret Generated in Developer Option}API secret to authenticate the request.
Api Key Authentication
{
"api_key": "string",
"api_secret": "string"
}

Journal Filter

  • Required: journal_id parameter in the URL to filter submissions by journal.

Example

https://jms.kryoni.com/api/v1/external/journals?journal_id=1

Pagination Parameters Add value in url param

ParameterTypeRequiredDescriptionDefault
pageintegerNoPage of the list1
sizeintegerNoNumber of submissions per page20

Example

https://jms.kryoni.com/api/v1/external/submissions?journal_id=1&page=1&size=20

Search Parameter

  • Optional: search_text to filter by search term.

Example

https://jms.kryoni.com/api/v1/external/submissions?journal_id=1&search_text=science

Response

The API response is a JSON object that contains the requested journal submissions data, along with pagination details and any search criteria applied. Below is a sample response structure with an explanation of each field.

Response Body

200 Success

The response schema is returned in JSON format with details on the requested journals, pagination, and any applied search filters.

Response Schema: application/json
FieldTypeDescription
codeintegerStatus code indicating the result of the request. A value of 0 typically indicates a successful request.
messagestringMessage describing the status of the response, e.g., "success" if the request was processed correctly.
submissionsarray of objectsList of submissions that match the specified criteria. Each object represents a single submission and includes the following fields:
├─ idintegerUnique identifier for the submission.
├─ titlestringTitle of the submission.
├─ journal_idintegerUnique identifier for the journal to which the submission belongs.
├─ journal_titlestringTitle of the journal associated with the submission.
└─ created_atstring (datetime)Date and time the submission was created, formatted in ISO 8601 (e.g., "2024-08-26T10:58:44.412203Z").
page_contextobjectObject containing pagination information and search details. It includes the following fields:
├─ pageintegerCurrent page number of the response data.
├─ sizeintegerNumber of submissions per page as specified in the request parameters.
├─ total_countintegerTotal number of submissions that match the query criteria.
└─ search_textstringSearch term used, if any, to filter the submissions. This value matches the search_text parameter from the request.

Response

{
“code” : 0,
“message” : “success”,
“submissions”:[
{
“id”:1,
“title”:”The Global Warning”,
“journal_id” : 1,
“journal_title” : “The Journal of Science”,
“created_at” :2024-08-26T10:58:44.412203Z”
},..
],
“page_context”: {
“page”: 1,
“size”: 20,
“total_count” : 100,
“search_text”: ”science”
}
}

Error Handling

Possible error responses might include:

401 Unauthorized
Response Schema: application/json
FieldTypeDescription
codeintegerError code indicating the type of error. Each code corresponds to a specific issue (e.g., 400 for bad request, 401 for unauthorized access).
messagestringDescriptive error message explaining the issue encountered (e.g., "Invalid API key", "Journal ID required").
errorsarray of objectsAdditional details on specific errors, if any, that occurred. Each error object contains information about a specific field or parameter issue:
├─ fieldstringName of the field or parameter that caused the error.
└─ messagestringExplanation of the error related to the field.

Response

{
"code": 400,
"message": "Invalid request parameters.",
"errors":
[
{
"field": "journal_id",
"message": "The journal_id parameter is required.",
},
{ "field": "x-api-key", "message": "Invalid API key provided." },
],
}