Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 1 addition & 10 deletions features/public-api.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down
55 changes: 0 additions & 55 deletions openapi.documented (5).yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
47 changes: 1 addition & 46 deletions openapi.documented.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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);