PostHog · Capability

PostHog API — domains

PostHog API — domains. 9 operations. Lead operation: domains. Self-contained Naftiko capability covering one Posthog business surface.

Run with Naftiko Posthogdomains

What You Can Do

GET
Domainslist — domainslist
/v1/api/organizations/{organization-id}/domains
POST
Domainscreate — domainscreate
/v1/api/organizations/{organization-id}/domains
GET
Domainsretrieve — domainsretrieve
/v1/api/organizations/{organization-id}/domains/{id}
PUT
Domainsupdate — domainsupdate
/v1/api/organizations/{organization-id}/domains/{id}
PATCH
Domainspartialupdate — domainspartialupdate
/v1/api/organizations/{organization-id}/domains/{id}
DELETE
Domainsdestroy — domainsdestroy
/v1/api/organizations/{organization-id}/domains/{id}
GET
Domainsscimlogsretrieve — domainsscimlogsretrieve
/v1/api/organizations/{organization-id}/domains/{id}/scim/logs
POST
Domainsscimtokencreate — Regenerate SCIM bearer token.
/v1/api/organizations/{organization-id}/domains/{id}/scim/token
POST
Domainsverifycreate — domainsverifycreate
/v1/api/organizations/{organization-id}/domains/{id}/verify

MCP Tools

domainslist

domainslist

read-only idempotent
domainscreate

domainscreate

domainsretrieve

domainsretrieve

read-only idempotent
domainsupdate

domainsupdate

idempotent
domainspartialupdate

domainspartialupdate

idempotent
domainsdestroy

domainsdestroy

idempotent
domainsscimlogsretrieve

domainsscimlogsretrieve

read-only idempotent
regenerate-scim-bearer-token

Regenerate SCIM bearer token.

domainsverifycreate

domainsverifycreate

Capability Spec

posthog-domains.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: PostHog API — domains
  description: 'PostHog API — domains. 9 operations. Lead operation: domains. Self-contained Naftiko capability covering one
    Posthog business surface.'
  tags:
  - Posthog
  - domains
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    POSTHOG_API_KEY: POSTHOG_API_KEY
capability:
  consumes:
  - type: http
    namespace: posthog-domains
    baseUri: ''
    description: PostHog API — domains business capability. Self-contained, no shared references.
    resources:
    - name: api-organizations-organization_id-domains
      path: /api/organizations/{organization_id}/domains/
      operations:
      - name: domainslist
        method: GET
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: limit
          in: query
          type: integer
          description: Number of results to return per page.
        - name: offset
          in: query
          type: integer
          description: The initial index from which to return the results.
      - name: domainscreate
        method: POST
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-organizations-organization_id-domains-id
      path: /api/organizations/{organization_id}/domains/{id}/
      operations:
      - name: domainsretrieve
        method: GET
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A UUID string identifying this domain.
          required: true
      - name: domainsupdate
        method: PUT
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A UUID string identifying this domain.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: domainspartialupdate
        method: PATCH
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A UUID string identifying this domain.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: domainsdestroy
        method: DELETE
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A UUID string identifying this domain.
          required: true
    - name: api-organizations-organization_id-domains-id-scim-logs
      path: /api/organizations/{organization_id}/domains/{id}/scim/logs/
      operations:
      - name: domainsscimlogsretrieve
        method: GET
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A UUID string identifying this domain.
          required: true
    - name: api-organizations-organization_id-domains-id-scim-token
      path: /api/organizations/{organization_id}/domains/{id}/scim/token/
      operations:
      - name: domainsscimtokencreate
        method: POST
        description: Regenerate SCIM bearer token.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A UUID string identifying this domain.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-organizations-organization_id-domains-id-verify
      path: /api/organizations/{organization_id}/domains/{id}/verify/
      operations:
      - name: domainsverifycreate
        method: POST
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A UUID string identifying this domain.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.POSTHOG_API_KEY}}'
  exposes:
  - type: rest
    namespace: posthog-domains-rest
    port: 8080
    description: REST adapter for PostHog API — domains. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/api/organizations/{organization-id}/domains
      name: api-organizations-organization-id-domains
      description: REST surface for api-organizations-organization_id-domains.
      operations:
      - method: GET
        name: domainslist
        description: domainslist
        call: posthog-domains.domainslist
        with:
          limit: rest.limit
          offset: rest.offset
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: domainscreate
        description: domainscreate
        call: posthog-domains.domainscreate
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/organizations/{organization-id}/domains/{id}
      name: api-organizations-organization-id-domains-id
      description: REST surface for api-organizations-organization_id-domains-id.
      operations:
      - method: GET
        name: domainsretrieve
        description: domainsretrieve
        call: posthog-domains.domainsretrieve
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: domainsupdate
        description: domainsupdate
        call: posthog-domains.domainsupdate
        with:
          id: rest.id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: domainspartialupdate
        description: domainspartialupdate
        call: posthog-domains.domainspartialupdate
        with:
          id: rest.id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: domainsdestroy
        description: domainsdestroy
        call: posthog-domains.domainsdestroy
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/organizations/{organization-id}/domains/{id}/scim/logs
      name: api-organizations-organization-id-domains-id-scim-logs
      description: REST surface for api-organizations-organization_id-domains-id-scim-logs.
      operations:
      - method: GET
        name: domainsscimlogsretrieve
        description: domainsscimlogsretrieve
        call: posthog-domains.domainsscimlogsretrieve
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/organizations/{organization-id}/domains/{id}/scim/token
      name: api-organizations-organization-id-domains-id-scim-token
      description: REST surface for api-organizations-organization_id-domains-id-scim-token.
      operations:
      - method: POST
        name: domainsscimtokencreate
        description: Regenerate SCIM bearer token.
        call: posthog-domains.domainsscimtokencreate
        with:
          id: rest.id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/organizations/{organization-id}/domains/{id}/verify
      name: api-organizations-organization-id-domains-id-verify
      description: REST surface for api-organizations-organization_id-domains-id-verify.
      operations:
      - method: POST
        name: domainsverifycreate
        description: domainsverifycreate
        call: posthog-domains.domainsverifycreate
        with:
          id: rest.id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: posthog-domains-mcp
    port: 9090
    transport: http
    description: MCP adapter for PostHog API — domains. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: domainslist
      description: domainslist
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: posthog-domains.domainslist
      with:
        limit: tools.limit
        offset: tools.offset
      outputParameters:
      - type: object
        mapping: $.
    - name: domainscreate
      description: domainscreate
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: posthog-domains.domainscreate
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: domainsretrieve
      description: domainsretrieve
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: posthog-domains.domainsretrieve
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.
    - name: domainsupdate
      description: domainsupdate
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: posthog-domains.domainsupdate
      with:
        id: tools.id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: domainspartialupdate
      description: domainspartialupdate
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: posthog-domains.domainspartialupdate
      with:
        id: tools.id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: domainsdestroy
      description: domainsdestroy
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: posthog-domains.domainsdestroy
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.
    - name: domainsscimlogsretrieve
      description: domainsscimlogsretrieve
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: posthog-domains.domainsscimlogsretrieve
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.
    - name: regenerate-scim-bearer-token
      description: Regenerate SCIM bearer token.
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: posthog-domains.domainsscimtokencreate
      with:
        id: tools.id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: domainsverifycreate
      description: domainsverifycreate
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: posthog-domains.domainsverifycreate
      with:
        id: tools.id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.