Get a tool's code
curl --request GET \
--url https://api.pomerado.ai/v1/code/{id} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.pomerado.ai/v1/code/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.pomerado.ai/v1/code/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"integration": {
"id": "int_0f8e2d1c4b3a49e8a7f6e5d4c3b2a190",
"name": "<string>",
"site_url": "<string>",
"visibility": "public",
"tools": [
{
"id": "tool_0f8e2d1c4b3a49e8a7f6e5d4c3b2a190",
"name": "<string>",
"effect": "read",
"live_version": {
"number": 123,
"published_at": "<string>",
"change": "build",
"requested_by": {
"user_id": "<string>",
"name": "<string>",
"email": "<string>"
}
}
}
]
},
"tool": {
"id": "tool_0f8e2d1c4b3a49e8a7f6e5d4c3b2a190",
"name": "<string>",
"effect": "read",
"live_version": {
"number": 123,
"published_at": "<string>",
"change": "build",
"requested_by": {
"user_id": "<string>",
"name": "<string>",
"email": "<string>"
}
}
},
"versions": [
{
"number": 123,
"published_at": "<string>",
"change": "build",
"requested_by": {
"user_id": "<string>",
"name": "<string>",
"email": "<string>"
}
}
],
"files": [
{
"path": "<string>",
"source": "team",
"bytes": 123,
"content": "<string>"
}
]
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"docs_url": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"docs_url": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"docs_url": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"docs_url": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"docs_url": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"docs_url": "<string>",
"details": {}
}
}Tools and integrations
Get a tool's code
Get the files of the code a tool your team built runs now, read only, with the tool’s versions.
GET
/
v1
/
code
/
{id}
Get a tool's code
curl --request GET \
--url https://api.pomerado.ai/v1/code/{id} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.pomerado.ai/v1/code/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.pomerado.ai/v1/code/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"integration": {
"id": "int_0f8e2d1c4b3a49e8a7f6e5d4c3b2a190",
"name": "<string>",
"site_url": "<string>",
"visibility": "public",
"tools": [
{
"id": "tool_0f8e2d1c4b3a49e8a7f6e5d4c3b2a190",
"name": "<string>",
"effect": "read",
"live_version": {
"number": 123,
"published_at": "<string>",
"change": "build",
"requested_by": {
"user_id": "<string>",
"name": "<string>",
"email": "<string>"
}
}
}
]
},
"tool": {
"id": "tool_0f8e2d1c4b3a49e8a7f6e5d4c3b2a190",
"name": "<string>",
"effect": "read",
"live_version": {
"number": 123,
"published_at": "<string>",
"change": "build",
"requested_by": {
"user_id": "<string>",
"name": "<string>",
"email": "<string>"
}
}
},
"versions": [
{
"number": 123,
"published_at": "<string>",
"change": "build",
"requested_by": {
"user_id": "<string>",
"name": "<string>",
"email": "<string>"
}
}
],
"files": [
{
"path": "<string>",
"source": "team",
"bytes": 123,
"content": "<string>"
}
]
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"docs_url": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"docs_url": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"docs_url": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"docs_url": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"docs_url": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"docs_url": "<string>",
"details": {}
}
}Details
Details
- Business accounts only.
- files holds the live version’s files: source team for the files its build wrote, pomerado for the files Pomerado added to run them.
- Another account’s tool, a catalog tool your team only added, or an archived tool is not found.
- Callers: an API key, an MCP OAuth token or a Dashboard session.
-
Permission:
tools:read. - Effect: Changes nothing.
-
Errors:
business_account_required,not_found, and the errors any request can get.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
a tool ID: tool_ and 32 lowercase hex digits
Example:
"tool_0f8e2d1c4b3a49e8a7f6e5d4c3b2a190"