Apple CloudKit Users API

The Users API from Apple CloudKit — 4 operation(s) for users.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 4

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

POST /users/caller Get the caller's user identity · Fetch the caller's user identity #
Ask an LLM
“How do I find out which CloudKit user identity my app is calling as?”
“Can I get the current user's record name from the users endpoint?”
Tell an agent
Fetch the caller's user identity.
Tell me which CloudKit user identity my app is running under.
POST /users/discover Find users by email or phone · Discover users by email or phone #
Ask an LLM
“How do I find a CloudKit user by their email address?”
“Can I discover users by phone number instead of email?”
Tell an agent
Discover users by email or phone.
Find the CloudKit user record for this email or phone number.
POST /users/lookup/email Look up users by email · Look up users by email #
Ask an LLM
“How do I find a user's record name when I only have their email?”
“Can I resolve an email address to a CloudKit user identity?”
Tell an agent
Look up users by email.
Resolve this email address to a CloudKit user record.
POST /users/lookup/id Look up users by record name · Look up users by record name #
Ask an LLM
“How do I get a user's record name from their CloudKit record ID?”
“Can I look up a user by record name instead of email?”
Tell an agent
Look up users by record name.
Find the user record with this record name.

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/cloudkit:cloudkit-users-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

cloudkit-users-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Apple CloudKit Web Services Users API
  description: 'Best-effort OpenAPI 3.1 description of Apple CloudKit Web Services, the

    REST surface that lets non-Apple-platform clients read and write data in

    a CloudKit container''s public, private, or shared database.'
  version: '1.0'
  contact:
    name: Apple CloudKit
    url: https://developer.apple.com/library/archive/documentation/DataManagement/Conceptual/CloudKitWebServicesReference/index.html
servers:
- url: https://api.apple-cloudkit.com/database/1/{container}/{environment}/{database}
  description: CloudKit Web Services database endpoint
  variables:
    container:
      default: iCloud.com.example.myapp
      description: CloudKit container identifier
    environment:
      default: development
      enum:
      - development
      - production
    database:
      default: public
      enum:
      - public
      - private
      - shared
security:
- cloudKitApiToken: []
- serverToServer: []
tags:
- name: Users
paths:
  /users/caller:
    post:
      summary: Fetch the caller's user identity
      operationId: callerUser
      tags:
      - Users
      responses:
        '200':
          description: Caller identity
  /users/discover:
    post:
      summary: Discover users by email or phone
      operationId: discoverUsers
      tags:
      - Users
      responses:
        '200':
          description: Users discovered
  /users/lookup/email:
    post:
      summary: Look up users by email
      operationId: lookupUsersByEmail
      tags:
      - Users
      responses:
        '200':
          description: Users
  /users/lookup/id:
    post:
      summary: Look up users by record name
      operationId: lookupUsersById
      tags:
      - Users
      responses:
        '200':
          description: Users
components:
  securitySchemes:
    cloudKitApiToken:
      type: apiKey
      in: query
      name: ckAPIToken
      description: 'CloudKit API token issued from the CloudKit dashboard, appended to

        the request URL as `ckAPIToken`. Required for end-user authenticated

        access via web auth tokens.

        '
    serverToServer:
      type: apiKey
      in: header
      name: X-Apple-CloudKit-Request-SignatureV1
      description: 'Server-to-server authentication uses ECDSA-signed requests with

        `X-Apple-CloudKit-Request-KeyID`, `X-Apple-CloudKit-Request-ISO8601Date`,

        and `X-Apple-CloudKit-Request-SignatureV1` headers.

        '