diff --git a/features/public-api.mdx b/features/public-api.mdx index cf277c8..cec933f 100644 --- a/features/public-api.mdx +++ b/features/public-api.mdx @@ -25,7 +25,7 @@ Include your API key in the `Authorization` header for all requests: ```bash curl -H "Authorization: Bearer YOUR_API_KEY" \ - https://internal.tembo.io/me + https://api.tembo.io/task/list ``` ## SDK Installation @@ -121,15 +121,6 @@ for (const repo of codeRepositories) { } ``` -### Get Current User - -Verify your authentication and retrieve organization info. - -```javascript -const me = await client.me.retrieve(); -console.log(`Organization: ${me.orgId}`); -``` - ## Use Cases Common integrations include: diff --git a/openapi.documented (5).yml b/openapi.documented (5).yml index db22e9e..05c2e1a 100644 --- a/openapi.documented (5).yml +++ b/openapi.documented (5).yml @@ -693,58 +693,3 @@ paths: required: - name - jsonContent - /me: - get: - responses: - "200": - description: Successfully retrieved user information - content: - application/json: - schema: - type: object - properties: - orgId: - type: - - string - - "null" - format: uuid - description: Organization ID for the authenticated user - example: 123e4567-e89b-12d3-a456-426614174000 - userId: - type: - - string - - "null" - format: uuid - description: User ID for the authenticated user - example: 456e7890-e89b-12d3-a456-426614174001 - required: - - orgId - - userId - operationId: getPublic-apiMe - tags: - - public-api - parameters: [] - description: Get information about the current authenticated user - summary: Get Current User Info - x-codeSamples: - - lang: JavaScript - source: |- - import Tembo from '@tembo-io/sdk'; - - const client = new Tembo({ - apiKey: process.env['TEMBO_API_KEY'], // This is the default and can be omitted - }); - - const me = await client.me.retrieve(); - - console.log(me.orgId); - - lang: Python - source: |- - import os - from tembo import Tembo - - client = Tembo( - api_key=os.environ.get("TEMBO_API_KEY"), # This is the default and can be omitted - ) - me = client.me.retrieve() - print(me.org_id) diff --git a/openapi.documented.yml b/openapi.documented.yml index 44aaf26..04b5eea 100644 --- a/openapi.documented.yml +++ b/openapi.documented.yml @@ -4,7 +4,7 @@ info: description: Public API Endpoints for Tembo version: 1.0.0 servers: - - url: https://internal.tembo.io/ + - url: https://api.tembo.io/ description: Tembo API components: securitySchemes: @@ -491,48 +491,3 @@ paths: const repositories = await client.repository.list(); console.log(repositories.codeRepositories); - /me: - get: - responses: - "200": - description: Successfully retrieved user information - content: - application/json: - schema: - type: object - properties: - orgId: - type: - - string - - "null" - format: uuid - description: Organization ID for the authenticated user - example: 123e4567-e89b-12d3-a456-426614174000 - userId: - type: - - string - - "null" - format: uuid - description: User ID for the authenticated user - example: 456e7890-e89b-12d3-a456-426614174001 - required: - - orgId - - userId - operationId: getPublic-apiMe - tags: - - public-api - parameters: [] - description: Get information about the current authenticated user - summary: Get Current User Info - x-codeSamples: - - lang: JavaScript - source: |- - import Tembo from '@tembo-io/sdk'; - - const client = new Tembo({ - apiKey: 'My API Key', - }); - - const me = await client.me.retrieve(); - - console.log(me.orgId);