> This page is for version v1 (default).
> For other versions, use one of these documentation indexes:
> - v1 (default): https://docs.rightbrain.ai/v-1/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.rightbrain.ai/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.rightbrain.ai/_mcp/server.

# Get Skill Revision

GET https://app.rightbrain.ai/api/v1/skills/{skill_id}/revisions/{revision_id}

Retrieve full content for a specific skill revision, including structured reference and asset file bodies with size metadata.

Reference: https://docs.rightbrain.ai/api-reference/api-reference/skills/get-skill-revision

## Authentication

- `Authorization` header (bearer token, required) — API key or access token, sent as `Authorization: Bearer <token>`. The simplest option: create an API key in your dashboard under Settings, then paste it here.

## Servers

- `https://app.rightbrain.ai/api/v1` (Production, default)
- `https://app.rightbrain.ai/api/v1` (Staging API)
- `https://app.rblocal.dev/api/v1` (Local development)

## Request

### Path parameters

- `skill_id` (string, required)
- `revision_id` (string, required)

## Response

### 200

Skill revision content

- `id` (string, required)
- `skill_id` (string, required)
- `instructions` (string, required)
- `skill_metadata` (map from string to any, required, nullable)
- `capabilities` (SkillCapabilities, required, nullable)
- `annotation` (string, required, nullable)
- `created` (string, required)
- `reference_files` (list of string, required)
- `asset_files` (list of string, required)
- `reference_file_contents` (list of SkillRevisionFileContent, optional)
- `asset_file_contents` (list of SkillRevisionFileContent, optional)
- `script_files` (list of string, optional, default: [])

## Errors

### 401 Unauthorized Error

Unauthorized - Authentication failed **Common causes:** - Missing `Authorization` header - Expired access token - Invalid or malformed token - Using API key in wrong format **Resolution:** Ensure you're including a valid Bearer token or API key in the Authorization header.

- `detail` (ErrorResponseDetail, required) — A plain error message, a list of field-level validation errors, a service validation error, or a domain error object with `reason` and `message`.

### 404 Not Found Error

Skill revision not found

- `detail` (ErrorResponseDetail, required) — A plain error message, a list of field-level validation errors, a service validation error, or a domain error object with `reason` and `message`.

### 422 Unprocessable Entity Error

Validation Error

- `detail` (list of ValidationError, optional)

### 500 Internal Server Error

Internal Server Error - Failed to retrieve skill revision

- `detail` (ErrorResponseDetail, required) — A plain error message, a list of field-level validation errors, a service validation error, or a domain error object with `reason` and `message`.

## Types

### SkillCapabilities

- `schema_version` ("1.0.0", required) — Versioned schema identifier for the capability contract.
- `dependencies` (list of SkillCapabilitiesDependenciesItems, required) — Declarative dependency requirements for this skill revision.

### SkillRevisionFileContent

- `path` (string, required)
- `content` (string, required)
- `size_bytes` (integer, required) — The UTF-8 encoded file size in bytes.
- `size_kb` (double, required) — The UTF-8 encoded file size in kilobytes, rounded to 2 decimals.

### ErrorResponseDetail

A plain error message, a list of field-level validation errors, a service validation error, or a domain error object with `reason` and `message`.

- string
- list of ErrorResponseDetailOneOf1Items
- ErrorResponseDetail2
- ErrorResponseDetail3
- ErrorResponseDetail4

### ValidationError

- `loc` (list of ValidationErrorLocItems, required)
- `msg` (string, required)
- `type` (string, required)
- `input` (any, optional)
- `ctx` (ValidationErrorCtx, optional)

### SkillCapabilitiesDependenciesItems

- `type`: `integration` (IntegrationSkillDependency)
  - `id` (string, required) — Stable identifier for this dependency within the capability set.
  - `required` (boolean, required) — Whether the dependency must be resolvable for the skill to function.
  - `selector` (IntegrationCapabilitySelector, required)
  - `credential_policy` (enum, optional, nullable) — Credential policy required by this Integration dependency.
    - Allowed values: `invoker`, `fixed_connection`, `project_default`
- `type`: `mcp_server` (McpServerSkillDependency)
  - `id` (string, required) — Stable identifier for this dependency within the capability set.
  - `required` (boolean, required) — Whether the dependency must be resolvable for the skill to function.
  - `selector` (McpServerCapabilitySelector, required)
