---
agentTools:
  projectIndex: https://reineed-doc.readme.io/llms.txt
---

# Get Prompt

Get a single prompt by id

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Reineed",
    "description": "Seamlessly craft your own AI agents",
    "contact": {
      "name": "Yu",
      "email": "yu@reineed.com.au"
    },
    "version": "1.0.1"
  },
  "servers": [
    {
      "url": "https://reineed-be-3qiddja7xa-ts.a.run.app/api/v1",
      "description": "prod"
    },
    {
      "url": "/api/v1",
      "description": "Default, relative server"
    }
  ],
  "paths": {
    "/get-prompt": {
      "get": {
        "summary": "Get Prompt",
        "description": "Get prompts from a branch",
        "operationId": "get_prompt_get_prompt_get",
        "parameters": [
          {
            "name": "prompt_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "example": "5eb7cf5a86d9755df3a6c593",
              "title": "Prompt Id"
            }
          },
          {
            "name": "api-key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Your API key",
              "title": "Api-Key"
            },
            "description": "Your API key"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Response Get Prompt Get Prompt Get"
                }
              }
            }
          },
          "401": {
            "description": "No api key provided",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "You don't have access to this prompt",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "API key not found | prompt not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ErrorResponse": {
        "properties": {
          "detail": {
            "type": "string",
            "title": "Detail"
          }
        },
        "type": "object",
        "required": [
          "detail"
        ],
        "title": "ErrorResponse"
      },
      "HTTPValidationError": {
        "properties": {
          "detail": {
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            },
            "type": "array",
            "title": "Detail"
          }
        },
        "type": "object",
        "title": "HTTPValidationError"
      },
      "ValidationError": {
        "properties": {
          "loc": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            },
            "type": "array",
            "title": "Location"
          },
          "msg": {
            "type": "string",
            "title": "Message"
          },
          "type": {
            "type": "string",
            "title": "Error Type"
          }
        },
        "type": "object",
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "title": "ValidationError"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 101,
      "1": 1,
      "2": 200,
      "3": 201,
      "4": 19,
      "5": 201,
      "6": 123,
      "7": 0,
      "8": 116,
      "9": 117,
      "10": 11,
      "11": 62
    }
  }
}
```