Skip to main content

Hangar API

Project description

This page describes the format for the current Hangar REST API as well as general usage guidelines.<br> Note that all routes **not** listed here should be considered **internal**, and can change at a moment's notice. **Do not use them**.  ## Authentication and Authorization There are two ways to consume the API: Authenticated or anonymous.  ### Anonymous When using anonymous authentication, you only have access to public information, but you don't need to worry about creating and storing an API key or handing JWTs.  ### Authenticated If you need access to non-public content or actions, you need to create and use API keys. These can be created by going to the API keys page via the profile dropdown or by going to your user page and clicking on the key icon.  API keys allow you to impersonate yourself, so they should be handled like passwords. **Do not share them with anyone else!**  #### Getting and Using a JWT Once you have an API key, you need to authenticate yourself: Send a `POST` request with your API key identifier to `/api/v1/authenticate?apiKey=yourKey`. The response will contain your JWT as well as an expiration time. Put this JWT into the `Authorization` header of every request and make sure to request a new JWT after the expiration time has passed.  Please also set a meaningful `User-Agent` header. This allows us to better identify loads and needs for potentially new endpoints.  ## Misc ### Date Formats Standard ISO types. Where possible, we use the [OpenAPI format modifier](https://swagger.io/docs/specification/data-models/data-types/#format).  ### Rate Limits and Caching The default rate limit is set at 20 requests every 5 seconds with an initial overdraft for extra leniency. Individual endpoints, such as version creation, may have stricter rate limiting.  If applicable, always cache responses. The Hangar API itself is cached by CloudFlare and internally.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hangar-api-2023.12.tar.gz (63.5 kB view details)

Uploaded Source

Built Distribution

hangar_api-2023.12-py3-none-any.whl (155.3 kB view details)

Uploaded Python 3

File details

Details for the file hangar-api-2023.12.tar.gz.

File metadata

  • Download URL: hangar-api-2023.12.tar.gz
  • Upload date:
  • Size: 63.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for hangar-api-2023.12.tar.gz
Algorithm Hash digest
SHA256 15b3e1dc3ec3133ebeabfd9bd90245a9ebff9eb016397b4ef02c9570d5d8173a
MD5 e522dcbd8600b3b123c8d8bdefc114ec
BLAKE2b-256 1e895d697d5e684244cd6e55811242f82c5716bb28c07d62ddde3e6f1ce81b67

See more details on using hashes here.

File details

Details for the file hangar_api-2023.12-py3-none-any.whl.

File metadata

  • Download URL: hangar_api-2023.12-py3-none-any.whl
  • Upload date:
  • Size: 155.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for hangar_api-2023.12-py3-none-any.whl
Algorithm Hash digest
SHA256 5cda73b0e87e4dcb208620c4bc117c0b5a2ab9a6a08895fb4c504a0129a513eb
MD5 80dfddf715b34eff874cd249b6ebcc5d
BLAKE2b-256 bfb6000e7339101e9883a3fb44736113bac8b6a859507bcf2633f605470ac297

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page