Skip to main content
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.

Metadata

Release files for hangar-api 2023.12

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hangar-api 2023.12
File Size Uploaded Provenance Actions
hangar-api-2023.12.tar.gz 63.5 kB Without provenance Details for hangar-api-2023.12.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for hangar-api 2023.12
File Interpreter ABI Platform Actions
hangar_api-2023.12-py3-none-any.whl Python 3 none any Details for hangar_api-2023.12-py3-none-any.whl

Total release size: 218.8 kB

Release files / hangar-api-2023.12.tar.gz

Download URL hangar-api-2023.12.tar.gz
Size 63.5 kB
Tags Source
SHA-256 checksum
How to use checksums
15b3e1dc3ec3133ebeabfd9bd90245a9ebff9eb016397b4ef02c9570d5d8173a
BLAKE2b-256 checksum
How to use checksums
1e895d697d5e684244cd6e55811242f82c5716bb28c07d62ddde3e6f1ce81b67
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.6

Release files / hangar_api-2023.12-py3-none-any.whl

Download URL hangar_api-2023.12-py3-none-any.whl
Size 155.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5cda73b0e87e4dcb208620c4bc117c0b5a2ab9a6a08895fb4c504a0129a513eb
BLAKE2b-256 checksum
How to use checksums
bfb6000e7339101e9883a3fb44736113bac8b6a859507bcf2633f605470ac297
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.6

Security for hangar-api 2023.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page