Introduction
Copr API v3 is a RESTful API that allows you to programmatically interact with the Copr Build System. You can create projects, submit builds, manage packages, and more.Base URL
All API requests should be made to:Versioning
The API version is indicated in the URL path (/api_3/). This documentation covers version 3 of the Copr API.
Response Format
All API responses are returned in JSON format. Successful responses follow this structure:Success Response Example
Error Response Format
Error responses include an error message and appropriate HTTP status code:Common HTTP Status Codes
- 200 OK - Request succeeded
- 206 Partial Content - Paginated response, more data available
- 400 Bad Request - Invalid request parameters
- 401 Unauthorized - Authentication required or failed
- 403 Forbidden - Insufficient permissions
- 404 Not Found - Resource not found
Error Response Example
Pagination
Endpoints that return lists support pagination with the following query parameters:limit- Number of items to return (default varies by endpoint)offset- Number of items to skip (default: 0)order- Field to order by (e.g., “id”, “name”)order_type- Sort direction: “ASC” or “DESC”
Pagination Example
Interactive Documentation
Copr provides interactive API documentation using Swagger UI:Python Client
For Python developers, we recommend using the officialpython-copr client library:
Command-Line Interface
Thecopr-cli tool provides a convenient command-line interface:
man copr-cli for detailed usage instructions.