Token.io Member API

The Member API from Token.io — 6 operation(s) for member.

Operations 9

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /member/product/restrictions List product restrictions on members · Gateway service get restrictions #
Ask an LLM
“Which product restrictions have I set on members?”
“Can I filter restrictions to the ones targeting a particular member?”
Tell an agent
List all my product restrictions.
Show restrictions that target member {target_member_id}.
POST /member/product/restrictions Create a product restriction for a member · Gateway service create restriction #
Ask an LLM
“Can I restrict what a member is allowed to do with a product?”
“What goes into a new restriction payload?”
Tell an agent
Create a restriction on member {target_member_id} with payload {payload}.
Add a product restriction {payload}.
GET /member/product/restrictions/countries List countries available for restrictions · Gateway service get countries #
Ask an LLM
“Which countries can I use when writing a restriction rule?”
“Is there a list of countries supported for product restrictions?”
Tell an agent
List the countries I can restrict by.
Show every country available for restriction rules.
GET /member/product/restrictions/countries/{countryCode}/regions List regions of a country for restrictions · Gateway service get regions #
Ask an LLM
“What regions within a country can a restriction rule target?”
“Can I get the sub-regions for a specific country code?”
Tell an agent
List the restriction regions in country {country_code}.
Show regions I can target inside {country_code}.
PUT /member/product/restrictions/{restrictionId} Update a product restriction · Gateway service update restriction #
Ask an LLM
“Can I change an existing restriction without deleting it?”
“What happens when I replace a restriction's settings?”
Tell an agent
Update restriction {restriction_id} to {updated}.
Change the settings of restriction {restriction_id}.
DELETE /member/product/restrictions/{restrictionId} Delete a product restriction · Gateway service delete restriction #
Ask an LLM
“Can I lift a restriction entirely by removing it?”
“Does deleting a restriction remove its rules too?”
Tell an agent destructive · confirm first
Delete restriction {restriction_id}.
Lift product restriction {restriction_id}.
POST /member/product/restrictions/{restrictionId}/rule Add a rule to a product restriction · Gateway service create rule #
Ask an LLM
“How do I add a new rule under an existing restriction?”
“Can one restriction have several rules?”
Tell an agent
Add rule {rule} to restriction {restriction_id}.
Create a new rule under restriction {restriction_id}.
PUT /member/product/restrictions/{restrictionId}/rules/{ruleId} Update a rule in a product restriction · Gateway service update rule #
Ask an LLM
“Can I edit one rule inside a restriction?”
“What do I send to change an existing restriction rule?”
Tell an agent
Update rule {rule_id} in restriction {restriction_id} to {updated_rule}.
Edit rule {rule_id} of restriction {restriction_id}.
DELETE /member/product/restrictions/{restrictionId}/rules/{ruleId} Delete a rule from a product restriction · Gateway service delete rule #
Ask an LLM
“Can I remove a single rule but keep the restriction?”
“What's needed to delete one restriction rule?”
Tell an agent destructive · confirm first
Delete rule {rule_id} from restriction {restriction_id}.
Remove restriction {restriction_id}'s rule {rule_id}.

Documentation

Specifications

Schemas & Data

Other Resources

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/token-io:token-io-member-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

token-io-member-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Token Member API
  version: 1.0.0
  description: Token REST API.
servers:
- url: https://api.token.io/v1
tags:
- name: Member
paths:
  /member/product/restrictions:
    get:
      operationId: GatewayService.GetRestrictions
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/io.token.proto.gateway.GetRestrictionsResponse'
      parameters:
      - name: filter.byRestrictionId
        in: query
        required: false
        schema:
          type: string
      - name: filter.byTargetMemberId
        in: query
        required: false
        schema:
          type: string
      tags:
      - Member
      summary: Gateway service get restrictions
      x-summary-source: derived
    post:
      operationId: GatewayService.CreateRestriction
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/io.token.proto.gateway.CreateRestrictionResponse'
      tags:
      - Member
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/io.token.proto.gateway.CreateRestrictionRequest'
        required: true
      summary: Gateway service create restriction
      x-summary-source: derived
  /member/product/restrictions/countries:
    get:
      operationId: GatewayService.GetCountries
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/io.token.proto.gateway.GetCountriesResponse'
      tags:
      - Member
      summary: Gateway service get countries
      x-summary-source: derived
  /member/product/restrictions/countries/{countryCode}/regions:
    get:
      operationId: GatewayService.GetRegions
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/io.token.proto.gateway.GetRegionsResponse'
      parameters:
      - name: countryCode
        in: path
        required: true
        schema:
          type: string
      tags:
      - Member
      summary: Gateway service get regions
      x-summary-source: derived
  /member/product/restrictions/{restrictionId}:
    put:
      operationId: GatewayService.UpdateRestriction
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/io.token.proto.gateway.UpdateRestrictionResponse'
      parameters:
      - name: restrictionId
        in: path
        required: true
        schema:
          type: string
      tags:
      - Member
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/io.token.proto.gateway.UpdateRestrictionRequest'
        required: true
      summary: Gateway service update restriction
      x-summary-source: derived
    delete:
      operationId: GatewayService.DeleteRestriction
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/io.token.proto.gateway.DeleteRestrictionResponse'
      parameters:
      - name: restrictionId
        in: path
        required: true
        schema:
          type: string
      tags:
      - Member
      summary: Gateway service delete restriction
      x-summary-source: derived
  /member/product/restrictions/{restrictionId}/rule:
    post:
      operationId: GatewayService.CreateRule
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/io.token.proto.gateway.CreateRuleResponse'
      parameters:
      - name: restrictionId
        in: path
        required: true
        schema:
          type: string
      tags:
      - Member
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/io.token.proto.gateway.CreateRuleRequest'
        required: true
      summary: Gateway service create rule
      x-summary-source: derived
  /member/product/restrictions/{restrictionId}/rules/{ruleId}:
    put:
      operationId: GatewayService.UpdateRule
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/io.token.proto.gateway.UpdateRuleResponse'
      parameters:
      - name: ruleId
        in: path
        required: true
        schema:
          type: string
      - name: restrictionId
        in: path
        required: true
        schema:
          type: string
      tags:
      - Member
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/io.token.proto.gateway.UpdateRuleRequest'
        required: true
      summary: Gateway service update rule
      x-summary-source: derived
    delete:
      operationId: GatewayService.DeleteRule
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/io.token.proto.gateway.DeleteRuleResponse'
      parameters:
      - name: ruleId
        in: path
        required: true
        schema:
          type: string
      - name: restrictionId
        in: path
        required: true
        schema:
          type: string
      tags:
      - Member
      summary: Gateway service delete rule
      x-summary-source: derived
