notanATS Agent API — directory API

The Agent API — directory API from notanATS — 2 operation(s) for agent api — directory.

GitHub OpenAPI

Operations 2

GET /api/v1/agent/departments List the organization’s departments #
GET /api/v1/agent/managers List the organization’s active managers #

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/notanats-com:notanats-com-agent-api-directory-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

notanats-com-agent-api-directory-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: notanATS Agent API + OAuth Agent API — directory API
  version: 1.0.0
  description: 'Generated from the implemented route contracts (src/lib/agent-contract/openapi.ts) — do not edit the published file by hand; run `npm run contract:generate`. Covers the delegated-agent REST API (Bearer static nagt_ keys only — OAuth access tokens (noat_) authenticate the MCP transport only and do NOT authenticate REST; see the known gap in docs/agent/README.md), the legacy /api/v1 data reads (nagt_ or nats_), and the OAuth 2.1 endpoints. The MCP server at /mcp is JSON-RPC, not REST, and is contracted separately in /agent/mcp-contract.json. Quickstart: docs/agent/quickstart.md.'
servers:
- url: https://notanats.com
tags:
- name: Agent API — directory
paths:
  /api/v1/agent/departments:
    get:
      operationId: listDepartments
      tags:
      - Agent API — directory
      summary: List the organization’s departments
      description: 'The departments of the credential’s own organization (id and name), so an agent setting up a position headlessly can discover the department_id a create requires. The agent asks the manager to choose by name; the manager is never asked for an id. Organization directory data: every delegated credential with the read scope sees the same list for its organization, and never another organization’s.'
      parameters:
      - name: limit
        in: query
        schema:
          type: integer
          minimum: 1
          maximum: 100
          default: 20
      - name: offset
        in: query
        schema:
          type: integer
          minimum: 0
          default: 0
      security:
      - agentBearer: []
      responses:
        '200':
          description: The organization’s departments.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          format: uuid
                        name:
                          type: string
                  total:
                    type: integer
                  limit:
                    type: integer
                  offset:
                    type: integer
        '401':
          description: unauthorized — missing, invalid, revoked, or non-delegated credential.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        enum:
                        - unauthorized
                        - forbidden
                        - not_found
                        - validation_failed
                        - conflict
                        - idempotency_key_required
                        - idempotency_key_reused
                        - request_in_progress
                        - operation_outcome_unknown
                        - agent_loop_stopped
                        - rate_limited
                        - no_slots
                        - internal_error
                      message:
                        type: string
                      request_id:
                        type: string
                      retryable:
                        type: boolean
                        description: 'Present on loop-stop responses (code agent_loop_stopped): always false. The tenth identical failed attempt (same credential, operation, target, payload and error) is the last one that runs; the stop is returned with HTTP 409 and no Retry-After header, does not lift on a timer, and a person must intervene before that request can run again. The same flag is repeated at the top level of the response body.'
                    required:
                    - code
                    - message
                    - request_id
                  retryable:
                    type: boolean
                    description: Top-level repeat of the error.retryable flag on loop-stop responses (agent_loop_stopped); absent on other errors.
                required:
                - error
        '403':
          description: forbidden — the credential does not hold the "read" scope.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        enum:
                        - unauthorized
                        - forbidden
                        - not_found
                        - validation_failed
                        - conflict
                        - idempotency_key_required
                        - idempotency_key_reused
                        - request_in_progress
                        - operation_outcome_unknown
                        - agent_loop_stopped
                        - rate_limited
                        - no_slots
                        - internal_error
                      message:
                        type: string
                      request_id:
                        type: string
                      retryable:
                        type: boolean
                        description: 'Present on loop-stop responses (code agent_loop_stopped): always false. The tenth identical failed attempt (same credential, operation, target, payload and error) is the last one that runs; the stop is returned with HTTP 409 and no Retry-After header, does not lift on a timer, and a person must intervene before that request can run again. The same flag is repeated at the top level of the response body.'
                    required:
                    - code
                    - message
                    - request_id
                  retryable:
                    type: boolean
                    description: Top-level repeat of the error.retryable flag on loop-stop responses (agent_loop_stopped); absent on other errors.
                required:
                - error
        '429':
          description: rate_limited.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        enum:
                        - unauthorized
                        - forbidden
                        - not_found
                        - validation_failed
                        - conflict
                        - idempotency_key_required
                        - idempotency_key_reused
                        - request_in_progress
                        - operation_outcome_unknown
                        - agent_loop_stopped
                        - rate_limited
                        - no_slots
                        - internal_error
                      message:
                        type: string
                      request_id:
                        type: string
                      retryable:
                        type: boolean
                        description: 'Present on loop-stop responses (code agent_loop_stopped): always false. The tenth identical failed attempt (same credential, operation, target, payload and error) is the last one that runs; the stop is returned with HTTP 409 and no Retry-After header, does not lift on a timer, and a person must intervene before that request can run again. The same flag is repeated at the top level of the response body.'
                    required:
                    - code
                    - message
                    - request_id
                  retryable:
                    type: boolean
                    description: Top-level repeat of the error.retryable flag on loop-stop responses (agent_loop_stopped); absent on other errors.
                required:
                - error
  /api/v1/agent/managers:
    get:
      operationId: listManagers
      tags:
      - Agent API — directory
      summary: List the organization’s active managers
      description: 'The ACTIVE managers of the credential’s own organization — the set position creation accepts as hiring_manager_id (create validates that the manager exists in the organization and is active) — each with the departments they are designated for, which is the pairing create validates when no hiring_manager_search_override is set. So an agent setting up a position headlessly can discover the hiring_manager_id a create requires and pair it with a department create will accept. The agent asks the manager to choose by name; the manager is never asked for an id. Organization directory data: never another organization’s managers.'
      parameters:
      - name: limit
        in: query
        schema:
          type: integer
          minimum: 1
          maximum: 100
          default: 20
      - name: offset
        in: query
        schema:
          type: integer
          minimum: 0
          default: 0
      security:
      - agentBearer: []
      responses:
        '200':
          description: The organization’s active managers with their designated departments.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          format: uuid
                        name:
                          type: string
                        email:
                          type: string
                        role:
                          type: string
                          enum:
                          - admin
                          - member
                        departments:
                          type: array
                          items:
                            type: object
                            properties:
                              id:
                                type: string
                                format: uuid
                              name:
                                type: string
                  total:
                    type: integer
                  limit:
                    type: integer
                  offset:
                    type: integer
        '401':
          description: unauthorized — missing, invalid, revoked, or non-delegated credential.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        enum:
                        - unauthorized
                        - forbidden
                        - not_found
                        - validation_failed
                        - conflict
                        - idempotency_key_required
                        - idempotency_key_reused
                        - request_in_progress
                        - operation_outcome_unknown
                        - agent_loop_stopped
                        - rate_limited
                        - no_slots
                        - internal_error
                      message:
                        type: string
                      request_id:
                        type: string
                      retryable:
                        type: boolean
                        description: 'Present on loop-stop responses (code agent_loop_stopped): always false. The tenth identical failed attempt (same credential, operation, target, payload and error) is the last one that runs; the stop is returned with HTTP 409 and no Retry-After header, does not lift on a timer, and a person must intervene before that request can run again. The same flag is repeated at the top level of the response body.'
                    required:
                    - code
                    - message
                    - request_id
                  retryable:
                    type: boolean
                    description: Top-level repeat of the error.retryable flag on loop-stop responses (agent_loop_stopped); absent on other errors.
                required:
                - error
        '403':
          description: forbidden — the credential does not hold the "read" scope.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        enum:
                        - unauthorized
                        - forbidden
                        - not_found
                        - validation_failed
                        - conflict
                        - idempotency_key_required
                        - idempotency_key_reused
                        - request_in_progress
                        - operation_outcome_unknown
                        - agent_loop_stopped
                        - rate_limited
                        - no_slots
                        - internal_error
                      message:
                        type: string
                      request_id:
                        type: string
                      retryable:
                        type: boolean
                        description: 'Present on loop-stop responses (code agent_loop_stopped): always false. The tenth identical failed attempt (same credential, operation, target, payload and error) is the last one that runs; the stop is returned with HTTP 409 and no Retry-After header, does not lift on a timer, and a person must intervene before that request can run again. The same flag is repeated at the top level of the response body.'
                    required:
                    - code
                    - message
                    - request_id
                  retryable:
                    type: boolean
                    description: Top-level repeat of the error.retryable flag on loop-stop responses (agent_loop_stopped); absent on other errors.
                required:
                - error
        '429':
          description: rate_limited.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        enum:
                        - unauthorized
                        - forbidden
                        - not_found
                        - validation_failed
                        - conflict
                        - idempotency_key_required
                        - idempotency_key_reused
                        - request_in_progress
                        - operation_outcome_unknown
                        - agent_loop_stopped
                        - rate_limited
                        - no_slots
                        - internal_error
                      message:
                        type: string
                      request_id:
                        type: string
                      retryable:
                        type: boolean
                        description: 'Present on loop-stop responses (code agent_loop_stopped): always false. The tenth identical failed attempt (same credential, operation, target, payload and error) is the last one that runs; the stop is returned with HTTP 409 and no Retry-After header, does not lift on a timer, and a person must intervene before that request can run again. The same flag is repeated at the top level of the response body.'
                    required:
                    - code
                    - message
                    - request_id
                  retryable:
                    type: boolean
                    description: Top-level repeat of the error.retryable flag on loop-stop responses (agent_loop_stopped); absent on other errors.
                required:
                - error
components:
  securitySchemes:
    agentBearer:
      type: http
      scheme: bearer
      description: 'A static delegated agent key (prefix nagt_) minted by an organization admin for a named delegated manager. This is the ONLY credential class the REST agent API authenticates: the REST guard resolves nagt_ (and, on the legacy /api/v1 data routes, nats_) keys only. An OAuth access token (noat_) does NOT authenticate REST — it resolves only in the MCP seam at /mcp.'
    v1Bearer:
      type: http
      scheme: bearer
      description: 'For the legacy /api/v1 data routes only: a delegated agent key (nagt_) or a legacy organization key (nats_). Agent keys are narrowed to their delegated manager’s visibility; legacy org keys keep organization scope.'
    managerSession:
      type: apiKey
      in: cookie
      name: sb-*-auth-token
      description: The signed-in manager/admin webapp session, carried by the app’s Supabase SSR session cookies (the sb-<project>-auth-token cookie and any chunked companions, set at sign-in; the exact cookie name is derived from the Supabase project, so the name shown is a pattern, not a literal). These surfaces are not callable with an agent credential.