Scaleway · Capability

Serverless Functions API — Domains

Serverless Functions API — Domains. 4 operations. Lead operation: List all domain name bindings. Self-contained Naftiko capability covering one Scaleway business surface.

Run with Naftiko ScalewayDomains

What You Can Do

GET
Listdomains — List all domain name bindings
/v1/functions/v1beta1/regions/{region}/domains
POST
Createdomain — Create a domain name binding
/v1/functions/v1beta1/regions/{region}/domains
GET
Getdomain — Get a domain name binding
/v1/functions/v1beta1/regions/{region}/domains/{domain-id}
DELETE
Deletedomain — Delete a domain name binding
/v1/functions/v1beta1/regions/{region}/domains/{domain-id}

MCP Tools

list-all-domain-name-bindings

List all domain name bindings

read-only idempotent
create-domain-name-binding

Create a domain name binding

get-domain-name-binding

Get a domain name binding

read-only idempotent
delete-domain-name-binding

Delete a domain name binding

idempotent

Capability Spec

serverless-functions-domains.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Serverless Functions API — Domains
  description: 'Serverless Functions API — Domains. 4 operations. Lead operation: List all domain name bindings. Self-contained
    Naftiko capability covering one Scaleway business surface.'
  tags:
  - Scaleway
  - Domains
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    SCALEWAY_API_KEY: SCALEWAY_API_KEY
capability:
  consumes:
  - type: http
    namespace: serverless-functions-domains
    baseUri: https://api.scaleway.com
    description: Serverless Functions API — Domains business capability. Self-contained, no shared references.
    resources:
    - name: functions-v1beta1-regions-region-domains
      path: /functions/v1beta1/regions/{region}/domains
      operations:
      - name: listdomains
        method: GET
        description: List all domain name bindings
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: region
          in: path
          type: string
          description: The region you want to target
          required: true
        - name: page
          in: query
          type: integer
          description: Page number.
        - name: page_size
          in: query
          type: integer
          description: Number of domains per page.
        - name: order_by
          in: query
          type: string
          description: Order of the domains.
        - name: function_id
          in: query
          type: string
          description: UUID of the function the domain is associated with.
          required: true
      - name: createdomain
        method: POST
        description: Create a domain name binding
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: region
          in: path
          type: string
          description: The region you want to target
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: functions-v1beta1-regions-region-domains-domain_id
      path: /functions/v1beta1/regions/{region}/domains/{domain_id}
      operations:
      - name: getdomain
        method: GET
        description: Get a domain name binding
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: region
          in: path
          type: string
          description: The region you want to target
          required: true
        - name: domain_id
          in: path
          type: string
          description: UUID of the domain to get.
          required: true
      - name: deletedomain
        method: DELETE
        description: Delete a domain name binding
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: region
          in: path
          type: string
          description: The region you want to target
          required: true
        - name: domain_id
          in: path
          type: string
          description: UUID of the domain to delete.
          required: true
    authentication:
      type: apikey
      key: X-Auth-Token
      value: '{{env.SCALEWAY_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: serverless-functions-domains-rest
    port: 8080
    description: REST adapter for Serverless Functions API — Domains. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/functions/v1beta1/regions/{region}/domains
      name: functions-v1beta1-regions-region-domains
      description: REST surface for functions-v1beta1-regions-region-domains.
      operations:
      - method: GET
        name: listdomains
        description: List all domain name bindings
        call: serverless-functions-domains.listdomains
        with:
          region: rest.region
          page: rest.page
          page_size: rest.page_size
          order_by: rest.order_by
          function_id: rest.function_id
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createdomain
        description: Create a domain name binding
        call: serverless-functions-domains.createdomain
        with:
          region: rest.region
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/functions/v1beta1/regions/{region}/domains/{domain-id}
      name: functions-v1beta1-regions-region-domains-domain-id
      description: REST surface for functions-v1beta1-regions-region-domains-domain_id.
      operations:
      - method: GET
        name: getdomain
        description: Get a domain name binding
        call: serverless-functions-domains.getdomain
        with:
          region: rest.region
          domain_id: rest.domain_id
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletedomain
        description: Delete a domain name binding
        call: serverless-functions-domains.deletedomain
        with:
          region: rest.region
          domain_id: rest.domain_id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: serverless-functions-domains-mcp
    port: 9090
    transport: http
    description: MCP adapter for Serverless Functions API — Domains. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: list-all-domain-name-bindings
      description: List all domain name bindings
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: serverless-functions-domains.listdomains
      with:
        region: tools.region
        page: tools.page
        page_size: tools.page_size
        order_by: tools.order_by
        function_id: tools.function_id
      outputParameters:
      - type: object
        mapping: $.
    - name: create-domain-name-binding
      description: Create a domain name binding
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: serverless-functions-domains.createdomain
      with:
        region: tools.region
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-domain-name-binding
      description: Get a domain name binding
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: serverless-functions-domains.getdomain
      with:
        region: tools.region
        domain_id: tools.domain_id
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-domain-name-binding
      description: Delete a domain name binding
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: serverless-functions-domains.deletedomain
      with:
        region: tools.region
        domain_id: tools.domain_id
      outputParameters:
      - type: object
        mapping: $.