- `type`: `mcp_tool` (McpToolSkillDependency)
  - `id` (string, required) — Stable identifier for this dependency within the capability set.
  - `required` (boolean, required) — Whether the dependency must be resolvable for the skill to function.
  - `selector` (McpToolCapabilitySelector, required)
- `type`: `registered_tool` (RegisteredToolSkillDependency)
  - `id` (string, required) — Stable identifier for this dependency within the capability set.
  - `required` (boolean, required) — Whether the dependency must be resolvable for the skill to function.
  - `selector` (RegisteredToolCapabilitySelector, required)

### ErrorResponseDetailOneOf1Items

- `type` (string, required) — Error type identifier
- `loc` (list of ErrorResponseDetailOneOf1ItemsLocItems, optional) — Path to the error location. Integer segments index into a list.
- `msg` (string, optional) — Human-readable error message. Present on errors produced by FastAPI's own request validation.
- `message` (string, optional) — Human-readable error message. Used instead of `msg` by Rightbrain's own validators.

### ErrorResponseDetail2

Validation error returned by a service after request parsing, such as a Task clone dependency failure.

- `type` ("validation_error", required)
- `errors` (list of ErrorResponseDetailOneOf2ErrorsItems, required)

### ErrorResponseDetail3

Domain error raised via a brain.exc.BaseError subclass. The exact extra field name and shape vary by error type.

- `reason` (string, required) — Machine-readable, upper-snake-case error reason, e.g. RESOURCE_NOT_FOUND, PERMISSION_CHECK_FAILED, TAG_NAME_CONFLICT.
- `message` (string, required) — Human-readable error message

### ErrorResponseDetail4

Integration precondition failure. Uses `code` rather than `reason`, and carries no extra field. Raised by the Gmail trigger routes when the underlying integration is not authorized.

- `code` (string, required) — Machine-readable code, e.g. GMAIL_INTEGRATION_AUTH_REQUIRED.
- `message` (string, required) — Human-readable error message

### ValidationErrorLocItems

- string
- integer

### ValidationErrorCtx

### IntegrationCapabilitySelector

- `integration_type` (string, required) — Stable integration type identifier required by the skill.
- `tool_name` (string, required) — Integration tool name required by the skill.

### McpServerCapabilitySelector

- `mcp_server_slug` (string, required) — Canonical MCP server slug required by the skill.

### McpToolCapabilitySelector

- `mcp_server_slug` (string, required) — Canonical MCP server slug required by the skill.
- `tool_name` (string, required) — MCP tool name required by the skill.

### RegisteredToolCapabilitySelector

- `value` (string, required) — Stable registered tool key for the required capability.
- `kind` ("registered_key", optional, default: registered_key) — Selector kind for a platform-registered tool capability.

### ErrorResponseDetailOneOf1ItemsLocItems

- string
- integer

### ErrorResponseDetailOneOf2ErrorsItems

- `type` (string, required) — Error type identifier
- `loc` (list of ErrorResponseDetailOneOf2ErrorsItemsLocItems, optional) — Path to the error location. Integer segments index into a list.
- `msg` (string, optional) — Human-readable error message. Present on errors produced by FastAPI's own request validation.
- `message` (string, optional) — Human-readable error message. Used instead of `msg` by Rightbrain's own validators.

### ErrorResponseDetailOneOf2ErrorsItemsLocItems

- string
- integer

## Examples

### Revision with no tool dependencies

**Response**

```json
{
  "id": "019d6a01-2b20-7002-9c2b-3b6cad5f1002",
  "skill_id": "019d6a01-2b20-7001-9c2b-3b6cad5f1001",
  "instructions": "## When to use this skill\nUse this skill for 3P updates, company newsletters, FAQ responses and\nleadership updates.\n\n## How to use this skill\n1. Identify the communication type from the request.\n2. Load the matching reference file.\n3. Draft the communication in that format.\n",
  "skill_metadata": {},
  "capabilities": null,
  "annotation": "Imported from anthropics/skills",
  "created": "2026-03-25T14:47:34Z",
  "reference_files": [
    "3p-updates",
    "company-newsletter",
    "faq-answers",
    "general-comms"
  ],
  "asset_files": [],
  "reference_file_contents": [
    {
      "path": "3p-updates",
      "content": "Write a 3P update as three sections: Progress, Plans, Problems.\n",
      "size_bytes": 64,
      "size_kb": 0.06
    },
    {
      "path": "company-newsletter",
      "content": "Open with the single most important update, then three sections.\n",
      "size_bytes": 65,
      "size_kb": 0.06
    },
    {
      "path": "faq-answers",
      "content": "Answer in two sentences, then link the source of record.\n",
      "size_bytes": 57,
      "size_kb": 0.06
    },
    {
      "path": "general-comms",
      "content": "Lead with the decision, then the reason, then what changes.\n",
      "size_bytes": 60,
      "size_kb": 0.06
    }
  ],
  "asset_file_contents": [],
  "script_files": []
}
```

