Pipecorn Personas API

Pipecorn Personas API

GitHub OpenAPI

Operations 5

GET /personas Retrieve all personas #
POST /personas Create a new persona #
GET /personas/{uuid} Retrieve a specific persona #
PUT /personas/{uuid} Update a persona #
DELETE /personas/{uuid} Delete a persona #

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/pipecorn-com:pipecorn-com-personas-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

pipecorn-com-personas-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Pipecorn Personas API
  version: 2.0.0
  description: 'Search companies and people, enrich them with a verified work email and mobile number, and read buying signals.


    Authenticate with your API key in the X-API-KEY header. Enrichment spends credits (an email costs 3, a mobile 30); extraction spends plan quotas.

    A 402 with code insufficient_credits means the credit balance is empty, a 403 with code workspace_limit_exceeded means a workspace admin capped this member, a 422 "Plan limit reached." means an extraction quota ran out, a 429 means slow down.

    Responses from endpoints under the plan rate limit carry RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset; a 429 adds Retry-After. Send an Idempotency-Key header on a POST to retry it without running or paying twice. Async enrichment returns a Location status URL; list endpoints page with cursor.


    Docs: https://docs.pipecorn.com/api-reference/overview. Agent guide: https://docs.pipecorn.com/agents.md.

    The same data is available over MCP at https://mcp.pipecorn.com/mcp.

    Synchronous enrichment, on another host, has its own spec: https://pipecorn.com/openapi/sync-enrichment.json.'
  contact:
    name: Pipecorn
    url: https://pipecorn.com/contact
  termsOfService: https://pipecorn.com/terms-of-service
  x-logo:
    url: https://pipecorn.com/assets/logo-pipecorn-square.svg
servers:
- url: https://app.pipecorn.com/api/v2
security:
- apiKey: []
tags:
- name: Personas
  description: Pipecorn Personas API
