Skip to main content
GET
Get Parsing Status
Check the current parsing status of a repository. Monitor whether parsing has completed and if the parsed version matches the latest commit on the branch.

Authentication

This endpoint requires API key authentication via the x-api-key header.

Complete Workflow

Error Responses

The endpoint requires a valid API key for authentication.
Causes:
  • Missing x-api-key header
  • Invalid or expired API key
  • API key doesn’t match any user account
Solution: Include a valid API key in the request header:
The endpoint returns this error when the project doesn’t exist or you lack access permissions.
Causes:
  • The project_id doesn’t exist in the database
  • You are not the project owner
  • The project is not shared with your account
  • The project was deleted
Solution: Verify the project_id is correct and ensure you have appropriate access permissions.
The endpoint returns this error when unexpected exceptions occur during status retrieval.
Causes:
  • Database connection failures
  • Unexpected data format issues
  • Service unavailability
Solution: Retry the request after a brief delay. If the issue persists, contact support with the project_id.

Troubleshooting

Problem: Status remains at ‘submitted’ for an extended period.Solution:
  • The parsing queue might be busy. Wait a few minutes and check again
  • If it persists for more than 5 minutes, contact support with your project ID
  • Very large repositories may take longer to begin processing
Problem: Parsing failed to complete.Solution:
  • Verify the repository is accessible
  • Check that the branch exists
  • Ensure the repository structure is valid
  • Consider that very large repositories may timeout
  • Contact support if the issue persists
Problem: The latest field shows false even though status is ready.Solution:
  • This indicates the branch has new commits since parsing
  • Re-parse the repository to get the latest code analysis
  • This is expected behavior for active branches with ongoing development

Status Phases

During parsing, you’ll see different status values corresponding to analysis stages:

Authorizations

x-api-key
string
header
required

API key authentication. Get your key from potpie settings page

Path Parameters

project_id
string
required

The unique project identifier returned from the parse endpoint

Response

Parsing status retrieved successfully

status
enum<string>

Current parsing status

Available options:
submitted,
cloned,
parsed,
processing,
inferring,
ready,
error
latest
boolean

Whether the parsed commit matches the latest commit on the branch