Daytona Users API

The users API from Daytona — 5 operation(s) for users.

Operations 8

GET /users/me Get authenticated user #
POST /users/me/logins Record a completed login #
POST /users/privacy-policies/accept Accept the current privacy policies #
GET /users/account-providers Get account providers #
POST /users/linked-accounts Link account (withdrawn) #

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/daytona-io:daytona-io-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. See our Privacy Policy and Terms.

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

OpenAPI Specification

daytona-io-users-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  contact:
    email: support@daytona.com
    name: Daytona Platforms Inc.
    url: https://www.daytona.io
  description: Daytona AI platform API Docs
  license:
    name: Apache-2.0
    url: https://www.apache.org/licenses/LICENSE-2.0
  title: Daytona Users API
  version: '1.0'
servers:
- url: http://localhost:3000
tags:
- name: Users
paths:
  /users/me:
    get:
      operationId: getAuthenticatedUser
      parameters: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/User'
          description: User details
      security:
      - bearer: []
      - oauth2:
        - openid
        - profile
        - email
      summary: Get authenticated user
      tags:
      - Users
  /users/me/logins:
    post:
      description: Called by the dashboard once per completed sign-in. The email access gate evaluates the user and reports the login to analytics; a refused user receives 403 with code EMAIL_ACCESS_DENIED.
      operationId: recordLogin
      parameters: []
      responses:
        '204':
          description: Login recorded
      security:
      - bearer: []
      - oauth2:
        - openid
        - profile
        - email
      summary: Record a completed login
      tags:
      - Users
  /users/privacy-policies/accept:
    post:
      operationId: acceptPrivacyPolicies
      parameters: []
      responses:
        '204':
          description: Privacy policies accepted
      security:
      - bearer: []
      - oauth2:
        - openid
        - profile
        - email
      summary: Accept the current privacy policies
      tags:
      - Users
  /users/account-providers:
    get:
      description: Social sign-in providers (Google, GitHub, ...) enabled for this environment, each flagged with whether the authenticated user has an identity linked through it.
      operationId: getAccountProviders
      parameters: []
      responses:
        '200':
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/AccountProvider'
                type: array
          description: Account providers
      security:
      - bearer: []
      - oauth2:
        - openid
        - profile
        - email
      summary: Get account providers
      tags:
      - Users
  /users/linked-accounts:
    post:
      deprecated: true
      description: Withdrawn. This operation is no longer supported and always responds 410.
      operationId: linkAccount
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateLinkedAccount'
        required: true
      responses:
        '410':
          description: Account linking is no longer supported
      security:
      - bearer: []
      - oauth2:
        - openid
        - profile
        - email
      summary: Link account (withdrawn)
      tags:
      - Users
  /users/me/pending-sso-links:
    get:
      operationId: listPendingSsoLinks
      parameters: []
      responses:
        '200':
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/PendingSsoLink'
                type: array
          description: Pending SSO account links
      security:
      - bearer: []
      - oauth2:
        - openid
        - profile
        - email
      summary: List pending SSO account links for the authenticated user
      tags:
      - Users
  /users/me/pending-sso-links/{id}/confirm:
    post:
      operationId: confirmPendingSsoLink
      parameters:
      - explode: false
        in: path
        name: id
        required: true
        schema:
          type: string
        style: simple
      responses:
        '204':
          description: SSO identity linked
      security:
      - bearer: []
      - oauth2:
        - openid
        - profile
        - email
      summary: Confirm (link) a pending SSO account link
      tags:
      - Users
  /users/me/pending-sso-links/{id}:
    delete:
      operationId: dismissPendingSsoLink
      parameters:
      - explode: false
        in: path
        name: id
        required: true
        schema:
          type: string
        style: simple
      responses:
        '204':
          description: Pending SSO link dismissed
      security:
      - bearer: []
      - oauth2:
        - openid
        - profile
        - email
      summary: Dismiss a pending SSO account link
      tags:
      - Users
components:
  schemas:
    CreateLinkedAccount:
      example:
        provider: provider
        userId: userId
      properties:
        provider:
          description: The authentication provider of the secondary account
          type: string
        userId:
          description: The user ID of the secondary account
          type: string
      required:
      - provider
      - userId
      type: object
    PendingSsoLink:
      example:
        organizationId: organizationId
        createdAt: createdAt
        idpName: idpName
        id: id
        providerEmail: providerEmail
        expiresAt: expiresAt
      properties:
        id:
          type: string
        idpName:
          description: Display name of the identity provider requesting to be linked
          type: string
        organizationId:
          description: Organization that configured the identity provider
          type: string
        providerEmail:
          description: Email asserted by the identity provider
          type:
          - string
          - 'null'
        createdAt:
          type: string
        expiresAt:
          type: string
      required:
      - createdAt
      - expiresAt
      - id
      - idpName
      - organizationId
      - providerEmail
      type: object
    User:
      example:
        emailVerified: true
        createdAt: '2000-01-23T04:56:07.000Z'
        publicKeys:
        - name: name
          key: key
        - name: name
          key: key
        pylonEmailHash: pylonEmailHash
        name: name
        id: id
        email: email
        privacyPoliciesAccepted: true
      properties:
        id:
          description: User ID
          type: string
        name:
          description: User name
          type: string
        email:
          description: User email
          type: string
        emailVerified:
          description: Whether the user email address has been verified
          type: boolean
        pylonEmailHash:
          description: HMAC of the user email for Pylon support-widget identity verification
          type: string
        privacyPoliciesAccepted:
          description: Whether the user has accepted the current privacy policies. Populated on the /users/me endpoint.
          type: boolean
        publicKeys:
          description: User public keys
          items:
            $ref: '#/components/schemas/UserPublicKey'
          type: array
        createdAt:
          description: Creation timestamp
          format: date-time
          type: string
      required:
      - createdAt
      - email
      - emailVerified
      - id
      - name
      - publicKeys
      type: object
    UserPublicKey:
      example:
        name: name
        key: key
      properties:
        key:
          description: Public key
          type: string
        name:
          description: Key name
          type: string
      required:
      - key
      - name
      type: object
    AccountProvider:
      example:
        provider: provider
        displayName: displayName
        linked: true
      properties:
        provider:
          description: WorkOS identity provider, e.g. GoogleOAuth or GitHubOAuth
          type: string
        displayName:
          description: Human-readable provider name
          type: string
        linked:
          description: Whether the authenticated user has an identity from this provider
          type: boolean
      required:
      - displayName
      - linked
      - provider
      type: object
  securitySchemes:
    bearer:
      bearerFormat: JWT
      description: API Key access
      scheme: bearer
      type: http
    oauth2:
      openIdConnectUrl: http://localhost:3000/.well-known/openid-configuration
      type: openIdConnect
x-provenance:
  method: harvested
  publisher: Daytona
  source: https://www.daytona.io/docs/openapi.json
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)