> ## Documentation Index
> Fetch the complete documentation index at: https://docs.re-factor.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Introduction

> Integrate the re-factor platform into your application

<Note>
  To interact with the re-factor API, you must have an active re-factor account. We are currently in a private beta and are working to make the API public. Please reach out to [our accounts team](mailto:refactor-accounts@psci-labs.com) if you'd like to discuss participating in the beta.
</Note>

##

## Host

The re-factor API is hosted at [`https://api.re-factor.ai/v1`.](https://api.refactor.ai/v1.)

## Authentication

All API endpoints are authenticated using Bearer tokens, which can be retrieved using the OAuth2.0 client credentials flow. Service accounts can be created in the [re-factor platform Settings page](https://app.re-factor.ai/settings). All requests must contain an `Authorization` header in the format `Bearer <token>`, where `<token>` is the value of the OAuth2.0 access token.

<Frame>
  <img src="https://mintcdn.com/pscilabs/MyP0jeqcDcoyhmPz/images/service-account-creds.png?fit=max&auto=format&n=MyP0jeqcDcoyhmPz&q=85&s=5521cb5797aea44ee937906a0cd56367" width="2352" height="1466" data-path="images/service-account-creds.png" />
</Frame>

## Quotas

The re-factor API is to limit requests per minute and tokens per minute, based on the service tier that you have subscribed to. Upon exceeding these limits, you will receive `HTTP 429` responses with a `Retry-After` header specifying the number of seconds to wait before retrying the request. To learn more about our quota policies, please visit [our pricing page](https://refactor.ai/pricing).

## OpenAPI Specification (v3.1.0)

All API endpoints are documented in the navigation on the left side of the screen. However, if you'd like to access the raw OpenAPI specification for client codegen, you can find it here:

<Card title="re-factor openapi spec" icon="arrows-retweet" href="https://github.com/psci-labs/refactor/blob/main/docs/api-reference/openapi.yaml">
  View the OpenAPI specification file
</Card>
