How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Relace Code API

The Code API from Relace — 5 operation(s) for code.

Relace Code API is one of 2 APIs that Relace publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Code. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, and an API reference.

This API exposes 5 operations across 5 paths, and defines 15 schemas. It is described by OpenAPI 3.2.0, at version 1.0.0.

Requests are made against 5 base URLs: https://compact.endpoint.relace.run, https://instantapply.endpoint.relace.run, https://ranker.endpoint.relace.run, https://embeddings.endpoint.relace.run, https://api.relace.run.

5 operations 5 paths 15 schemas 5 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.2.0
API Version
1.0.0
Base URL
https://api.relace.run
Authentication
HTTP Bearer
License
MIT
Resource Areas
1

Authentication & Security 1

Relace Code API declares 1 security scheme for authenticating requests. It accepts HTTP bearer tokens (bearerAuth). By default, every request must be authenticated.

  • bearerAuth — Relace API key Authorization header using the Bearer scheme.

Paths & Operations 5

Across 5 paths, the API surfaces 5 operations — 5 POST. Each is listed below with its method, path, parameters, and response codes.

Code 5
POST
/v1/code/compact
Compress an agent trace to only the important details.
body → 200400401404429500
POST
/v1/code/apply
Merge code snippets from an LLM into your existing codebase.
body → 200400401404429500
POST
/v1/code/rankdeprecated
List files in your codebase in order of relevance to a user's query.
body → 200400401404429500
POST
/v2/code/rank
Assess the relevance of each file in your codebase to a user's query.
body → 200400401404429500
POST
/v1/code/embed
Embed code snippets into a vector database for semantic search.
body → 200400401404429500

Schemas 15

The contract defines 15 schemas that model the data the API accepts and returns. The most detailed are InstantApplyRequest (6 properties), CodeRerankerRequest (4 properties), v1CodeEmbedderRequest (3 properties), CompactRequest (3 properties). Each schema is shown below with its type and property counts.

InstantApplyRequest
object
6 properties 2 required
Error429
object
1 property
CompactResponse
object
2 properties
v2CodeRerankerResponse
object
2 properties
Error401
object
1 property
v1CodeEmbedderResponse
object
2 properties
CodeRerankerRequest
object
4 properties 3 required
Error500
object
1 property
v1CodeRerankerResponse
array
Array of files ranked by relevance to the query
CodeFile
object
2 properties 2 required
CompactRequest
object
3 properties 1 required
InstantApplyResponse
object
2 properties
Error404
object
1 property
v1CodeEmbedderRequest
object
3 properties
Error400
object
1 property

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

relace-code-api-openapi.yml Raw ↑

Other APIs Relace publishes across the network.

Relace Repo API
Where this information came from

This is an independent, third-party profile of Relace Code API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.