**SDK Code**

```python Revision with no tool dependencies
import requests

url = "https://app.rightbrain.ai/api/v1/skills/skill_id/revisions/revision_id"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript Revision with no tool dependencies
const url = 'https://app.rightbrain.ai/api/v1/skills/skill_id/revisions/revision_id';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Revision with no tool dependencies
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://app.rightbrain.ai/api/v1/skills/skill_id/revisions/revision_id"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Revision with no tool dependencies
require 'uri'
require 'net/http'

url = URI("https://app.rightbrain.ai/api/v1/skills/skill_id/revisions/revision_id")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java Revision with no tool dependencies
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://app.rightbrain.ai/api/v1/skills/skill_id/revisions/revision_id")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php Revision with no tool dependencies
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://app.rightbrain.ai/api/v1/skills/skill_id/revisions/revision_id', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp Revision with no tool dependencies
using RestSharp;

var client = new RestClient("https://app.rightbrain.ai/api/v1/skills/skill_id/revisions/revision_id");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift Revision with no tool dependencies
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://app.rightbrain.ai/api/v1/skills/skill_id/revisions/revision_id")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### Revision declaring tool dependencies

**Response**

```json
{
  "id": "019d6a03-4d40-7002-9e4d-5d8ecf713002",
  "skill_id": "019d6a03-4d40-7001-9e4d-5d8ecf713001",
  "instructions": "## When to use this skill\nUse this skill to review pipeline health, forecast accuracy and\ngo-to-market efficiency.\n",
  "skill_metadata": {
    "managed": true,
    "team": "revenue_operations"
  },
  "capabilities": {
    "schema_version": "1.0.0",
    "dependencies": [
      {
        "type": "registered_tool",
        "id": "pipeline-analyzer",
        "required": true,
        "selector": {
          "value": "pipeline-analyzer",
          "kind": "registered_key"
        }
      },
      {
        "type": "registered_tool",
        "id": "forecast-accuracy-tracker",
        "required": true,
        "selector": {
          "value": "forecast-accuracy-tracker",
          "kind": "registered_key"
        }
      }
    ]
  },
  "annotation": "Imported with a capability manifest",
  "created": "2026-04-17T10:06:53Z",
  "reference_files": [
    "revops-metrics-guide.md"
  ],
  "asset_files": [
    "sample_pipeline_data.json"
  ],
  "reference_file_contents": [
    {
      "path": "revops-metrics-guide.md",
      "content": "# RevOps metrics\n\nDefinitions for pipeline coverage and win rate.\n",
      "size_bytes": 66,
      "size_kb": 0.06
    }
  ],
  "asset_file_contents": [
    {
      "path": "sample_pipeline_data.json",
      "content": "{\"opportunities\": [{\"stage\": \"proposal\", \"value\": 42000}]}\n",
      "size_bytes": 59,
      "size_kb": 0.06
    }
  ],
  "script_files": []
}
```

**SDK Code**

```python Revision declaring tool dependencies
import requests

url = "https://app.rightbrain.ai/api/v1/skills/skill_id/revisions/revision_id"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript Revision declaring tool dependencies
const url = 'https://app.rightbrain.ai/api/v1/skills/skill_id/revisions/revision_id';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Revision declaring tool dependencies
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://app.rightbrain.ai/api/v1/skills/skill_id/revisions/revision_id"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Revision declaring tool dependencies
require 'uri'
require 'net/http'

url = URI("https://app.rightbrain.ai/api/v1/skills/skill_id/revisions/revision_id")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java Revision declaring tool dependencies
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://app.rightbrain.ai/api/v1/skills/skill_id/revisions/revision_id")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php Revision declaring tool dependencies
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://app.rightbrain.ai/api/v1/skills/skill_id/revisions/revision_id', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp Revision declaring tool dependencies
using RestSharp;

var client = new RestClient("https://app.rightbrain.ai/api/v1/skills/skill_id/revisions/revision_id");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift Revision declaring tool dependencies
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://app.rightbrain.ai/api/v1/skills/skill_id/revisions/revision_id")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```