Crate-related endpoints
In this section, you will find documentation about all the crate-related endpoints of the programmatic API.
Public Endpoints
Public endpoints are accessible without needing to authenticate.
- Search crates:
POST /api/v1/crates?<q>[&<page>][&<per_page>]
- Get crate information:
GET /api/v1/crates/<name>
- List crate owners:
GET /api/v1/crates/<name>/owners
- Download crate archive:
GET /api/v1/crates/<name>/<version>/download
- List crate categories:
GET /api/v1/categories
Authenticated Endpoints
The following endpoints require a valid token to be specified in the Authorization
request header.
Refer to the Authentication docs to learn how to get one and how to use it.
- Publish crate:
PUT /api/v1/crates/new
- Add crate owners:
PUT /api/v1/crates/<name>/owners
- Remove crate owners:
DELETE /api/v1/crates/<name>/owners
- Yank crate version:
DELETE /api/v1/crates/<name>/<version>/yank
- Unyanking crate version:
PUT /api/v1/crates/<name>/<version>/unyank