Skip to content

The RepoForge.io REST API

The RepoForge.io REST API is a paid feature only - you will not be able to access the REST API on a free plan

The RepoForge.io REST API is a versatile tool designed to help you integrate RepoForge.io with your existing CI/CD workflows, build pipelines, and other automation tools. By leveraging the capabilities of the REST API, you can streamline package management, automate common tasks, and maintain complete control over your development and deployment processes. The API is designed to allow developers and DevOps teams to build more sophisticated integrations with RepoForge.io, ensuring a smoother, more efficient workflow.

With the RepoForge.io REST API, you can perform a wide range of actions that enhance your development pipeline, including:

View package access logs: Monitor and audit who is accessing your packages, providing you with greater insight and security control over your digital assets.

  • Create, fetch, rotate, and update access tokens: Manage your API tokens with ease, ensuring secure and flexible access to your repositories.
  • Fetch, edit, and delete your NPM packages: Integrate with your NPM projects to automate updates, fetch package details, or remove packages as needed.
  • Fetch, edit, and delete your Python packages: Work with your Python packages, enabling efficient management of your Python projects in a centralized repository.
  • Fetch, edit, and delete your Docker registries: Manage your Docker images and registries, ensuring that your containers are up-to-date and available for deployment.
  • Fetch roles: Access role information to manage user permissions and maintain the security of your packages and repositories.

The RepoForge.io REST API provides a rich set of endpoints that allow for complete programmatic access to your repositories, making it easier to integrate with CI/CD systems such as Jenkins, GitLab, CircleCI, and others. This API ensures that your team can focus on building, testing, and deploying code with minimal manual intervention, automating many of the repetitive tasks involved in package management.

Authentication

To interact with the RepoForge.io REST API, authentication is required through an Access Token that assumes the API Access role. This Access Token is necessary to authorize API requests and ensures secure communication between your systems and RepoForge.io.

To get started, you will need to generate an Access Token through the RepoForge.io dashboard. Once generated, this token can be used as a Bearer token in your API requests. For example, you can use the Access Token to fetch data from the API or perform actions like viewing access logs.

Here’s a basic example of how to authenticate and make a simple API request to fetch access logs using Python and the requests library:

python
import requests

token = "mytoken"

headers = {
    "Authorization": f"Bearer {token}"
}
response = requests.get("https://api.repoforge.io/rest/v1/access-logs", headers=headers)
assert response.status_code == 200
print(response.json())

For more detailed information on how to use the RepoForge.io REST API, including a full list of available endpoints, request/response formats, and examples, please refer to our full API reference documentation.

This comprehensive reference guide will help you explore the full range of capabilities the API offers, including advanced features for managing users, roles, packages, and tokens.

This expanded version highlights more use cases, elaborates on the benefits, and provides a deeper look into how the API integrates with existing CI/CD workflows. It also enhances keyword density for SEO while maintaining clarity and relevance.