Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 959 Bytes

README.md

File metadata and controls

29 lines (19 loc) · 959 Bytes

Hack the Valley API

Build Status

Hack the Valley Primary API, Shared Across All Events

Visit https://api.hackthevalley.io/graphql to explore our GraphQL API!

Authorization

Our API is open to the public, however, some queries and mutations might require authentication.

First you will need to obtain an API key, this can be achieved by calling createHackerToken() with your login credentials.

mutation {
    createHackerToken(email_address: "[email protected]", password: "htv123") {
        token_body
    }
}

By default, API key expire after 24 hours, you can pass an optional argument called expire_after in seconds.

After obtaining token_body, pass it as bearer token header to authenticate:

Authorization: Bearer <token_body>