Skip to main content

WWW::SwaggerClient::UserApi

Load the API package

use WWW::SwaggerClient::Object::UserApi;

All URIs are relative to https://api.estuary.tech

MethodHTTP requestDescription
user_api_keys_getGET /user/api-keysGet API keys for a user
user_api_keys_key_deleteDELETE /user/api-keys/{key}Revoke a User API Key.
user_api_keys_postPOST /user/api-keysCreate API keys for a user
user_export_getGET /user/exportExport user data
user_stats_getGET /user/statsCreate API keys for a user

user_api_keys_get

ARRAY[MainGetApiKeysResp] user_api_keys_get()

Get API keys for a user

This endpoint is used to get API keys for a user. In estuary, each user can be given multiple API keys (tokens). This endpoint can be used to retrieve all available API keys for a given user.

Example

use Data::Dumper;
use WWW::SwaggerClient::UserApi;
my $api_instance = WWW::SwaggerClient::UserApi->new(

# Configure API key authorization: bearerAuth
api_key => {'Authorization' => 'YOUR_API_KEY'},
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#api_key_prefix => {'Authorization' => 'Bearer'},
);


eval {
my $result = $api_instance->user_api_keys_get();
print Dumper($result);
};
if ($@) {
warn "Exception when calling UserApi->user_api_keys_get: $@\n";
}

Parameters

This endpoint does not need any parameter.

Return type

ARRAY[MainGetApiKeysResp]

Authorization

bearerAuth

HTTP request headers

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

[Back to top] [Back to API list] [Back to Model list] [Back to README]

user_api_keys_key_delete

user_api_keys_key_delete(key => $key)

Revoke a User API Key.

This endpoint is used to revoke a user API key. In estuary, every user is assigned with an API key, this API key is generated and issued for each user and is primarily use to access all estuary features. This endpoint can be used to revoke the API key thats assigned to the user.

Example

use Data::Dumper;
use WWW::SwaggerClient::UserApi;
my $api_instance = WWW::SwaggerClient::UserApi->new(

# Configure API key authorization: bearerAuth
api_key => {'Authorization' => 'YOUR_API_KEY'},
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#api_key_prefix => {'Authorization' => 'Bearer'},
);

my $key = 'key_example'; # string | Key

eval {
$api_instance->user_api_keys_key_delete(key => $key);
};
if ($@) {
warn "Exception when calling UserApi->user_api_keys_key_delete: $@\n";
}

Parameters

NameTypeDescriptionNotes
keystringKey

Return type

void (empty response body)

Authorization

bearerAuth

HTTP request headers

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

[Back to top] [Back to API list] [Back to Model list] [Back to README]

user_api_keys_post

MainGetApiKeysResp user_api_keys_post(expiry => $expiry, perms => $perms)

Create API keys for a user

This endpoint is used to create API keys for a user. In estuary, each user is given an API key to access all features.

Example

use Data::Dumper;
use WWW::SwaggerClient::UserApi;
my $api_instance = WWW::SwaggerClient::UserApi->new(

# Configure API key authorization: bearerAuth
api_key => {'Authorization' => 'YOUR_API_KEY'},
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#api_key_prefix => {'Authorization' => 'Bearer'},
);

my $expiry = 'expiry_example'; # string | Expiration - Expiration - Valid time units are ns, us (or µs), ms, s, m, h. for example 300h
my $perms = 'perms_example'; # string | Permissions -- currently unused

eval {
my $result = $api_instance->user_api_keys_post(expiry => $expiry, perms => $perms);
print Dumper($result);
};
if ($@) {
warn "Exception when calling UserApi->user_api_keys_post: $@\n";
}

Parameters

NameTypeDescriptionNotes
expirystringExpiration - Expiration - Valid time units are ns, us (or µs), ms, s, m, h. for example 300h[optional]
permsstringPermissions -- currently unused[optional]

Return type

MainGetApiKeysResp

Authorization

bearerAuth

HTTP request headers

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

[Back to top] [Back to API list] [Back to Model list] [Back to README]

user_export_get

string user_export_get()

Export user data

This endpoint is used to get API keys for a user.

Example

use Data::Dumper;
use WWW::SwaggerClient::UserApi;
my $api_instance = WWW::SwaggerClient::UserApi->new(

# Configure API key authorization: bearerAuth
api_key => {'Authorization' => 'YOUR_API_KEY'},
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#api_key_prefix => {'Authorization' => 'Bearer'},
);


eval {
my $result = $api_instance->user_export_get();
print Dumper($result);
};
if ($@) {
warn "Exception when calling UserApi->user_export_get: $@\n";
}

Parameters

This endpoint does not need any parameter.

Return type

string

Authorization

bearerAuth

HTTP request headers

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

[Back to top] [Back to API list] [Back to Model list] [Back to README]

user_stats_get

MainUserStatsResponse user_stats_get()

Create API keys for a user

This endpoint is used to create API keys for a user.

Example

use Data::Dumper;
use WWW::SwaggerClient::UserApi;
my $api_instance = WWW::SwaggerClient::UserApi->new(

# Configure API key authorization: bearerAuth
api_key => {'Authorization' => 'YOUR_API_KEY'},
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#api_key_prefix => {'Authorization' => 'Bearer'},
);


eval {
my $result = $api_instance->user_stats_get();
print Dumper($result);
};
if ($@) {
warn "Exception when calling UserApi->user_stats_get: $@\n";
}

Parameters

This endpoint does not need any parameter.

Return type

MainUserStatsResponse

Authorization

bearerAuth

HTTP request headers

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

[Back to top] [Back to API list] [Back to Model list] [Back to README]