openapi: 3.2.0 info: title: Sketchfab Data Users API description: 'The Sketchfab Data API v3 provides programmatic read and write access to Sketchfab content. Authenticated callers can upload new 3D models, edit model metadata and settings, manage collections, comments, likes, and bookmarks, search the public model catalog, and administer organizations and projects. Public endpoints (model search, model detail, user profile) are available without authentication. ' version: v3 contact: name: Sketchfab Developer Support url: https://support.fab.com/s/?ProductOrigin=Sketchfab license: name: Sketchfab Developer Terms of Use url: https://sketchfab.com/developers/terms servers: - url: https://api.sketchfab.com description: Production API security: - OAuth2: [] - ApiTokenAuth: [] tags: - name: Users description: Retrieve user account information. paths: /v3/me: get: summary: Retrieve The Current User description: Get the authenticated user's profile, plan, and account metadata. operationId: getCurrentUser tags: - Users responses: '200': description: Authenticated user. content: application/json: schema: $ref: '#/components/schemas/User' '401': $ref: '#/components/responses/Error' /v3/users/{username}: get: summary: Retrieve A User description: Public profile for the requested user. operationId: getUser tags: - Users parameters: - name: username in: path required: true schema: type: string responses: '200': description: User profile. content: application/json: schema: $ref: '#/components/schemas/User' components: responses: Error: description: Error response. content: application/json: schema: $ref: '#/components/schemas/Error' schemas: Error: type: object properties: detail: type: string code: type: string User: type: object properties: uid: type: string username: type: string displayName: type: string profileUrl: type: string format: uri account: type: string description: Plan slug (basic, plus, pro, premium, business, enterprise). avatar: type: object securitySchemes: OAuth2: type: oauth2 description: Sketchfab OAuth 2.0. Access tokens are valid for one month. flows: authorizationCode: authorizationUrl: https://sketchfab.com/oauth2/authorize/ tokenUrl: https://sketchfab.com/oauth2/token/ refreshUrl: https://sketchfab.com/oauth2/token/ scopes: read: Read access to the caller's account, models, and collections. write: Create, update, and delete the caller's models and collections. ApiTokenAuth: type: apiKey in: header name: Authorization description: 'Personal API token sent as `Authorization: Token `.'