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

# Listar prompts

## Propósito

Lista prompts de um projeto, com metadados e `latest_version_id`.

## Parâmetros

* `project_id` (query, string) obrigatório

## Dados retornados

Array com `id`, `project_id`, `key`, `name`, `description`, `latest_version_id`, `created_at`.

## Exemplo de requisição

```bash theme={null}
curl -H "X-API-Key: ak_xxxxxxxxx" \
  "${BASE_URL}/v1/integration/prompts?project_id=proj_abc"
```

## Exemplo de resposta

```json theme={null}
[
  {
    "id": "pr_1",
    "project_id": "proj_abc",
    "key": "welcome",
    "name": "Boas-vindas",
    "description": null,
    "latest_version_id": "ver_12",
    "created_at": "2025-11-27T12:00:00Z"
  }
]
```

## Códigos de status

* 200 Sucesso
* 404 Projeto não encontrado ou não pertence ao workspace
* 403 Projeto não autorizado pela API Key

## Casos de uso

* Carregar a lista de prompts para edição ou consumo


## OpenAPI

````yaml api-reference/openapi.json get /v1/integration/prompts
openapi: 3.0.3
info:
  title: Propty Integration API
  version: 1.0.0
servers:
  - url: https://api.aivra.cloud
security:
  - ApiKeyAuth: []
paths:
  /v1/integration/prompts:
    get:
      summary: List prompts
      parameters:
        - in: query
          name: project_id
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/PromptListResponse'
components:
  schemas:
    PromptListResponse:
      type: object
      properties:
        id:
          type: string
        project_id:
          type: string
        key:
          type: string
        name:
          type: string
        description:
          type: string
          nullable: true
        latest_version_id:
          type: string
          nullable: true
        created_at:
          type: string
          format: date-time
          nullable: true
      required:
        - id
        - project_id
        - key
        - name
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key

````