Code Context

Suggest Code Context

POST
/v0/projects/{idOrSlug}/code-context/suggestions

Authorization

apiKeyAuth
headerx-api-key<token>

FastStats API key. Pass it in the x-api-key header or as a Bearer token in the Authorization header.

Path Parameters

idOrSlug*string

Request Body

application/json
  1. body
provider*string
Value in"github""codeberg""gitlab""bitbucket""origin"
repository*string
Length1 <= length
ref?string|null
codebergApiUrl?string|null

Response Body

Success

application/json
  1. response
provider*string
Value in"github""codeberg""gitlab""bitbucket""origin"
repository*string
ref*string|null
framePrefixes*array<>
curl -X POST "https://example.com/v0/projects/string/code-context/suggestions" \  -H "Content-Type: application/json" \  -d '{    "provider": "github",    "repository": "string"  }'
{  "provider": "github",  "repository": "string",  "ref": "string",  "framePrefixes": [    "string"  ]}