Casatoo Account API

Authenticated principal identity.

GitHub OpenAPI

Operations 1

GET /api/v1/auth/me Inspect the authenticated principal #

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/casatoo-pt:casatoo-pt-account-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

casatoo-pt-account-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Casatoo Pt Account API
  version: '2026-08-22'
  description: 'Operations tagged Account across 2 of this provider''s published API definitions: casatoo-pt-agent-openapi.json, casatoo-pt-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- description: Production
  url: https://api.casatoo.pt
- description: Local development
  url: http://localhost:8200
tags:
- description: Authenticated principal identity.
  name: Account
paths:
  /api/v1/auth/me:
    get:
      description: Returns the stable Casatoo principal ID, kind, and email.
      operationId: getAgentProfile
      parameters: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CasatooMe'
          description: ''
          headers:
            X-Request-ID:
              description: Stable request identifier for support and tracing.
              schema:
                type: string
        '400':
          content:
            application/problem+json:
              examples:
                rateLimited:
                  summary: Quota exceeded
                  value:
                    code: rate_limited
                    detail: Too many requests. Please try again shortly.
                    instance: /api/v1/search/public
                    request_id: 5e97d0c8-3d19-42ec-93c2-ad93ca676c1f
                    retry_after_seconds: 30
                    retryable: true
                    status: 429
                    title: Rate limit exceeded
                    type: https://api.casatoo.pt/problems/rate_limited
              schema:
                $ref: '#/components/schemas/AgentProblem'
          description: RFC 9457 problem details with stable Casatoo extensions.
          headers:
            Retry-After:
              description: Seconds to wait when the problem is retryable.
              schema:
                minimum: 0
                type: integer
            X-Request-ID:
              description: Stable request identifier for support and tracing.
              schema:
                type: string
        '401':
          content:
            application/problem+json:
              examples:
                rateLimited:
                  summary: Quota exceeded
                  value:
                    code: rate_limited
                    detail: Too many requests. Please try again shortly.
                    instance: /api/v1/search/public
                    request_id: 5e97d0c8-3d19-42ec-93c2-ad93ca676c1f
                    retry_after_seconds: 30
                    retryable: true
                    status: 429
                    title: Rate limit exceeded
                    type: https://api.casatoo.pt/problems/rate_limited
              schema:
                $ref: '#/components/schemas/AgentProblem'
          description: RFC 9457 problem details with stable Casatoo extensions.
          headers:
            Retry-After:
              description: Seconds to wait when the problem is retryable.
              schema:
                minimum: 0
                type: integer
            X-Request-ID:
              description: Stable request identifier for support and tracing.
              schema:
                type: string
        '403':
          content:
            application/problem+json:
              examples:
                rateLimited:
                  summary: Quota exceeded
                  value:
                    code: rate_limited
                    detail: Too many requests. Please try again shortly.
                    instance: /api/v1/search/public
                    request_id: 5e97d0c8-3d19-42ec-93c2-ad93ca676c1f
                    retry_after_seconds: 30
                    retryable: true
                    status: 429
                    title: Rate limit exceeded
                    type: https://api.casatoo.pt/problems/rate_limited
              schema:
                $ref: '#/components/schemas/AgentProblem'
          description: RFC 9457 problem details with stable Casatoo extensions.
          headers:
            Retry-After:
              description: Seconds to wait when the problem is retryable.
              schema:
                minimum: 0
                type: integer
            X-Request-ID:
              description: Stable request identifier for support and tracing.
              schema:
                type: string
        '404':
          content:
            application/problem+json:
              examples:
                rateLimited:
                  summary: Quota exceeded
                  value:
                    code: rate_limited
                    detail: Too many requests. Please try again shortly.
                    instance: /api/v1/search/public
                    request_id: 5e97d0c8-3d19-42ec-93c2-ad93ca676c1f
                    retry_after_seconds: 30
                    retryable: true
                    status: 429
                    title: Rate limit exceeded
                    type: https://api.casatoo.pt/problems/rate_limited
              schema:
                $ref: '#/components/schemas/AgentProblem'
          description: RFC 9457 problem details with stable Casatoo extensions.
          headers:
            Retry-After:
              description: Seconds to wait when the problem is retryable.
              schema:
                minimum: 0
                type: integer
            X-Request-ID:
              description: Stable request identifier for support and tracing.
              schema:
                type: string
        '422':
          content:
            application/problem+json:
              examples:
                rateLimited:
                  summary: Quota exceeded
                  value:
                    code: rate_limited
                    detail: Too many requests. Please try again shortly.
                    instance: /api/v1/search/public
                    request_id: 5e97d0c8-3d19-42ec-93c2-ad93ca676c1f
                    retry_after_seconds: 30
                    retryable: true
                    status: 429
                    title: Rate limit exceeded
                    type: https://api.casatoo.pt/problems/rate_limited
              schema:
                $ref: '#/components/schemas/AgentProblem'
          description: RFC 9457 problem details with stable Casatoo extensions.
          headers:
            Retry-After:
              description: Seconds to wait when the problem is retryable.
              schema:
                minimum: 0
                type: integer
            X-Request-ID:
              description: Stable request identifier for support and tracing.
              schema:
                type: string
        '429':
          content:
            application/problem+json:
              examples:
                rateLimited:
                  summary: Quota exceeded
                  value:
                    code: rate_limited
                    detail: Too many requests. Please try again shortly.
                    instance: /api/v1/search/public
                    request_id: 5e97d0c8-3d19-42ec-93c2-ad93ca676c1f
                    retry_after_seconds: 30
                    retryable: true
                    status: 429
                    title: Rate limit exceeded
                    type: https://api.casatoo.pt/problems/rate_limited
              schema:
                $ref: '#/components/schemas/AgentProblem'
          description: RFC 9457 problem details with stable Casatoo extensions.
          headers:
            Retry-After:
              description: Seconds to wait when the problem is retryable.
              schema:
                minimum: 0
                type: integer
            X-Request-ID:
              description: Stable request identifier for support and tracing.
              schema:
                type: string
        '500':
          content:
            application/problem+json:
              examples:
                rateLimited:
                  summary: Quota exceeded
                  value:
                    code: rate_limited
                    detail: Too many requests. Please try again shortly.
                    instance: /api/v1/search/public
                    request_id: 5e97d0c8-3d19-42ec-93c2-ad93ca676c1f
                    retry_after_seconds: 30
                    retryable: true
                    status: 429
                    title: Rate limit exceeded
                    type: https://api.casatoo.pt/problems/rate_limited
              schema:
                $ref: '#/components/schemas/AgentProblem'
          description: RFC 9457 problem details with stable Casatoo extensions.
          headers:
            Retry-After:
              description: Seconds to wait when the problem is retryable.
              schema:
                minimum: 0
                type: integer
            X-Request-ID:
              description: Stable request identifier for support and tracing.
              schema:
                type: string
        '502':
          content:
            application/problem+json:
              examples:
                rateLimited:
                  summary: Quota exceeded
                  value:
                    code: rate_limited
                    detail: Too many requests. Please try again shortly.
                    instance: /api/v1/search/public
                    request_id: 5e97d0c8-3d19-42ec-93c2-ad93ca676c1f
                    retry_after_seconds: 30
                    retryable: true
                    status: 429
                    title: Rate limit exceeded
                    type: https://api.casatoo.pt/problems/rate_limited
              schema:
                $ref: '#/components/schemas/AgentProblem'
          description: RFC 9457 problem details with stable Casatoo extensions.
          headers:
            Retry-After:
              description: Seconds to wait when the problem is retryable.
              schema:
                minimum: 0
                type: integer
            X-Request-ID:
              description: Stable request identifier for support and tracing.
              schema:
                type: string
        '503':
          content:
            application/problem+json:
              examples:
                rateLimited:
                  summary: Quota exceeded
                  value:
                    code: rate_limited
                    detail: Too many requests. Please try again shortly.
                    instance: /api/v1/search/public
                    request_id: 5e97d0c8-3d19-42ec-93c2-ad93ca676c1f
                    retry_after_seconds: 30
                    retryable: true
                    status: 429
                    title: Rate limit exceeded
                    type: https://api.casatoo.pt/problems/rate_limited
              schema:
                $ref: '#/components/schemas/AgentProblem'
          description: RFC 9457 problem details with stable Casatoo extensions.
          headers:
            Retry-After:
              description: Seconds to wait when the problem is retryable.
              schema:
                minimum: 0
                type: integer
            X-Request-ID:
              description: Stable request identifier for support and tracing.
              schema:
                type: string
      security:
      - casatooOAuth: []
      summary: Inspect the authenticated principal
      tags:
      - Account
    servers:
    - description: Production
      url: https://api.casatoo.pt
    - description: Local development
      url: http://localhost:8200
