Skip to main content
POST
cURL

Authorizations

Authorization
string
header
required

Relace API key Authorization header using the Bearer scheme.

Body

application/json

Query and codebase context for relevance scoring

query
string
required

The natural language query describing the problem to solve

codebase
object[]
required

An array of files with their content, providing context for the query

token_limit
integer
default:100000
required

Maximum token limit for the response

relace_metadata
object

Optional metadata for logging and tracking purposes. Removed before forwarding to origin server.

Response

Codebase reranked successfully

results
object[]

Array of files ranked by relevance to the query, with their scores

Example:
usage
object

Token usage information for the request