Pineprompt Organizations API

An organization is the top-level billing entity and tenant boundary in Pineprompt. Every project, member, monitor, prompt, brand, and source belongs to exactly one organization.

GitHub OpenAPI

Operations 2

GET /api/v1/organization Get the active organization #
PATCH /api/v1/organization Update the active organization #

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-organizations-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-organizations-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Pineprompt Organizations 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: Organizations
  description: An organization is the top-level billing entity and tenant boundary in Pineprompt. Every project, member, monitor, prompt, brand, and source belongs to exactly one organization.
  x-title: Organizations
  x-objects:
  - Organization
paths:
  /api/v1/organization:
    get:
      tags:
      - Organizations
      summary: Get the active organization
      description: Returns the organization the API key is bound to.
      operationId: get-organization
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Organization'
        '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: organization:read'
      security:
      - BearerToken:
        - organization:read
      x-codeSamples:
      - lang: bash
        label: cURL
        source: "curl -X GET https://pineprompt.com/api/v1/organization \\\n  -H \"Authorization: Bearer $PINEPROMPT_TOKEN\""
      - lang: javascript
        label: JavaScript (fetch)
        source: "const response = await fetch(\"https://pineprompt.com/api/v1/organization\", {\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/organization\",\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/organization', [\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:
      - Organizations
      summary: Update the active organization
      description: Updates the active organization. At the moment, only the display name may be changed.
      operationId: update-organization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateOrganization'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Organization'
        '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: organization:manage'
        '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:
        - organization:manage
      x-codeSamples:
      - lang: bash
        label: cURL
        source: "curl -X PATCH https://pineprompt.com/api/v1/organization \\\n  -H \"Authorization: Bearer $PINEPROMPT_TOKEN\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"name\": \"Acme Inc.\"\n}'"
      - lang: javascript
        label: JavaScript (fetch)
        source: "const response = await fetch(\"https://pineprompt.com/api/v1/organization\", {\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 Inc.\",\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/organization\",\n    headers={\n        \"Authorization\": f\"Bearer {os.environ['PINEPROMPT_TOKEN']}\",\n        \"Content-Type\": \"application/json\",\n    },\n    json={\n        \"name\": \"Acme Inc.\",\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/organization', [\n    'headers' => [\n        'Authorization' => 'Bearer '.getenv('PINEPROMPT_TOKEN'),\n    ],\n    'json' => [\n        'name' => 'Acme Inc.',\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:
  schemas:
    ErrorEnvelope:
      properties:
        message:
          type: string
      type: object
    UpdateOrganization:
      title: Update the active organization
      properties:
        name:
          description: The new display name for the organization. May be up to <strong>80</strong> characters.
          type: string
          example: Acme Inc.
          maxLength: 80
          minLength: 1
      type: object
      x-form-request: App\Http\Requests\Organizations\UpdateOrganizationRequest
    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