naftiko: 1.0.0-alpha2 info: label: PostHog API — role_external_references description: 'PostHog API — role_external_references. 4 operations. Lead operation: role_external_references. Self-contained Naftiko capability covering one Posthog business surface.' tags: - Posthog - role_external_references created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: POSTHOG_API_KEY: POSTHOG_API_KEY capability: consumes: - type: http namespace: posthog-role-external-references baseUri: '' description: PostHog API — role_external_references business capability. Self-contained, no shared references. resources: - name: api-organizations-organization_id-role_external_references path: /api/organizations/{organization_id}/role_external_references/ operations: - name: roleexternalreferenceslist 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: roleexternalreferencescreate 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-role_external_references-lookup path: /api/organizations/{organization_id}/role_external_references/lookup/ operations: - name: roleexternalreferenceslookupretrieve method: GET description: '' outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: provider in: query type: string description: Integration kind (e.g., github, linear, jira, slack). required: true - name: provider_organization_id in: query type: string description: Provider organization/workspace/site identifier. required: true - name: provider_role_id in: query type: string description: Stable provider role identifier. - name: provider_role_slug in: query type: string description: Human-friendly provider role identifier. - name: api-organizations-organization_id-role_external_references-id path: /api/organizations/{organization_id}/role_external_references/{id}/ operations: - name: roleexternalreferencesdestroy method: DELETE description: '' outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string description: A UUID string identifying this role external reference. required: true authentication: type: bearer token: '{{env.POSTHOG_API_KEY}}' exposes: - type: rest namespace: posthog-role-external-references-rest port: 8080 description: REST adapter for PostHog API — role_external_references. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/api/organizations/{organization-id}/role-external-references name: api-organizations-organization-id-role-external-references description: REST surface for api-organizations-organization_id-role_external_references. operations: - method: GET name: roleexternalreferenceslist description: roleexternalreferenceslist call: posthog-role-external-references.roleexternalreferenceslist with: limit: rest.limit offset: rest.offset outputParameters: - type: object mapping: $. - method: POST name: roleexternalreferencescreate description: roleexternalreferencescreate call: posthog-role-external-references.roleexternalreferencescreate with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/api/organizations/{organization-id}/role-external-references/lookup name: api-organizations-organization-id-role-external-references-lookup description: REST surface for api-organizations-organization_id-role_external_references-lookup. operations: - method: GET name: roleexternalreferenceslookupretrieve description: roleexternalreferenceslookupretrieve call: posthog-role-external-references.roleexternalreferenceslookupretrieve with: provider: rest.provider provider_organization_id: rest.provider_organization_id provider_role_id: rest.provider_role_id provider_role_slug: rest.provider_role_slug outputParameters: - type: object mapping: $. - path: /v1/api/organizations/{organization-id}/role-external-references/{id} name: api-organizations-organization-id-role-external-references-id description: REST surface for api-organizations-organization_id-role_external_references-id. operations: - method: DELETE name: roleexternalreferencesdestroy description: roleexternalreferencesdestroy call: posthog-role-external-references.roleexternalreferencesdestroy with: id: rest.id outputParameters: - type: object mapping: $. - type: mcp namespace: posthog-role-external-references-mcp port: 9090 transport: http description: MCP adapter for PostHog API — role_external_references. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: roleexternalreferenceslist description: roleexternalreferenceslist hints: readOnly: true destructive: false idempotent: true call: posthog-role-external-references.roleexternalreferenceslist with: limit: tools.limit offset: tools.offset outputParameters: - type: object mapping: $. - name: roleexternalreferencescreate description: roleexternalreferencescreate hints: readOnly: false destructive: false idempotent: false call: posthog-role-external-references.roleexternalreferencescreate with: body: tools.body outputParameters: - type: object mapping: $. - name: roleexternalreferenceslookupretrieve description: roleexternalreferenceslookupretrieve hints: readOnly: true destructive: false idempotent: true call: posthog-role-external-references.roleexternalreferenceslookupretrieve with: provider: tools.provider provider_organization_id: tools.provider_organization_id provider_role_id: tools.provider_role_id provider_role_slug: tools.provider_role_slug outputParameters: - type: object mapping: $. - name: roleexternalreferencesdestroy description: roleexternalreferencesdestroy hints: readOnly: false destructive: true idempotent: true call: posthog-role-external-references.roleexternalreferencesdestroy with: id: tools.id outputParameters: - type: object mapping: $.