Pineprompt Projects API

A project represents a single brand or site you would like to monitor. Each project owns its own prompts, brands, monitors, and sources.

GitHub OpenAPI

Operations 5

GET /api/v1/projects List projects #
POST /api/v1/projects Create a project #
GET /api/v1/projects/{project} Get a project #
DELETE /api/v1/projects/{project} Delete a project #
PATCH /api/v1/projects/{project} Update a project #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/pineprompt-com:pineprompt-com-projects-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

pineprompt-com-projects-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Pineprompt Projects API
  description: 'The Pineprompt REST API gives you programmatic access to everything Pineprompt monitors on your behalf: how ChatGPT, Gemini, Claude, Google AI Overview, and Google AI Mode answer questions about your brand. Grok is listed but temporarily unavailable.'
  contact:
    name: Pineprompt Support
    email: support@pineprompt.com
  version: 1.0.0
servers:
- url: https://pineprompt.com
  description: Production
tags:
- name: Projects
  description: A project represents a single brand or site you would like to monitor. Each project owns its own prompts, brands, monitors, and sources.
  x-title: Projects
  x-objects:
  - Project
paths:
  /api/v1/projects:
    get:
      tags:
      - Projects
      summary: List projects
      description: Returns every project belonging to the active organization. The response is paginated.
      operationId: list-projects
      parameters:
      - $ref: '#/components/parameters/Page'
      - $ref: '#/components/parameters/PerPage'
      - name: sort_by
        in: query
        description: The column to sort by. Defaults to `created_at`.
        required: false
        schema:
          type: string
          enum:
          - created_at
          - updated_at
          - name
      - $ref: '#/components/parameters/SortOrder'
      - $ref: '#/components/parameters/IncludeProject'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProjectList'
        '401':
          description: Unauthorized
          x-auto-injected: true
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
              example:
                message: Unauthenticated.
        '403':
          description: Missing ability
          x-auto-injected: true
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
              example:
                message: 'Missing ability: projects:read'
        '422':
          description: Validation failed
          x-auto-injected: true
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationErrorEnvelope'
              example:
                message: Invalid sort_by value.
                errors:
                  sort_by:
                  - Invalid sort_by value.
      security:
      - BearerToken:
        - projects:read
      x-codeSamples:
      - lang: bash
        label: cURL
        source: "curl -X GET https://pineprompt.com/api/v1/projects \\\n  -H \"Authorization: Bearer $PINEPROMPT_TOKEN\""
      - lang: javascript
        label: JavaScript (fetch)
        source: "const response = await fetch(\"https://pineprompt.com/api/v1/projects\", {\n  method: \"GET\",\n  headers: {\n    \"Authorization\": `Bearer ${process.env.PINEPROMPT_TOKEN}`,\n  },\n});\n\nif (!response.ok) throw new Error(`Request failed: ${response.status}`);\n\nconst payload = await response.json();"
      - lang: python
        label: Python (requests)
        source: "import os\nimport requests\n\nresponse = requests.get(\n    \"https://pineprompt.com/api/v1/projects\",\n    headers={\n        \"Authorization\": f\"Bearer {os.environ['PINEPROMPT_TOKEN']}\",\n    },\n)\n\nresponse.raise_for_status()\npayload = response.json()"
      - lang: php
        label: PHP (Guzzle)
        source: "use GuzzleHttp\\Client;\n\n$response = (new Client())->get('https://pineprompt.com/api/v1/projects', [\n    'headers' => [\n        'Authorization' => 'Bearer '.getenv('PINEPROMPT_TOKEN'),\n    ],\n]);\n\n// Guzzle throws on 4xx/5xx by default, so no manual check needed.\n$payload = json_decode((string) $response->getBody(), true);"
    post:
      tags:
      - Projects
      summary: Create a project
      description: Creates a new project inside the active organization.
      operationId: create-project
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/StoreProject'
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Project'
        '401':
          description: Unauthorized
          x-auto-injected: true
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
              example:
                message: Unauthenticated.
        '403':
          description: Missing ability
          x-auto-injected: true
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
              example:
                message: 'Missing ability: projects:write'
        '422':
          description: Validation failed
          x-auto-injected: true
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationErrorEnvelope'
              example:
                message: The field name is required.
                errors:
                  field_name:
                  - The field name is required.
      security:
      - BearerToken:
        - projects:write
      x-codeSamples:
      - lang: bash
        label: cURL
        source: "curl -X POST https://pineprompt.com/api/v1/projects \\\n  -H \"Authorization: Bearer $PINEPROMPT_TOKEN\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"name\": \"Acme Marketing\"\n}'"
      - lang: javascript
        label: JavaScript (fetch)
        source: "const response = await fetch(\"https://pineprompt.com/api/v1/projects\", {\n  method: \"POST\",\n  headers: {\n    \"Authorization\": `Bearer ${process.env.PINEPROMPT_TOKEN}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\n    name: \"Acme Marketing\",\n  }),\n});\n\nif (!response.ok) throw new Error(`Request failed: ${response.status}`);\n\nconst payload = await response.json();"
      - lang: python
        label: Python (requests)
        source: "import os\nimport requests\n\nresponse = requests.post(\n    \"https://pineprompt.com/api/v1/projects\",\n    headers={\n        \"Authorization\": f\"Bearer {os.environ['PINEPROMPT_TOKEN']}\",\n        \"Content-Type\": \"application/json\",\n    },\n    json={\n        \"name\": \"Acme Marketing\",\n    },\n)\n\nresponse.raise_for_status()\npayload = response.json()"
      - lang: php
        label: PHP (Guzzle)
        source: "use GuzzleHttp\\Client;\n\n$response = (new Client())->post('https://pineprompt.com/api/v1/projects', [\n    'headers' => [\n        'Authorization' => 'Bearer '.getenv('PINEPROMPT_TOKEN'),\n    ],\n    'json' => [\n        'name' => 'Acme Marketing',\n    ],\n]);\n\n// Guzzle throws on 4xx/5xx by default, so no manual check needed.\n$payload = json_decode((string) $response->getBody(), true);"
  /api/v1/projects/{project}:
    get:
      tags:
      - Projects
      summary: Get a project
      description: Returns a single project. The project must belong to the active organization.
      operationId: get-project
      parameters:
      - name: project
        in: path
        description: The numeric ID of the project.
        required: true
        schema:
          type: integer
          example: 42
      - $ref: '#/components/parameters/IncludeProject'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Project'
        '401':
          description: Unauthorized
          x-auto-injected: true
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
              example:
                message: Unauthenticated.
        '403':
          description: Missing ability
          x-auto-injected: true
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
              example:
                message: 'Missing ability: projects:read'
        '404':
          description: Not found
          x-auto-injected: true
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
              example:
                message: Project not found.
        '422':
          description: Validation failed
          x-auto-injected: true
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationErrorEnvelope'
              example:
                message: Invalid sort_by value.
                errors:
                  sort_by:
                  - Invalid sort_by value.
      security:
      - BearerToken:
        - projects:read
      x-codeSamples:
      - lang: bash
        label: cURL
        source: "curl -X GET https://pineprompt.com/api/v1/projects/42 \\\n  -H \"Authorization: Bearer $PINEPROMPT_TOKEN\""
      - lang: javascript
        label: JavaScript (fetch)
        source: "const response = await fetch(\"https://pineprompt.com/api/v1/projects/42\", {\n  method: \"GET\",\n  headers: {\n    \"Authorization\": `Bearer ${process.env.PINEPROMPT_TOKEN}`,\n  },\n});\n\nif (!response.ok) throw new Error(`Request failed: ${response.status}`);\n\nconst payload = await response.json();"
      - lang: python
        label: Python (requests)
        source: "import os\nimport requests\n\nresponse = requests.get(\n    \"https://pineprompt.com/api/v1/projects/42\",\n    headers={\n        \"Authorization\": f\"Bearer {os.environ['PINEPROMPT_TOKEN']}\",\n    },\n)\n\nresponse.raise_for_status()\npayload = response.json()"
      - lang: php
        label: PHP (Guzzle)
        source: "use GuzzleHttp\\Client;\n\n$response = (new Client())->get('https://pineprompt.com/api/v1/projects/42', [\n    'headers' => [\n        'Authorization' => 'Bearer '.getenv('PINEPROMPT_TOKEN'),\n    ],\n]);\n\n// Guzzle throws on 4xx/5xx by default, so no manual check needed.\n$payload = json_decode((string) $response->getBody(), true);"
    delete:
      tags:
      - Projects
      summary: Delete a project
      description: Deletes a project. The delete cascades to every monitor, prompt, tag, and segment the project owns. Its brands and sources are removed together with the project.
      operationId: delete-project
      parameters:
      - name: project
        in: path
        description: The numeric ID of the project.
        required: true
        schema:
          type: integer
          example: 42
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          x-auto-injected: true
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
              example:
                message: Unauthenticated.
        '403':
          description: Missing ability
          x-auto-injected: true
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
              example:
                message: 'Missing ability: projects:write'
        '404':
          description: Not found
          x-auto-injected: true
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
              example:
                message: Project not found.
      security:
      - BearerToken:
        - projects:write
      x-codeSamples:
      - lang: bash
        label: cURL
        source: "curl -X DELETE https://pineprompt.com/api/v1/projects/42 \\\n  -H \"Authorization: Bearer $PINEPROMPT_TOKEN\""
      - lang: javascript
        label: JavaScript (fetch)
        source: "const response = await fetch(\"https://pineprompt.com/api/v1/projects/42\", {\n  method: \"DELETE\",\n  headers: {\n    \"Authorization\": `Bearer ${process.env.PINEPROMPT_TOKEN}`,\n  },\n});\n\nif (!response.ok) throw new Error(`Request failed: ${response.status}`);\n\nconst payload = await response.json();"
      - lang: python
        label: Python (requests)
        source: "import os\nimport requests\n\nresponse = requests.delete(\n    \"https://pineprompt.com/api/v1/projects/42\",\n    headers={\n        \"Authorization\": f\"Bearer {os.environ['PINEPROMPT_TOKEN']}\",\n    },\n)\n\nresponse.raise_for_status()\npayload = response.json()"
      - lang: php
        label: PHP (Guzzle)
        source: "use GuzzleHttp\\Client;\n\n$response = (new Client())->delete('https://pineprompt.com/api/v1/projects/42', [\n    'headers' => [\n        'Authorization' => 'Bearer '.getenv('PINEPROMPT_TOKEN'),\n    ],\n]);\n\n// Guzzle throws on 4xx/5xx by default, so no manual check needed.\n$payload = json_decode((string) $response->getBody(), true);"
    patch:
      tags:
      - Projects
      summary: Update a project
      description: Updates a project. Every field is optional, so you may send only the fields you would like to change; a field that is omitted keeps its current value. Pass `brand_id` to designate the project's own brand, or `null` to leave the project without one.
      operationId: update-project
      parameters:
      - name: project
        in: path
        description: The numeric ID of the project.
        required: true
        schema:
          type: integer
          example: 42
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateProject'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Project'
        '401':
          description: Unauthorized
          x-auto-injected: true
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
              example:
                message: Unauthenticated.
        '403':
          description: Missing ability
          x-auto-injected: true
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
              example:
                message: 'Missing ability: projects:write'
        '404':
          description: Not found
          x-auto-injected: true
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
              example:
                message: Project not found.
        '422':
          description: Validation failed
          x-auto-injected: true
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationErrorEnvelope'
              example:
                message: The field name is required.
                errors:
                  field_name:
                  - The field name is required.
      security:
      - BearerToken:
        - projects:write
      x-codeSamples:
      - lang: bash
        label: cURL
        source: "curl -X PATCH https://pineprompt.com/api/v1/projects/42 \\\n  -H \"Authorization: Bearer $PINEPROMPT_TOKEN\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"name\": \"Acme Marketing\",\n    \"brand_id\": 555\n}'"
      - lang: javascript
        label: JavaScript (fetch)
        source: "const response = await fetch(\"https://pineprompt.com/api/v1/projects/42\", {\n  method: \"PATCH\",\n  headers: {\n    \"Authorization\": `Bearer ${process.env.PINEPROMPT_TOKEN}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\n    name: \"Acme Marketing\",\n    brand_id: 555,\n  }),\n});\n\nif (!response.ok) throw new Error(`Request failed: ${response.status}`);\n\nconst payload = await response.json();"
      - lang: python
        label: Python (requests)
        source: "import os\nimport requests\n\nresponse = requests.patch(\n    \"https://pineprompt.com/api/v1/projects/42\",\n    headers={\n        \"Authorization\": f\"Bearer {os.environ['PINEPROMPT_TOKEN']}\",\n        \"Content-Type\": \"application/json\",\n    },\n    json={\n        \"name\": \"Acme Marketing\",\n        \"brand_id\": 555,\n    },\n)\n\nresponse.raise_for_status()\npayload = response.json()"
      - lang: php
        label: PHP (Guzzle)
        source: "use GuzzleHttp\\Client;\n\n$response = (new Client())->patch('https://pineprompt.com/api/v1/projects/42', [\n    'headers' => [\n        'Authorization' => 'Bearer '.getenv('PINEPROMPT_TOKEN'),\n    ],\n    'json' => [\n        'name' => 'Acme Marketing',\n        'brand_id' => 555,\n    ],\n]);\n\n// Guzzle throws on 4xx/5xx by default, so no manual check needed.\n$payload = json_decode((string) $response->getBody(), true);"
