> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pre.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Get a proposal

> Retrieve an uploaded proposal by its ID.

Use the `proposalId` from upload or `_id` from listing:

```bash theme={null}
curl --fail-with-body "https://api.pre.dev/get-proposal/$PROPOSAL_ID" \
  -H "Authorization: Bearer $PREDEV_API_KEY"
```

The response is the proposal object itself, not a `{ proposal: … }` envelope. It can include `proposalName`, `proposalContent`, `proposalFile`, `createdAt`, and `updatedAt`. A malformed ID returns `400`; an unknown ID returns `404`.


## OpenAPI

````yaml api-reference/openapi.json GET /get-proposal/{proposalId}
openapi: 3.1.0
info:
  title: pre.dev API
  description: >-
    Public REST API for software specifications, browser automation, proposal
    assessment, and credit balance. Base URL: https://api.pre.dev. MCP is
    documented separately at https://docs.pre.dev/mcp/tools.
  version: 1.1.0
  contact:
    name: pre.dev Support
    url: https://pre.dev
    email: support@pre.dev
  license:
    name: Proprietary
    url: https://pre.dev/terms
servers:
  - url: https://api.pre.dev
    description: Production API Server
security:
  - apiKeyAuth: []
  - xApiKey: []
tags:
  - name: Specifications
  - name: Browser Agents
  - name: Proposals
  - name: Account
paths:
  /get-proposal/{proposalId}:
    get:
      tags:
        - Proposals
      summary: Get a proposal
      description: Retrieve a stored proposal by ID.
      operationId: getProposal
      parameters:
        - name: proposalId
          in: path
          required: true
          schema:
            type: string
            description: 24-character record ID.
            pattern: ^[a-fA-F0-9]{24}$
      responses:
        '200':
          description: Stored proposal.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Proposal'
        '400':
          description: Invalid request.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing, invalid, or ineligible authentication.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Record unavailable.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Request failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Proposal:
      type: object
      required:
        - _id
        - proposalName
      properties:
        _id:
          type: string
          description: 24-character record ID.
          pattern: ^[a-fA-F0-9]{24}$
        proposalName:
          type: string
        proposalContent:
          type: string
        proposalFile:
          anyOf:
            - $ref: '#/components/schemas/ProposalFile'
            - type: 'null'
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
      description: Stored proposal. Additional metadata can be present.
      additionalProperties: true
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: string
        message:
          type: string
          description: Optional detail; not returned by every endpoint.
        code:
          type: string
          description: Machine-readable code when available.
        actionUrl:
          type: string
          format: uri
        requiresSubscription:
          type: boolean
        trialsUsed:
          type: integer
        maxTrials:
          type: integer
      additionalProperties: true
    ProposalFile:
      type: object
      properties:
        fileName:
          type: string
        fileUrl:
          type: string
          format: uri
        fileType:
          type: string
        fileSize:
          type: integer
          description: Bytes.
        uploadedAt:
          type: string
          format: date-time
      additionalProperties: true
  securitySchemes:
    apiKeyAuth:
      type: http
      scheme: bearer
      bearerFormat: API key
      description: Use a pre.dev API key from https://pre.dev/projects/key.
    xApiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: 'Alternative to Authorization: Bearer.'

````