code

Get a tool's code

Get the files of the code a tool your team built runs now, with the tool's versions and your team's draft of it.

  • 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.
  • draft holds the files your team's draft changes from its base version, or is null when the tool has no draft.
  • A draft copies its base version. When a later version went live, such as a repair, draft.base_files holds the base version's text of each of your team's files that differs.
  • Another account's tool, a catalog tool your team only added, or an archived tool is not found.
get/v1/code/{id}

Request

  • Base URL: https://api.pomerado.ai
  • URL: https://api.pomerado.ai/v1/code/{id}
  • Auth: HTTP bearer

Path parameters

idstring required
Example:tool_0f8e2d1c4b3a49e8a7f6e5d4c3b2a190

a tool ID: tool_ and 32 lowercase hex digits

Response

The tool's live code and versions

input_schemaobject required

What the live version's input takes, as JSON Schema

Example response

{
  "integration": {
    "id": "int_0f8e2d1c4b3a49e8a7f6e5d4c3b2a190",
    "tools": [
      {
        "id": "tool_0f8e2d1c4b3a49e8a7f6e5d4c3b2a190"
      }
    ]
  },
  "tool": {
    "id": "tool_0f8e2d1c4b3a49e8a7f6e5d4c3b2a190"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.