Use the Propel API to create review tokens, submit pull request diffs for asynchronous review, and fetch review results.Documentation Index
Fetch the complete documentation index at: https://docs.propelcode.ai/llms.txt
Use this file to discover all available pages before exploring further.
Base URL
https://api.propelcode.ai
Authentication
The API uses two bearer token types in theAuthorization header:
- Use your dashboard auth token for
/v1/auth/tokensendpoints. - Use a review API token for
/v1/reviewsendpoints.
Supported endpoints
The documented endpoints are:POST /v1/auth/tokensGET /v1/auth/tokensDELETE /v1/auth/tokens/{id}POST /v1/reviewsGET /v1/reviews/{review_id}
Recommended workflow
- Create a review API token with
POST /v1/auth/tokens. - Compute a base commit that exists in remote history:
git rev-parse main. - Generate a diff:
git diff main...HEAD. - Call
POST /v1/reviewswithdiff,repository, and optionalbase_commit. - Poll
GET /v1/reviews/{review_id}until status iscompletedorfailed.