Skip to main content

API Documentation

Synesthesia Reading App API (1.0.0)

Download OpenAPI specification:Download

The Synesthesia Reading App API allows access to users' documents and color profiles across devices.

documents

Everything about your Documents

Returns an array of documents

Authorizations:
None

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Adds a document to a user's library

Authorizations:
None
Request Body schema: application/json
docId
string
title
string
text
string

Responses

Request samples

Content type
application/json
{
  • "docId": "id123",
  • "title": "The Silmarillion",
  • "text": "string"
}

deletes the document with the given id from account storage

Authorizations:
None
path Parameters
docId
required
string

Responses

color profile

Information about a user color profile

creates a new Color Profile associated with a user

Authorizations:
None
path Parameters
userId
required
any
Request Body schema: application/json

the color profile to be created

grapheme-color map
object (Grapheme_Color_Map)

map of graphemes to RGB colors

exceptions-color map
object (Word_Color_Map)

a map of words to RGB colors

Responses

Request samples

Content type
application/json
{
  • "grapheme-color map": { },
  • "exceptions-color map": { }
}

user

Operations about user

feedback

Pertaining to user feedback

coloring flask

A call from the Laravel backend to the coloring flask to color a document

Authorizations:
None
Request Body schema: application/json

contains a color profile and document text

object (Color_Profile)

Contains a map of graphemes to their associated colors and a map of words that are exceptions to the coloring rules to their colors

text
string

Responses

Request samples

Content type
application/json
{
  • "color_profile": {
    },
  • "text": "Nevertheless, the angelic being persevered."
}

Response samples

Content type
application/json
{
  • "tokenized text": [
    ],
  • "word-color map": { }
}