Skip to content

Synthetic Users API

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

MethodHTTP requestDescription
deleteSyntheticUserDELETE /syntheticUsers/Delete Synthetic User
editSyntheticUserPATCH /syntheticUsers/Edit Synthetic User
getSyntheticUserGET /syntheticUsers/Get Synthetic User
listSyntheticUsersGET /syntheticUsersList Synthetic Users
regenerateSyntheticUserPOST /syntheticUsers/{synthetic_user_id}/regenerateRegenerate Synthetic User

deleteSyntheticUser

any deleteSyntheticUser()

Example

typescript
import { createConfiguration, SyntheticUsersApi } from '';
import type { SyntheticUsersApiDeleteSyntheticUserRequest } from '';

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

const request: SyntheticUsersApiDeleteSyntheticUserRequest = {
  
  syntheticUserId: "synthetic_user_id_example",
};

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

Parameters

NameTypeDescriptionNotes
syntheticUserId[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]

editSyntheticUser

SyntheticUser editSyntheticUser(syntheticUserPartial)

Example

typescript
import { createConfiguration, SyntheticUsersApi } from '';
import type { SyntheticUsersApiEditSyntheticUserRequest } from '';

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

const request: SyntheticUsersApiEditSyntheticUserRequest = {
  
  syntheticUserId: "synthetic_user_id_example",
  
  syntheticUserPartial: {
    description: "description_example",
  },
};

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

Parameters

NameTypeDescriptionNotes
syntheticUserPartialSyntheticUserPartial
syntheticUserId[string]defaults to undefined

Return type

SyntheticUser

Authorization

HTTPBearer

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Successful Response-
422Validation Error-

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

getSyntheticUser

SyntheticUser getSyntheticUser()

Example

typescript
import { createConfiguration, SyntheticUsersApi } from '';
import type { SyntheticUsersApiGetSyntheticUserRequest } from '';

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

const request: SyntheticUsersApiGetSyntheticUserRequest = {
  
  syntheticUserId: "synthetic_user_id_example",
};

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

Parameters

NameTypeDescriptionNotes
syntheticUserId[string]defaults to undefined

Return type

SyntheticUser

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]

listSyntheticUsers

PageSyntheticUser listSyntheticUsers()

Example

typescript
import { createConfiguration, SyntheticUsersApi } from '';
import type { SyntheticUsersApiListSyntheticUsersRequest } from '';

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

const request: SyntheticUsersApiListSyntheticUsersRequest = {
    // Comma-separated list of synthetic user IDs (optional)
  id: "id_example",
    // Comma-separated list of project IDs (optional)
  projectId: "projectId_example",
    // Comma-separated list of synthetic user IDs (optional)
  audienceId: "audienceId_example",
    // Status to filter by (optional)
  status: "status_example",
    // Page number (optional)
  page: 1,
    // Page size (optional)
  size: 50,
};

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

Parameters

NameTypeDescriptionNotes
id[string]Comma-separated list of synthetic user IDs(optional) defaults to undefined
projectId[string]Comma-separated list of project IDs(optional) defaults to undefined
audienceId[string]Comma-separated list of synthetic user IDs(optional) defaults to undefined
status[string]Status to filter by(optional) defaults to undefined
page[number]Page number(optional) defaults to 1
size[number]Page size(optional) defaults to 50

Return type

PageSyntheticUser

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]

regenerateSyntheticUser

SyntheticUser regenerateSyntheticUser()

Example

typescript
import { createConfiguration, SyntheticUsersApi } from '';
import type { SyntheticUsersApiRegenerateSyntheticUserRequest } from '';

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

const request: SyntheticUsersApiRegenerateSyntheticUserRequest = {
  
  syntheticUserId: "synthetic_user_id_example",
};

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

Parameters

NameTypeDescriptionNotes
syntheticUserId[string]defaults to undefined

Return type

SyntheticUser

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.