components:
  schemas:
    io.token.proto.gateway.CreateRestrictionRequest:
      type: object
      properties:
        restrictionPayload:
          $ref: '#/components/schemas/io.token.proto.common.restriction.RestrictionPayload'
        targetMemberId:
          type: string
    io.token.proto.common.restriction.Rule:
      type: object
      properties:
        createdAt:
          type: string
        enabled:
          format: boolean
          type: boolean
        id:
          type: string
        name:
          type: string
        text:
          type: string
    io.token.proto.gateway.UpdateRuleRequest:
      type: object
      properties:
        updatedRule:
          $ref: '#/components/schemas/io.token.proto.common.restriction.Rule'
    io.token.proto.common.restriction.RulePayload:
      type: object
      properties:
        name:
          type: string
        text:
          type: string
    io.token.proto.gateway.CreateRuleResponse:
      type: object
      properties:
        ruleId:
          type: string
    io.token.proto.common.restriction.Region:
      type: object
      properties:
        country:
          type: string
        id:
          type: string
        name:
          type: string
    io.token.proto.gateway.UpdateRestrictionRequest:
      type: object
      properties:
        updatedRestriction:
          $ref: '#/components/schemas/io.token.proto.common.restriction.Restriction'
    io.token.proto.gateway.DeleteRestrictionResponse:
      type: object
      properties:
        deletedRestriction:
          $ref: '#/components/schemas/io.token.proto.common.restriction.Restriction'
    io.token.proto.gateway.GetRestrictionsResponse:
      type: object
      properties:
        restrictions:
          items:
            $ref: '#/components/schemas/io.token.proto.common.restriction.Restriction'
          type: array
    io.token.proto.common.restriction.RestrictedProductType:
      enum:
      - UNKNOWN_PRODUCT_TYPE
      - SINGLE_IMMEDIATE_PAYMENT
      - IP_ADDRESS
      - GEO_LOCATION
      - PIS_PAYMENT_NETWORK
      default: UNKNOWN_PRODUCT_TYPE
      type: string
    io.token.proto.gateway.UpdateRuleResponse:
      type: object
      properties: {}
    io.token.proto.gateway.DeleteRuleResponse:
      type: object
      properties:
        deletedRule:
          $ref: '#/components/schemas/io.token.proto.common.restriction.Rule'
    io.token.proto.gateway.UpdateRestrictionResponse:
      type: object
      properties: {}
    io.token.proto.gateway.CreateRestrictionResponse:
      type: object
      properties:
        restrictionId:
          type: string
    io.token.proto.gateway.CreateRuleRequest:
      type: object
      properties:
        rule:
          $ref: '#/components/schemas/io.token.proto.common.restriction.RulePayload'
    io.token.proto.gateway.GetCountriesResponse:
      type: object
      properties:
        countries:
          items:
            $ref: '#/components/schemas/io.token.proto.common.restriction.Country'
          type: array
    io.token.proto.common.restriction.Restriction:
      type: object
      properties:
        createdAt:
          type: string
        enabled:
          format: boolean
          type: boolean
        id:
          type: string
        ownerMemberId:
          type: string
        productType:
          $ref: '#/components/schemas/io.token.proto.common.restriction.RestrictedProductType'
        rules:
          items:
            $ref: '#/components/schemas/io.token.proto.common.restriction.Rule'
          type: array
        targetMemberId:
          type: string
        updatedAt:
          type: string
    io.token.proto.gateway.GetRegionsResponse:
      type: object
      properties:
        regions:
          items:
            $ref: '#/components/schemas/io.token.proto.common.restriction.Region'
          type: array
    io.token.proto.common.restriction.Country:
      type: object
      properties:
        code:
          type: string
        name:
          type: string
    io.token.proto.common.restriction.RestrictionPayload:
      type: object
      properties:
        productType:
          $ref: '#/components/schemas/io.token.proto.common.restriction.RestrictedProductType'
        rulePayloads:
          items:
            $ref: '#/components/schemas/io.token.proto.common.restriction.RulePayload'
          type: array