components:
  parameters:
    PerPage:
      name: per_page
      in: query
      description: The number of items per page. Defaults to `25`, maximum `100`.
      required: false
      schema:
        type: integer
        example: 25
    Page:
      name: page
      in: query
      description: The page number to return. Defaults to `1`.
      required: false
      schema:
        type: integer
        example: 1
    IncludeProject:
      name: include
      in: query
      description: 'A comma-separated list of related resources to include in the response. Allowed values: `organization`.'
      required: false
      schema:
        type: string
        example: organization
    SortOrder:
      name: sort_order
      in: query
      description: The direction to sort by. Each endpoint has its own default.
      required: false
      schema:
        type: string
        enum:
        - asc
        - desc
  schemas:
    PaginationLink:
      title: Pagination link
      properties:
        url:
          description: The URL for this link, or `null` for the disabled previous and next boundaries.
          type:
          - string
          - 'null'
          example: https://pineprompt.com/api/v1/monitors?page=2
        label:
          description: The label for this link, either a page number or a localized previous or next caption.
          type: string
          example: '2'
        page:
          description: The page number this link points to, or `null` for the disabled previous and next boundaries.
          type:
          - integer
          - 'null'
          example: 2
        active:
          description: Whether this link is the page currently being returned.
          type: boolean
          example: false
      type: object
    PaginationMeta:
      title: Pagination metadata
      properties:
        current_page:
          type: integer
          example: 1
        from:
          type:
          - integer
          - 'null'
          example: 1
        last_page:
          type: integer
          example: 1
        path:
          type: string
          example: https://pineprompt.com/api/v1/monitors
        per_page:
          type: integer
          example: 25
        to:
          type:
          - integer
          - 'null'
          example: 1
        total:
          type: integer
          example: 1
        links:
          description: The page-link rows, in display order from the first page through the last. The set always opens with a previous link and closes with a next link.
          type: array
          items:
            $ref: '#/components/schemas/PaginationLink'
      type: object
    PaginationLinks:
      title: Pagination links
      properties:
        first:
          type:
          - string
          - 'null'
          example: https://pineprompt.com/api/v1/monitors?page=1
        last:
          type:
          - string
          - 'null'
          example: https://pineprompt.com/api/v1/monitors?page=1
        prev:
          type:
          - string
          - 'null'
          example: null
        next:
          type:
          - string
          - 'null'
          example: null
      type: object
    ProjectList:
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/Project'
        links:
          $ref: '#/components/schemas/PaginationLinks'
        meta:
          $ref: '#/components/schemas/PaginationMeta'
      type: object
    StoreProject:
      title: Create a project
      required:
      - name
      properties:
        name:
          description: The display name of the new project. May be up to <strong>120</strong> characters.
          type: string
          example: Acme Marketing
          maxLength: 120
      type: object
      x-form-request: App\Http\Requests\Projects\StoreProjectRequest
    UpdateProject:
      title: Update a project
      properties:
        name:
          description: The new display name for the project. May be up to <strong>120</strong> characters.
          type: string
          example: Acme Marketing
          maxLength: 120
          minLength: 1
        brand_id:
          description: The id of the brand to designate as the project's own brand, the one visibility is anchored against. The brand must belong to the project; it leaves any segments and sheds any ignored mark as it takes the role. Pass null to leave the project without an own brand.
          type:
          - integer
          - 'null'
          example: 555
      type: object
      x-form-request: App\Http\Requests\Projects\UpdateProjectRequest
    Project:
      title: The project object
      description: A project represents a single brand or site you monitor. Its `brand_id` names the own brand, the brand every core metric is computed for.
      properties:
        id:
          description: The unique ID of the project.
          type: integer
          example: 42
        organization_id:
          description: The ID of the organization that owns the project.
          type: integer
          example: 7
        name:
          description: The display name of the project.
          type: string
          example: Acme Marketing
        brand_id:
          description: The ID of the project's own brand, or null while none has been designated.
          type:
          - integer
          - 'null'
          example: 555
        organization:
          description: The parent organization. Returned when requested via `include=organization`.
          allOf:
          - $ref: '#/components/schemas/Organization'
          x-relation: include
        created_at:
          description: When the project was created.
          type: string
          format: date-time
          example: '2026-05-15T09:11:42+00:00'
        updated_at:
          description: When the project was last updated.
          type: string
          format: date-time
          example: '2026-05-15T09:11:42+00:00'
      type: object
    ErrorEnvelope:
      properties:
        message:
          type: string
      type: object
    Organization:
      title: The organization object
      description: An organization is the top-level billing entity and tenant boundary in Pineprompt. Every project, member, and API key belongs to exactly one organization.
      properties:
        id:
          description: The unique ID of the organization.
          type: integer
          example: 7
        name:
          description: The display name of the organization.
          type: string
          example: Acme Inc.
        plan:
          description: The key of the active plan, or null when the organization has no active subscription (including a past-due one). Without an active plan, daily monitor runs and write operations are unavailable.
          type:
          - string
          - 'null'
          example: pro
        billing_url:
          description: The billing page where the organization owner can choose a plan or fix a failed payment. Only set when the organization has no active plan and the request is made in the owner membership context (MCP organization tools); always null over the REST API.
          type:
          - string
          - 'null'
          format: uri
          example: https://pineprompt.io/settings/organizations/7/billing
        created_at:
          description: When the organization was created.
          type: string
          format: date-time
          example: '2026-05-15T09:11:42+00:00'
        updated_at:
          description: When the organization was last updated.
          type: string
          format: date-time
          example: '2026-05-15T09:11:42+00:00'
      type: object
    ValidationErrorEnvelope:
      properties:
        message:
          type: string
        errors:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
      type: object
  securitySchemes:
    BearerToken:
      type: http
      description: An API key bound to a single organization.
      bearerFormat: Pineprompt API Key
      scheme: bearer