Meridian API

Reference Processing Service with Edifix Integration

API Overview

Meridian is a reference processing service that integrates with Edifix for citation processing. This API allows you to create jobs, check job status, and manage reference processing workflows.

API Version v1
Service Version 1.0.0
Base URL http://meridian.typefi.net
Content Type application/json

Authentication

Most endpoints require authentication using Bearer tokens and installation codes:

Endpoint Documentation

GET /api/v1/health No Auth Required

Description: Check API and database connectivity

Response (200 OK):

{ "status": "healthy", "timestamp": "2024-01-01T00:00:00.000Z", "database": "connected", "uptime": 12345.67 }

POST /api/v1/jobs Auth Required

Description: Create a new reference processing job

Request Headers:

  • Authorization: Bearer <token>
  • Typefi-Installation-Code: <installation_code>
  • Content-Type: application/json

Request Body:

Note: For available edit_style values, see Available Edit Styles.

{ "username": "user@example.com", "edifix-data": { "job_name": "My Reference Job", "edit_style": "ICMJE-WHO", "input_refs": "Smith, J. (2020). Title. Journal, 15(2), 123-145.", "pubmed_flag": false, "crossref_flag": true, "run_cabells_flag": false, "remove_line_breaks_flag": false, "book_processing_flag": false, "stylesheet_contents": "custom stylesheet", "output_format": "xml format" } }

Required Fields:

  • username (string) - User email address (max 256 characters)
  • edifix-data.input_refs (string) - Reference text to process
  • edifix-data.edit_style (string) - Citation style (see Available Edit Styles below)

Optional Fields (edifix-data):

  • edifix-data.job_name (string) - Job name
  • edifix-data.pubmed_flag (boolean) - Enable PubMed lookup
  • edifix-data.crossref_flag (boolean) - Enable Crossref lookup
  • edifix-data.run_cabells_flag (boolean) - Enable Cabells lookup
  • edifix-data.remove_line_breaks_flag (boolean) - Remove line breaks from references
  • edifix-data.book_processing_flag (boolean) - Enable book processing mode
  • edifix-data.stylesheet_contents (string) - Custom stylesheet content
  • edifix-data.output_format (string) - Output format ("JATS", "APA")

Success Response (201 Created):

{ "job_id": 123, "status": "SENT", "message": "Job created successfully" }

Error Response (500 Internal Server Error):

{ "job_id": 123, "error": "Error message" }

GET /api/v1/jobs/:jobId Auth Required

Description: Retrieve job status and details

Path Parameters:

  • jobId (integer) - The job ID

Query Parameters:

  • edifix_view (string, optional) - Results view type
  • Valid values: "refs" (default), "refs_links", "refs_links_delta"
  • Example: ?edifix_view=refs_links

Response (200 OK):

{ "job_id": 123, "status": "COMPLETE", "job_results": "Formatted reference output..." }

Response Fields:

  • job_id (integer) - The job ID
  • status (string) - Job status: "QUEUED", "SENT", "COMPLETE", or "FAILED"
  • job_results (string|null) - Formatted reference results (only present when status is "COMPLETE")

Status Values

Internal Job Status

Status Description
QUEUED Job created, waiting to be sent to Edifix
SENT Successfully sent to Edifix API
COMPLETE Job fully completed
FAILED Job failed at any stage

Available Edit Styles

The following citation styles are supported for the edit_style field in API requests:

Style Name Value
ACI (American Concrete Institute) ACI_Harvard
ACS (American Chemical Society) ACS
ACS (American Chemical Society - No Titles) ACS_NoTitle
AMA AMA
AMA 10th ed. AMA10
AMA 11th ed. AMA11
American Physical Society (APS) AmPhysSoc
APA 5th ed. APA5
APA 6th ed. APA6
APA 7th ed. APA7
ASM Press (American Society for Microbiology) AmSocMicrobiol
Cell Press Cell
Chemistry–Material Sciences (Wiley) ChemMatterSci
Chicago (Author-Date) Chicago
Chicago (Bibliography) ChicagoBib
CSE (Scientific Style and Format) CSE
Harvard (Wiley) Wiley_Harvard
IEEE IEEE
Impact Journals ImpactJ
ISO-690 ISO-690
JIEPH (Journal of Interventional Epidemiology and Public Health) JIEPH
Kaiser Kaiser
Lancet Lancet
Math and Physical Sciences (Wiley) MathPhysSci
MLA MLA
RIS RIS
RACGP (Royal Australian College of General Practitioners) RACGP
RUP RUP
SEG (Society of Exploration Geophysicists) SEG
Spandidos Publications Spandidos
TRR (Journal of the Transportation Research Board) TRR
Vancouver/ICMJE ICMJE-WHO
(Citation Manager Export Format) CiteExport
(No Format) NULL