At Literal, we looove APIs and we do our best to automate everything tech. Our platform runs on GraphQL, which makes it very easy and convenient to share access to the Literal APIs with the community.

Below is a list of our a few handpicked queries and mutations which will allow everyone to get access to their shelves and library. Automation is awesome, isn't it?

Note: If you cannot find exactly what you're looking for here, please reach out to us at [email protected] and we'll try our best to make your use-case possible.

Untitled

API Endpoint

All requests can be sent via POST method at the following address:

<https://literal.club/graphql/>

Login

Use this mutation to receive an access token, and some of your profile information.

mutation login($email: String!, $password: String!) {
  login(email: $email, password: $password) {
    token
    email
    languages
    profile {
      id
      handle
      name
      bio
      image
    }
  }
}

The access token can be used as an Authorization header for queries or mutations that require it. An access token is valid for 6 months.