SearchStax · Capability

SearchStax Provisioning API — Authentication

SearchStax Provisioning API — Authentication. 2 operations. Lead operation: Create API Key. Self-contained Naftiko capability covering one Searchstax business surface.

Run with Naftiko SearchstaxAuthentication

What You Can Do

POST
Createapikey — Create API Key
/v1/account/{account-name}/apikey
POST
Obtainauthtoken — Obtain Auth Token
/v1/obtain-auth-token

MCP Tools

create-api-key

Create API Key

obtain-auth-token

Obtain Auth Token

Capability Spec

provisioning-authentication.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: SearchStax Provisioning API — Authentication
  description: 'SearchStax Provisioning API — Authentication. 2 operations. Lead operation: Create API Key. Self-contained
    Naftiko capability covering one Searchstax business surface.'
  tags:
  - Searchstax
  - Authentication
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    SEARCHSTAX_API_KEY: SEARCHSTAX_API_KEY
capability:
  consumes:
  - type: http
    namespace: provisioning-authentication
    baseUri: https://app.searchstax.com/api/rest/v2
    description: SearchStax Provisioning API — Authentication business capability. Self-contained, no shared references.
    resources:
    - name: account-account_name-apikey
      path: /account/{account_name}/apikey/
      operations:
      - name: createapikey
        method: POST
        description: Create API Key
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: obtain-auth-token
      path: /obtain-auth-token/
      operations:
      - name: obtainauthtoken
        method: POST
        description: Obtain Auth Token
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.SEARCHSTAX_API_KEY}}'
  exposes:
  - type: rest
    namespace: provisioning-authentication-rest
    port: 8080
    description: REST adapter for SearchStax Provisioning API — Authentication. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/account/{account-name}/apikey
      name: account-account-name-apikey
      description: REST surface for account-account_name-apikey.
      operations:
      - method: POST
        name: createapikey
        description: Create API Key
        call: provisioning-authentication.createapikey
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/obtain-auth-token
      name: obtain-auth-token
      description: REST surface for obtain-auth-token.
      operations:
      - method: POST
        name: obtainauthtoken
        description: Obtain Auth Token
        call: provisioning-authentication.obtainauthtoken
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: provisioning-authentication-mcp
    port: 9090
    transport: http
    description: MCP adapter for SearchStax Provisioning API — Authentication. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: create-api-key
      description: Create API Key
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: provisioning-authentication.createapikey
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: obtain-auth-token
      description: Obtain Auth Token
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: provisioning-authentication.obtainauthtoken
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.