Using Potpie Agents through the API
To generate an API key, follow these steps:
Your API key will be created and displayed for use.
To use the API, follow these steps:
Base URL: Use https://production-api.potpie.ai/
as the base URL.
Parse API:
/api/v2/parse
Get Parsing Status:
/api/v2/parsing-status/{project_id}
project_id
: The ID returned from the Parse API.x-api-key
: Your API key (in the header).Create a Conversation:
/api/v2/conversations
You can choose from the following agents:
id="codebase_qna_agent"
id="debugging_agent"
id="unit_test_agent"
id="integration_test_agent"
id="LLD_agent"
id="code_changes_agent"
id="code_generation_agent"
/api/v2/conversations/{conversation_id}/message
conversation_id
: The ID of the conversation created in the previous step.x-api-key
: Your API key (in the header).Using Potpie Agents through the API
To generate an API key, follow these steps:
Your API key will be created and displayed for use.
To use the API, follow these steps:
Base URL: Use https://production-api.potpie.ai/
as the base URL.
Parse API:
/api/v2/parse
Get Parsing Status:
/api/v2/parsing-status/{project_id}
project_id
: The ID returned from the Parse API.x-api-key
: Your API key (in the header).Create a Conversation:
/api/v2/conversations
You can choose from the following agents:
id="codebase_qna_agent"
id="debugging_agent"
id="unit_test_agent"
id="integration_test_agent"
id="LLD_agent"
id="code_changes_agent"
id="code_generation_agent"
/api/v2/conversations/{conversation_id}/message
conversation_id
: The ID of the conversation created in the previous step.x-api-key
: Your API key (in the header).