Skip to content

Projects API

All URIs are relative to https://api.syntheticusers.com/api/v1

MethodHTTP requestDescription
getProjectGET /projects/Get Project
listProjectsGET /projectsList Projects
streamEventsGET /projects/{project_id}/streamStream Events

getProject

Project getProject()

This method fetches and returns a list of all workspaces where the user is active. The list that is returned also includes all the data included in the workspaces. Returns: - List[WorkspaceSchema]: A list of all workspaces and its data where the user is active.

Example

typescript
import { createConfiguration, ProjectsApi } from '';
import type { ProjectsApiGetProjectRequest } from '';

const configuration = createConfiguration();
const apiInstance = new ProjectsApi(configuration);

const request: ProjectsApiGetProjectRequest = {
  
  projectId: "project_id_example",
};

const data = await apiInstance.getProject(request);
console.log('API called successfully. Returned data:', data);

Parameters

NameTypeDescriptionNotes
projectId[string]defaults to undefined

Return type

Project

Authorization

HTTPBearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Successful Response-
422Validation Error-

[Back to top] [Back to API list] [Back to SDK]

listProjects

PageProject listProjects()

This method fetches and returns a list of all workspaces where the user is active. The list that is returned also includes all the data included in the workspaces. Returns: - List[WorkspaceSchema]: A list of all workspaces and its data where the user is active.

Example

typescript
import { createConfiguration, ProjectsApi } from '';
import type { ProjectsApiListProjectsRequest } from '';

const configuration = createConfiguration();
const apiInstance = new ProjectsApi(configuration);

const request: ProjectsApiListProjectsRequest = {
    // Page number (optional)
  page: 1,
    // Page size (optional)
  size: 50,
};

const data = await apiInstance.listProjects(request);
console.log('API called successfully. Returned data:', data);

Parameters

NameTypeDescriptionNotes
page[number]Page number(optional) defaults to 1
size[number]Page size(optional) defaults to 50

Return type

PageProject

Authorization

HTTPBearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Successful Response-
422Validation Error-

[Back to top] [Back to API list] [Back to SDK]

streamEvents

any streamEvents()

SSE endpoint for streaming model events.

Example

typescript
import { createConfiguration, ProjectsApi } from '';
import type { ProjectsApiStreamEventsRequest } from '';

const configuration = createConfiguration();
const apiInstance = new ProjectsApi(configuration);

const request: ProjectsApiStreamEventsRequest = {
  
  projectId: "project_id_example",
};

const data = await apiInstance.streamEvents(request);
console.log('API called successfully. Returned data:', data);

Parameters

NameTypeDescriptionNotes
projectId[string]defaults to undefined

Return type

any

Authorization

HTTPBearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Successful Response-
422Validation Error-

[Back to top] [Back to API list] [Back to SDK]

Released under the MIT License.