components:
  schemas:
    AgentProblem:
      properties:
        code:
          type: string
        detail:
          type: string
        errors:
          items:
            properties:
              code:
                type: string
              message:
                type: string
              pointer:
                type: string
            required:
            - pointer
            - code
            - message
            type: object
          type: array
        instance:
          format: uri-reference
          type: string
        request_id:
          type: string
        retry_after_seconds:
          minimum: 0
          type: integer
        retryable:
          type: boolean
        status:
          maximum: 599
          minimum: 400
          type: integer
        title:
          type: string
        type:
          format: uri-reference
          type: string
      required:
      - type
      - title
      - status
      - detail
      - instance
      - code
      - retryable
      - request_id
      type: object
    CasatooMe:
      properties:
        email:
          type: string
        id:
          type: string
        is_superuser:
          type: boolean
        is_verified:
          type: boolean
        kind:
          const: human
          type: string
        saved_search_count:
          format: int64
          type: integer
      required:
      - id
      - kind
      - email
      - is_verified
      - is_superuser
      - saved_search_count
      type: object
  securitySchemes:
    casatooOAuth:
      description: Authorization code grants delegated human access.
      flows:
        authorizationCode:
          authorizationUrl: https://oauth.casatoo.pt/oauth2/auth
          scopes:
            casatoo:read: Compatibility alias for all supported read scopes.
            casatoo:write: Compatibility alias for all supported write scopes.
            likes:read: Read listing likes owned by the principal.
            likes:write: Create or remove listing likes for the principal.
            listings:read: Read listing search results, detail, and comparisons.
            locations:read: Resolve supported Portuguese locations.
            saved-searches:read: Read saved searches owned by the principal.
            saved-searches:write: Create, update, or delete saved searches for the principal.
          tokenUrl: https://oauth.casatoo.pt/oauth2/token
      type: oauth2
x-refined-from:
- casatoo-pt-agent-openapi.json
- casatoo-pt-openapi.yml
x-casatoo-contract-version: '2026-08-22'