paths:
  /personas:
    get:
      operationId: list_personas
      tags:
      - Personas
      summary: Retrieve all personas
      description: Returns all personas from the workspace, most recent first.
      responses:
        '200':
          description: The personas
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Personas'
          headers:
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: Unauthorized
    post:
      operationId: create_persona
      tags:
      - Personas
      summary: Create a new persona
      description: Creates a persona from job titles, industries, locations and company sizes.
      requestBody:
        description: The persona to create
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/NewPersona'
            example:
              name: VP Grenoble
              job_titles:
              - CEO
              - COO
              company_size:
              - 11-50
              - 51-200
      responses:
        '201':
          description: Persona created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Persona'
          headers:
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            Idempotent-Replayed:
              $ref: '#/components/headers/Idempotent-Replayed'
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: Unauthorized
        '409':
          $ref: '#/components/responses/IdempotencyConflict'
        '422':
          description: '`name` or `job_titles` missing, a list field that is not an array, or an invalid persona'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: name is required
      parameters:
      - $ref: '#/components/parameters/IdempotencyKey'
  /personas/{uuid}:
    get:
      operationId: get_persona
      tags:
      - Personas
      summary: Retrieve a specific persona
      description: Returns a specific persona by its UUID.
      parameters:
      - name: uuid
        in: path
        required: true
        description: UUID of the persona to retrieve
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: The persona
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Persona'
          headers:
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: Unauthorized
        '404':
          description: No persona with this UUID in your workspace
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: Persona not found
    put:
      operationId: update_persona
      tags:
      - Personas
      summary: Update a persona
      description: Updates a persona. Only the fields you send are changed.
      parameters:
      - name: uuid
        in: path
        required: true
        description: UUID of the persona to update
        schema:
          type: string
          format: uuid
      requestBody:
        description: The fields to change
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PersonaUpdate'
            example:
              job_titles:
              - CEO
              - CTO
              company_size:
              - 51-200
      responses:
        '200':
          description: Persona updated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Persona'
          headers:
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: Unauthorized
        '404':
          description: No persona with this UUID in your workspace
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: Persona not found
        '422':
          description: A list field that is not an array, an update that leaves no job titles, or an invalid persona
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: At least one job_title is required
    delete:
      operationId: delete_persona
      tags:
      - Personas
      summary: Delete a persona
      description: Deletes a persona by its UUID.
      parameters:
      - name: uuid
        in: path
        required: true
        description: UUID of the persona to delete
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: Persona deleted
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
              example:
                message: Persona deleted successfully
          headers:
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: Unauthorized
        '404':
          description: No persona with this UUID in your workspace
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: Persona not found
components:
  responses:
    IdempotencyConflict:
      description: A request with this `Idempotency-Key` is still being processed. Wait for the `Retry-After` delay and retry with the same key.
      headers:
        Retry-After:
          $ref: '#/components/headers/Retry-After'
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
              code:
                type: string
                enum:
                - idempotency_key_in_use
          example:
            error: A request with this Idempotency-Key is still being processed
            code: idempotency_key_in_use
  schemas:
    Persona:
      type: object
      properties:
        uuid:
          description: The unique identifier of the persona
          type: string
          format: uuid
          example: 8e1dcba0-f0bb-4071-99fc-f18ba6559ccc
        name:
          description: The name of the persona
          type: string
          example: VP Grenoble
        description:
          description: Free-text description of the persona
          type:
          - string
          - 'null'
        included_job_titles:
          description: Job titles included
          type: array
          items:
            type: string
          example:
          - CEO
          - COO
          - Cofounder
        excluded_job_titles:
          description: Job titles excluded
          type: array
          items:
            type: string
        included_industries:
          description: Industry IDs included
          type: array
          items:
            type: string
        excluded_industries:
          description: Industry IDs excluded
          type: array
          items:
            type: string
        included_locations:
          description: Location IDs included
          type: array
          items:
            type: string
        excluded_locations:
          description: Location IDs excluded
          type: array
          items:
            type: string
        company_size:
          description: Company headcount ranges
          type: array
          items:
            type: string
          example:
          - 11-50
          - 51-200
        sales_nav_url:
          description: Sales Navigator search URL built from the persona filters
          type:
          - string
          - 'null'
        created_at:
          description: The creation date of the persona
          type: string
          format: date-time
          example: '2024-09-09T15:15:15.951Z'
        updated_at:
          description: The last modified date of the persona
          type: string
          format: date-time
          example: '2024-09-09T15:15:15.951Z'
    Personas:
      type: object
      properties:
        personas:
          type: array
          items:
            $ref: '#/components/schemas/Persona'
      example:
        personas:
        - uuid: 8e1dcba0-f0bb-4071-99fc-f18ba6559ccc
          name: VP Grenoble
          description: null
          included_job_titles:
          - VP of Engineering
          - CTO
          excluded_job_titles: []
          included_industries: []
          excluded_industries: []
          included_locations: []
          excluded_locations: []
          company_size:
          - 51-200
          sales_nav_url: https://www.linkedin.com/sales/search/people?query=...
          created_at: '2024-09-09T15:15:15.951Z'
          updated_at: '2024-09-09T15:15:15.951Z'
    NewPersona:
      type: object
      required:
      - name
      - job_titles
      properties:
        name:
          description: Name of the persona
          type: string
          example: VP Grenoble
        description:
          description: Free-text description of the persona
          type: string
          example: Engineering leaders in Grenoble
        job_titles:
          description: Job titles to include
          type: array
          items:
            type: string
          example:
          - CEO
          - COO
          - Cofounder
        excluded_job_titles:
          description: Job titles to exclude
          type: array
          items:
            type: string
          example:
          - Intern
        ai_expand_job_titles:
          description: Expand `job_titles` with AI-suggested variants before saving. Suggested titles to exclude are added to `excluded_job_titles`.
          type: boolean
          default: false
        included_industries:
          description: Industry IDs to include
          type: array
          items:
            type: string
        excluded_industries:
          description: Industry IDs to exclude
          type: array
          items:
            type: string
        included_locations:
          description: Location IDs to include. Look them up with the locations endpoint.
          type: array
          items:
            type: string
        excluded_locations:
          description: Location IDs to exclude
          type: array
          items:
            type: string
        company_size:
          description: Company headcount ranges. The LinkedIn size codes `A`–`I` are also accepted for older integrations, and are returned as sent.
          type: array
          items:
            type: string
            enum:
            - Self-employed
            - 1-10
            - 11-50
            - 51-200
            - 201-500
            - 501-1000
            - 1001-5000
            - 5001-10000
            - 10001+
          example:
          - 11-50
          - 51-200
    PersonaUpdate:
      type: object
      description: 'Only the fields you send are changed. Included and excluded lists of the same kind (job titles, industries, locations) are replaced together: sending either one replaces both.'
      properties:
        name:
          description: Name of the persona. Omit or leave blank to keep the current name.
          type: string
          example: VP Grenoble
        description:
          description: Free-text description of the persona. Send null to clear it; omit to keep it.
          type: string
          example: Engineering leaders in Grenoble
        job_titles:
          description: Job titles to include. Replaces the stored list when sent; omit to keep it.
          type: array
          items:
            type: string
          example:
          - CEO
          - COO
          - Cofounder
        excluded_job_titles:
          description: Job titles to exclude. Replaces the stored list when sent; omit to keep it.
          type: array
          items:
            type: string
          example:
          - Intern
        ai_expand_job_titles:
          description: Expand `job_titles` with AI-suggested variants before saving. Suggested titles to exclude are added to `excluded_job_titles`.
          type: boolean
          default: false
        included_industries:
          description: Industry IDs to include. Replaces the stored list when sent; omit to keep it.
          type: array
          items:
            type: string
        excluded_industries:
          description: Industry IDs to exclude. Replaces the stored list when sent; omit to keep it.
          type: array
          items:
            type: string
        included_locations:
          description: Location IDs to include. Look them up with the locations endpoint.. Replaces the stored list when sent; omit to keep it.
          type: array
          items:
            type: string
        excluded_locations:
          description: Location IDs to exclude. Replaces the stored list when sent; omit to keep it.
          type: array
          items:
            type: string
        company_size:
          description: Company headcount ranges. Replaces the stored list when sent; omit to keep it. The LinkedIn size codes `A`–`I` are also accepted for older integrations, and are returned as sent.
          type: array
          items:
            type: string
            enum:
            - Self-employed
            - 1-10
            - 11-50
            - 51-200
            - 201-500
            - 501-1000
            - 1001-5000
            - 5001-10000
            - 10001+
          example:
          - 11-50
          - 51-200
    Error:
      required:
      - error
      type: object
      properties:
        error:
          description: Human-readable error message. A few validation errors return a list of messages, or an object with more detail, instead of a single string.
          oneOf:
          - type: string
          - type: array
            items:
              type: string
          - type: object
  headers:
    Idempotent-Replayed:
      description: '`true` when this response is a replay of an earlier request sent with the same `Idempotency-Key`. Nothing was run or charged again.'
      schema:
        type: string
        enum:
        - 'true'
    RateLimit-Limit:
      description: Requests allowed per minute on your plan for this group of endpoints. Absent for unlimited accounts and on endpoints exempt from the plan limit.
      schema:
        type: integer
        example: 100
    RateLimit-Remaining:
      description: Requests left in the current one-minute window.
      schema:
        type: integer
        example: 97
    RateLimit-Reset:
      description: Seconds until the current window resets and `RateLimit-Remaining` is back to `RateLimit-Limit`.
      schema:
        type: integer
        example: 42
    Retry-After:
      description: Seconds to wait before retrying. Sent when the plan limit or a request still in progress caused the error.
      schema:
        type: integer
        example: 42
  parameters:
    IdempotencyKey:
      name: Idempotency-Key
      in: header
      required: false
      description: A unique value you generate per operation, such as a UUID. Retrying with the same key and the same body returns the stored response instead of running the request again, so a retry after a timeout never charges twice. Successful responses are kept for 24 hours; a failed request is not stored and can be retried with the same key.
      schema:
        type: string
        maxLength: 255
        example: 4f1c2e9a-8a7d-4c1b-9f63-2d6e0b5a7c11
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: X-API-KEY
      description: 'Your Pipecorn API key, created at https://app.pipecorn.com/settings/apis/keys. Rate limits are counted per user, not per key. A test key (pc_test_…, or the public pc_test_demo) returns sample data and spends no credits: https://docs.pipecorn.com/essentials/sandbox'