API ReferenceRepositoriesrepositories
Trace file lines to commits
GET /api/workspaces/{workspaceId}/repository/commits/{commitSha}/blame
Endpoint
GET
/api/workspaces/{workspaceId}/repository/commits/{commitSha}/blameInspect blame ranges to identify commits responsible for lines at a path. This is a repeatable read. See repositories_commit. Required personal key scopes: workspace:view, repository:read.
Authorization
Bearer token · workspace:view · repository:read
Parameters
workspaceIdpath · string · required- Workspace UUID returned by list workspaces.
commitShapath · string · required- Git object ID of the commit.
pathquery · string · required- Path relative to the root of the source tree.
API-Versionheader · string · optional- Optional platform API major version. Omit to use the current default. Allowed values: 1
Responses
200 Success
application/json schema
{
"type": "object",
"properties": {
"path": {
"type": "string",
"description": "Path relative to the root of the source tree."
},
"commitSha": {
"type": "string",
"pattern": "^[a-f0-9]{40}$",
"description": "Git object ID of the commit."
},
"ranges": {
"type": "array",
"items": {
"type": "object",
"properties": {
"startLine": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"enum": [
"Infinity",
"-Infinity",
"NaN"
]
}
],
"allOf": [
{
"description": "First line in this blame range."
}
]
},
"endLine": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"enum": [
"Infinity",
"-Infinity",
"NaN"
]
}
],
"allOf": [
{
"description": "Last line in this blame range."
}
]
},
"commitSha": {
"type": "string",
"pattern": "^[a-f0-9]{40}$",
"description": "Git object ID of the commit."
},
"path": {
"type": "string",
"description": "Path relative to the root of the source tree."
}
},
"required": [
"startLine",
"endLine",
"commitSha",
"path"
],
"additionalProperties": false
},
"description": "Contiguous line ranges attributed to commits."
},
"commits": {
"type": "array",
"items": {
"$ref": "#/components/schemas/SharedObject_150"
},
"description": "Git commits included in this page or comparison."
},
"complete": {
"type": "boolean",
"description": "Whether the result covers all entries in its scope."
},
"indexing": {
"type": "boolean",
"description": "Current status of the repository history index."
}
},
"required": [
"path",
"commitSha",
"ranges",
"commits",
"complete",
"indexing"
],
"additionalProperties": false
}Full schema and referenced types ↗Example
{
"path": "example",
"commitSha": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"ranges": [],
"commits": [],
"complete": false,
"indexing": false
}Response headers
- API-Version
- Supported platform API major version.
- RateLimit
- Remaining quota (r) and seconds until reset (t), when admission is available.
- RateLimit-Policy
- Request quota (q) and window in seconds (w).
- Deprecation
- Present when the operation is deprecated. RFC 9745 date in seconds since the Unix epoch.
- Sunset
- Present when retirement is scheduled. HTTP date of planned removal, per RFC 8594.
400 Error
application/json schema
{
"type": "object",
"properties": {
"error": {
"type": "string",
"description": "Machine-readable error code or diagnostic reported by the operation."
},
"detail": {
"type": "string",
"description": "Human-readable explanation of the failure."
},
"requestId": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid",
"description": "Correlation ID for tracing the request with support."
},
"retryable": {
"type": "boolean",
"description": "Whether retrying the same failed request may succeed."
}
},
"required": [
"error",
"detail",
"requestId",
"retryable"
],
"additionalProperties": true
}Full schema and referenced types ↗Response headers
- API-Version
- Supported platform API major version.
- RateLimit
- Remaining quota (r) and seconds until reset (t), when admission is available.
- RateLimit-Policy
- Request quota (q) and window in seconds (w).
401 Error
application/json schema
{
"type": "object",
"properties": {
"error": {
"type": "string",
"description": "Machine-readable error code or diagnostic reported by the operation."
},
"detail": {
"type": "string",
"description": "Human-readable explanation of the failure."
},
"requestId": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid",
"description": "Correlation ID for tracing the request with support."
},
"retryable": {
"type": "boolean",
"description": "Whether retrying the same failed request may succeed."
}
},
"required": [
"error",
"detail",
"requestId",
"retryable"
],
"additionalProperties": true
}Full schema and referenced types ↗Response headers
- API-Version
- Supported platform API major version.
- RateLimit
- Remaining quota (r) and seconds until reset (t), when admission is available.
- RateLimit-Policy
- Request quota (q) and window in seconds (w).
403 Error
application/json schema
{
"type": "object",
"properties": {
"error": {
"type": "string",
"description": "Machine-readable error code or diagnostic reported by the operation."
},
"detail": {
"type": "string",
"description": "Human-readable explanation of the failure."
},
"requestId": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid",
"description": "Correlation ID for tracing the request with support."
},
"retryable": {
"type": "boolean",
"description": "Whether retrying the same failed request may succeed."
}
},
"required": [
"error",
"detail",
"requestId",
"retryable"
],
"additionalProperties": true
}Full schema and referenced types ↗Response headers
- API-Version
- Supported platform API major version.
- RateLimit
- Remaining quota (r) and seconds until reset (t), when admission is available.
- RateLimit-Policy
- Request quota (q) and window in seconds (w).
404 Error
application/json schema
{
"type": "object",
"properties": {
"error": {
"type": "string",
"description": "Machine-readable error code or diagnostic reported by the operation."
},
"detail": {
"type": "string",
"description": "Human-readable explanation of the failure."
},
"requestId": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid",
"description": "Correlation ID for tracing the request with support."
},
"retryable": {
"type": "boolean",
"description": "Whether retrying the same failed request may succeed."
}
},
"required": [
"error",
"detail",
"requestId",
"retryable"
],
"additionalProperties": true
}Full schema and referenced types ↗Response headers
- API-Version
- Supported platform API major version.
- RateLimit
- Remaining quota (r) and seconds until reset (t), when admission is available.
- RateLimit-Policy
- Request quota (q) and window in seconds (w).
406 Unsupported platform API version
application/json schema
{
"type": "object",
"properties": {
"error": {
"type": "string",
"description": "Machine-readable error code or diagnostic reported by the operation."
},
"detail": {
"type": "string",
"description": "Human-readable explanation of the failure."
},
"requestId": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid",
"description": "Correlation ID for tracing the request with support."
},
"retryable": {
"type": "boolean",
"description": "Whether retrying the same failed request may succeed."
}
},
"required": [
"error",
"detail",
"requestId",
"retryable"
],
"additionalProperties": true
}Full schema and referenced types ↗Response headers
- API-Version
- Supported platform API major version.
- RateLimit
- Remaining quota (r) and seconds until reset (t), when admission is available.
- RateLimit-Policy
- Request quota (q) and window in seconds (w).
409 Error
application/json schema
{
"type": "object",
"properties": {
"error": {
"type": "string",
"description": "Machine-readable error code or diagnostic reported by the operation."
},
"detail": {
"type": "string",
"description": "Human-readable explanation of the failure."
},
"requestId": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid",
"description": "Correlation ID for tracing the request with support."
},
"retryable": {
"type": "boolean",
"description": "Whether retrying the same failed request may succeed."
}
},
"required": [
"error",
"detail",
"requestId",
"retryable"
],
"additionalProperties": true
}Full schema and referenced types ↗Response headers
- API-Version
- Supported platform API major version.
- RateLimit
- Remaining quota (r) and seconds until reset (t), when admission is available.
- RateLimit-Policy
- Request quota (q) and window in seconds (w).
429 Request limit reached
application/json schema
{
"type": "object",
"properties": {
"error": {
"type": "string",
"description": "Machine-readable error code or diagnostic reported by the operation."
},
"detail": {
"type": "string",
"description": "Human-readable explanation of the failure."
},
"requestId": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid",
"description": "Correlation ID for tracing the request with support."
},
"retryable": {
"type": "boolean",
"description": "Whether retrying the same failed request may succeed."
}
},
"required": [
"error",
"detail",
"requestId",
"retryable"
],
"additionalProperties": true
}Full schema and referenced types ↗Response headers
- Retry-After
- Seconds to wait before retrying the request.
- API-Version
- Supported platform API major version.
- RateLimit
- Remaining quota (r) and seconds until reset (t), when admission is available.
- RateLimit-Policy
- Request quota (q) and window in seconds (w).
500 Error
application/json schema
{
"type": "object",
"properties": {
"error": {
"type": "string",
"description": "Machine-readable error code or diagnostic reported by the operation."
},
"detail": {
"type": "string",
"description": "Human-readable explanation of the failure."
},
"requestId": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid",
"description": "Correlation ID for tracing the request with support."
},
"retryable": {
"type": "boolean",
"description": "Whether retrying the same failed request may succeed."
}
},
"required": [
"error",
"detail",
"requestId",
"retryable"
],
"additionalProperties": true
}Full schema and referenced types ↗Response headers
- API-Version
- Supported platform API major version.
- RateLimit
- Remaining quota (r) and seconds until reset (t), when admission is available.
- RateLimit-Policy
- Request quota (q) and window in seconds (w).
503 Error
application/json schema
{
"type": "object",
"properties": {
"error": {
"type": "string",
"description": "Machine-readable error code or diagnostic reported by the operation."
},
"detail": {
"type": "string",
"description": "Human-readable explanation of the failure."
},
"requestId": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid",
"description": "Correlation ID for tracing the request with support."
},
"retryable": {
"type": "boolean",
"description": "Whether retrying the same failed request may succeed."
}
},
"required": [
"error",
"detail",
"requestId",
"retryable"
],
"additionalProperties": true
}Full schema and referenced types ↗Response headers
- API-Version
- Supported platform API major version.
- RateLimit
- Remaining quota (r) and seconds until reset (t), when admission is available.
- RateLimit-Policy
- Request quota (q) and window in seconds (w).