All URIs are relative to https://public.api.bsky.app/xrpc
Method | HTTP request | Description |
---|---|---|
ComAtprotoServerActivateAccount | POST /com.atproto.server.activateAccount | |
ComAtprotoServerCheckAccountStatus | GET /com.atproto.server.checkAccountStatus | |
ComAtprotoServerConfirmEmail | POST /com.atproto.server.confirmEmail | |
ComAtprotoServerCreateAccount | POST /com.atproto.server.createAccount | |
ComAtprotoServerCreateAppPassword | POST /com.atproto.server.createAppPassword | |
ComAtprotoServerCreateInviteCode | POST /com.atproto.server.createInviteCode | |
ComAtprotoServerCreateInviteCodes | POST /com.atproto.server.createInviteCodes | |
ComAtprotoServerCreateSession | POST /com.atproto.server.createSession | |
ComAtprotoServerDeactivateAccount | POST /com.atproto.server.deactivateAccount | |
ComAtprotoServerDeleteAccount | POST /com.atproto.server.deleteAccount | |
ComAtprotoServerDeleteSession | POST /com.atproto.server.deleteSession | |
ComAtprotoServerDescribeServer | GET /com.atproto.server.describeServer | |
ComAtprotoServerGetAccountInviteCodes | GET /com.atproto.server.getAccountInviteCodes | |
ComAtprotoServerGetServiceAuth | GET /com.atproto.server.getServiceAuth | |
ComAtprotoServerGetSession | GET /com.atproto.server.getSession | |
ComAtprotoServerListAppPasswords | GET /com.atproto.server.listAppPasswords | |
ComAtprotoServerRefreshSession | POST /com.atproto.server.refreshSession | |
ComAtprotoServerRequestAccountDelete | POST /com.atproto.server.requestAccountDelete | |
ComAtprotoServerRequestEmailConfirmation | POST /com.atproto.server.requestEmailConfirmation | |
ComAtprotoServerRequestEmailUpdate | POST /com.atproto.server.requestEmailUpdate | |
ComAtprotoServerRequestPasswordReset | POST /com.atproto.server.requestPasswordReset | |
ComAtprotoServerReserveSigningKey | POST /com.atproto.server.reserveSigningKey | |
ComAtprotoServerResetPassword | POST /com.atproto.server.resetPassword | |
ComAtprotoServerRevokeAppPassword | POST /com.atproto.server.revokeAppPassword | |
ComAtprotoServerUpdateEmail | POST /com.atproto.server.updateEmail |
void ComAtprotoServerActivateAccount ()
Activates a currently deactivated account. Used to finalize account migration after the account's repo is imported and identity is setup.
using System.Collections.Generic;
using System.Diagnostics;
using BSky.Api;
using BSky.Client;
using BSky.Model;
namespace Example
{
public class ComAtprotoServerActivateAccountExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://public.api.bsky.app/xrpc";
// Configure Bearer token for authorization: Bearer
config.AccessToken = "YOUR_BEARER_TOKEN";
var apiInstance = new ComAtprotoServerApi(config);
try
{
apiInstance.ComAtprotoServerActivateAccount();
}
catch (ApiException e)
{
Debug.Print("Exception when calling ComAtprotoServerApi.ComAtprotoServerActivateAccount: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
apiInstance.ComAtprotoServerActivateAccountWithHttpInfo();
}
catch (ApiException e)
{
Debug.Print("Exception when calling ComAtprotoServerApi.ComAtprotoServerActivateAccountWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
This endpoint does not need any parameter.
void (empty response body)
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
400 | Bad Request | - |
401 | Unauthorized | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ComAtprotoServerCheckAccountStatus200Response ComAtprotoServerCheckAccountStatus ()
Returns the status of an account, especially as pertaining to import or recovery. Can be called many times over the course of an account migration. Requires auth and can only be called pertaining to oneself.
using System.Collections.Generic;
using System.Diagnostics;
using BSky.Api;
using BSky.Client;
using BSky.Model;
namespace Example
{
public class ComAtprotoServerCheckAccountStatusExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://public.api.bsky.app/xrpc";
// Configure Bearer token for authorization: Bearer
config.AccessToken = "YOUR_BEARER_TOKEN";
var apiInstance = new ComAtprotoServerApi(config);
try
{
ComAtprotoServerCheckAccountStatus200Response result = apiInstance.ComAtprotoServerCheckAccountStatus();
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ComAtprotoServerApi.ComAtprotoServerCheckAccountStatus: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
ApiResponse<ComAtprotoServerCheckAccountStatus200Response> response = apiInstance.ComAtprotoServerCheckAccountStatusWithHttpInfo();
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ComAtprotoServerApi.ComAtprotoServerCheckAccountStatusWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
This endpoint does not need any parameter.
ComAtprotoServerCheckAccountStatus200Response
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
400 | Bad Request | - |
401 | Unauthorized | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void ComAtprotoServerConfirmEmail (ComAtprotoServerConfirmEmailRequest comAtprotoServerConfirmEmailRequest)
Confirm an email using a token from com.atproto.server.requestEmailConfirmation.
using System.Collections.Generic;
using System.Diagnostics;
using BSky.Api;
using BSky.Client;
using BSky.Model;
namespace Example
{
public class ComAtprotoServerConfirmEmailExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://public.api.bsky.app/xrpc";
// Configure Bearer token for authorization: Bearer
config.AccessToken = "YOUR_BEARER_TOKEN";
var apiInstance = new ComAtprotoServerApi(config);
var comAtprotoServerConfirmEmailRequest = new ComAtprotoServerConfirmEmailRequest(); // ComAtprotoServerConfirmEmailRequest |
try
{
apiInstance.ComAtprotoServerConfirmEmail(comAtprotoServerConfirmEmailRequest);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ComAtprotoServerApi.ComAtprotoServerConfirmEmail: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
apiInstance.ComAtprotoServerConfirmEmailWithHttpInfo(comAtprotoServerConfirmEmailRequest);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ComAtprotoServerApi.ComAtprotoServerConfirmEmailWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
comAtprotoServerConfirmEmailRequest | ComAtprotoServerConfirmEmailRequest |
void (empty response body)
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
400 | Bad Request | - |
401 | Unauthorized | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ComAtprotoServerCreateAccount200Response ComAtprotoServerCreateAccount (ComAtprotoServerCreateAccountRequest comAtprotoServerCreateAccountRequest)
Create an account. Implemented by PDS.
using System.Collections.Generic;
using System.Diagnostics;
using BSky.Api;
using BSky.Client;
using BSky.Model;
namespace Example
{
public class ComAtprotoServerCreateAccountExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://public.api.bsky.app/xrpc";
var apiInstance = new ComAtprotoServerApi(config);
var comAtprotoServerCreateAccountRequest = new ComAtprotoServerCreateAccountRequest(); // ComAtprotoServerCreateAccountRequest |
try
{
ComAtprotoServerCreateAccount200Response result = apiInstance.ComAtprotoServerCreateAccount(comAtprotoServerCreateAccountRequest);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ComAtprotoServerApi.ComAtprotoServerCreateAccount: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
ApiResponse<ComAtprotoServerCreateAccount200Response> response = apiInstance.ComAtprotoServerCreateAccountWithHttpInfo(comAtprotoServerCreateAccountRequest);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ComAtprotoServerApi.ComAtprotoServerCreateAccountWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
comAtprotoServerCreateAccountRequest | ComAtprotoServerCreateAccountRequest |
ComAtprotoServerCreateAccount200Response
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
400 | Bad Request | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ComAtprotoServerCreateAppPasswordAppPassword ComAtprotoServerCreateAppPassword (ComAtprotoServerCreateAppPasswordRequest comAtprotoServerCreateAppPasswordRequest)
Create an App Password.
using System.Collections.Generic;
using System.Diagnostics;
using BSky.Api;
using BSky.Client;
using BSky.Model;
namespace Example
{
public class ComAtprotoServerCreateAppPasswordExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://public.api.bsky.app/xrpc";
// Configure Bearer token for authorization: Bearer
config.AccessToken = "YOUR_BEARER_TOKEN";
var apiInstance = new ComAtprotoServerApi(config);
var comAtprotoServerCreateAppPasswordRequest = new ComAtprotoServerCreateAppPasswordRequest(); // ComAtprotoServerCreateAppPasswordRequest |
try
{
ComAtprotoServerCreateAppPasswordAppPassword result = apiInstance.ComAtprotoServerCreateAppPassword(comAtprotoServerCreateAppPasswordRequest);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ComAtprotoServerApi.ComAtprotoServerCreateAppPassword: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
ApiResponse<ComAtprotoServerCreateAppPasswordAppPassword> response = apiInstance.ComAtprotoServerCreateAppPasswordWithHttpInfo(comAtprotoServerCreateAppPasswordRequest);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ComAtprotoServerApi.ComAtprotoServerCreateAppPasswordWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
comAtprotoServerCreateAppPasswordRequest | ComAtprotoServerCreateAppPasswordRequest |
ComAtprotoServerCreateAppPasswordAppPassword
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
400 | Bad Request | - |
401 | Unauthorized | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ComAtprotoServerCreateInviteCode200Response ComAtprotoServerCreateInviteCode (ComAtprotoServerCreateInviteCodeRequest comAtprotoServerCreateInviteCodeRequest)
Create an invite code.
using System.Collections.Generic;
using System.Diagnostics;
using BSky.Api;
using BSky.Client;
using BSky.Model;
namespace Example
{
public class ComAtprotoServerCreateInviteCodeExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://public.api.bsky.app/xrpc";
// Configure Bearer token for authorization: Bearer
config.AccessToken = "YOUR_BEARER_TOKEN";
var apiInstance = new ComAtprotoServerApi(config);
var comAtprotoServerCreateInviteCodeRequest = new ComAtprotoServerCreateInviteCodeRequest(); // ComAtprotoServerCreateInviteCodeRequest |
try
{
ComAtprotoServerCreateInviteCode200Response result = apiInstance.ComAtprotoServerCreateInviteCode(comAtprotoServerCreateInviteCodeRequest);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ComAtprotoServerApi.ComAtprotoServerCreateInviteCode: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
ApiResponse<ComAtprotoServerCreateInviteCode200Response> response = apiInstance.ComAtprotoServerCreateInviteCodeWithHttpInfo(comAtprotoServerCreateInviteCodeRequest);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ComAtprotoServerApi.ComAtprotoServerCreateInviteCodeWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
comAtprotoServerCreateInviteCodeRequest | ComAtprotoServerCreateInviteCodeRequest |
ComAtprotoServerCreateInviteCode200Response
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
400 | Bad Request | - |
401 | Unauthorized | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ComAtprotoServerCreateInviteCodes200Response ComAtprotoServerCreateInviteCodes (ComAtprotoServerCreateInviteCodesRequest comAtprotoServerCreateInviteCodesRequest)
Create invite codes.
using System.Collections.Generic;
using System.Diagnostics;
using BSky.Api;
using BSky.Client;
using BSky.Model;
namespace Example
{
public class ComAtprotoServerCreateInviteCodesExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://public.api.bsky.app/xrpc";
// Configure Bearer token for authorization: Bearer
config.AccessToken = "YOUR_BEARER_TOKEN";
var apiInstance = new ComAtprotoServerApi(config);
var comAtprotoServerCreateInviteCodesRequest = new ComAtprotoServerCreateInviteCodesRequest(); // ComAtprotoServerCreateInviteCodesRequest |
try
{
ComAtprotoServerCreateInviteCodes200Response result = apiInstance.ComAtprotoServerCreateInviteCodes(comAtprotoServerCreateInviteCodesRequest);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ComAtprotoServerApi.ComAtprotoServerCreateInviteCodes: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
ApiResponse<ComAtprotoServerCreateInviteCodes200Response> response = apiInstance.ComAtprotoServerCreateInviteCodesWithHttpInfo(comAtprotoServerCreateInviteCodesRequest);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ComAtprotoServerApi.ComAtprotoServerCreateInviteCodesWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
comAtprotoServerCreateInviteCodesRequest | ComAtprotoServerCreateInviteCodesRequest |
ComAtprotoServerCreateInviteCodes200Response
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
400 | Bad Request | - |
401 | Unauthorized | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ComAtprotoServerCreateSession200Response ComAtprotoServerCreateSession (ComAtprotoServerCreateSessionRequest comAtprotoServerCreateSessionRequest)
Create an authentication session.
using System.Collections.Generic;
using System.Diagnostics;
using BSky.Api;
using BSky.Client;
using BSky.Model;
namespace Example
{
public class ComAtprotoServerCreateSessionExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://public.api.bsky.app/xrpc";
var apiInstance = new ComAtprotoServerApi(config);
var comAtprotoServerCreateSessionRequest = new ComAtprotoServerCreateSessionRequest(); // ComAtprotoServerCreateSessionRequest |
try
{
ComAtprotoServerCreateSession200Response result = apiInstance.ComAtprotoServerCreateSession(comAtprotoServerCreateSessionRequest);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ComAtprotoServerApi.ComAtprotoServerCreateSession: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
ApiResponse<ComAtprotoServerCreateSession200Response> response = apiInstance.ComAtprotoServerCreateSessionWithHttpInfo(comAtprotoServerCreateSessionRequest);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ComAtprotoServerApi.ComAtprotoServerCreateSessionWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
comAtprotoServerCreateSessionRequest | ComAtprotoServerCreateSessionRequest |
ComAtprotoServerCreateSession200Response
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
400 | Bad Request | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void ComAtprotoServerDeactivateAccount (ComAtprotoServerDeactivateAccountRequest comAtprotoServerDeactivateAccountRequest)
Deactivates a currently active account. Stops serving of repo, and future writes to repo until reactivated. Used to finalize account migration with the old host after the account has been activated on the new host.
using System.Collections.Generic;
using System.Diagnostics;
using BSky.Api;
using BSky.Client;
using BSky.Model;
namespace Example
{
public class ComAtprotoServerDeactivateAccountExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://public.api.bsky.app/xrpc";
// Configure Bearer token for authorization: Bearer
config.AccessToken = "YOUR_BEARER_TOKEN";
var apiInstance = new ComAtprotoServerApi(config);
var comAtprotoServerDeactivateAccountRequest = new ComAtprotoServerDeactivateAccountRequest(); // ComAtprotoServerDeactivateAccountRequest |
try
{
apiInstance.ComAtprotoServerDeactivateAccount(comAtprotoServerDeactivateAccountRequest);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ComAtprotoServerApi.ComAtprotoServerDeactivateAccount: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
apiInstance.ComAtprotoServerDeactivateAccountWithHttpInfo(comAtprotoServerDeactivateAccountRequest);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ComAtprotoServerApi.ComAtprotoServerDeactivateAccountWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
comAtprotoServerDeactivateAccountRequest | ComAtprotoServerDeactivateAccountRequest |
void (empty response body)
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
400 | Bad Request | - |
401 | Unauthorized | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void ComAtprotoServerDeleteAccount (ComAtprotoServerDeleteAccountRequest comAtprotoServerDeleteAccountRequest)
Delete an actor's account with a token and password. Can only be called after requesting a deletion token. Requires auth.
using System.Collections.Generic;
using System.Diagnostics;
using BSky.Api;
using BSky.Client;
using BSky.Model;
namespace Example
{
public class ComAtprotoServerDeleteAccountExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://public.api.bsky.app/xrpc";
var apiInstance = new ComAtprotoServerApi(config);
var comAtprotoServerDeleteAccountRequest = new ComAtprotoServerDeleteAccountRequest(); // ComAtprotoServerDeleteAccountRequest |
try
{
apiInstance.ComAtprotoServerDeleteAccount(comAtprotoServerDeleteAccountRequest);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ComAtprotoServerApi.ComAtprotoServerDeleteAccount: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
apiInstance.ComAtprotoServerDeleteAccountWithHttpInfo(comAtprotoServerDeleteAccountRequest);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ComAtprotoServerApi.ComAtprotoServerDeleteAccountWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
comAtprotoServerDeleteAccountRequest | ComAtprotoServerDeleteAccountRequest |
void (empty response body)
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
400 | Bad Request | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void ComAtprotoServerDeleteSession ()
Delete the current session. Requires auth.
using System.Collections.Generic;
using System.Diagnostics;
using BSky.Api;
using BSky.Client;
using BSky.Model;
namespace Example
{
public class ComAtprotoServerDeleteSessionExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://public.api.bsky.app/xrpc";
// Configure Bearer token for authorization: Bearer
config.AccessToken = "YOUR_BEARER_TOKEN";
var apiInstance = new ComAtprotoServerApi(config);
try
{
apiInstance.ComAtprotoServerDeleteSession();
}
catch (ApiException e)
{
Debug.Print("Exception when calling ComAtprotoServerApi.ComAtprotoServerDeleteSession: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
apiInstance.ComAtprotoServerDeleteSessionWithHttpInfo();
}
catch (ApiException e)
{
Debug.Print("Exception when calling ComAtprotoServerApi.ComAtprotoServerDeleteSessionWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
This endpoint does not need any parameter.
void (empty response body)
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
400 | Bad Request | - |
401 | Unauthorized | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ComAtprotoServerDescribeServer200Response ComAtprotoServerDescribeServer ()
Describes the server's account creation requirements and capabilities. Implemented by PDS.
using System.Collections.Generic;
using System.Diagnostics;
using BSky.Api;
using BSky.Client;
using BSky.Model;
namespace Example
{
public class ComAtprotoServerDescribeServerExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://public.api.bsky.app/xrpc";
var apiInstance = new ComAtprotoServerApi(config);
try
{
ComAtprotoServerDescribeServer200Response result = apiInstance.ComAtprotoServerDescribeServer();
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ComAtprotoServerApi.ComAtprotoServerDescribeServer: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
ApiResponse<ComAtprotoServerDescribeServer200Response> response = apiInstance.ComAtprotoServerDescribeServerWithHttpInfo();
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ComAtprotoServerApi.ComAtprotoServerDescribeServerWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
This endpoint does not need any parameter.
ComAtprotoServerDescribeServer200Response
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
400 | Bad Request | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ComAtprotoServerGetAccountInviteCodes200Response ComAtprotoServerGetAccountInviteCodes (bool? includeUsed = null, bool? createAvailable = null)
Get all invite codes for the current account. Requires auth.
using System.Collections.Generic;
using System.Diagnostics;
using BSky.Api;
using BSky.Client;
using BSky.Model;
namespace Example
{
public class ComAtprotoServerGetAccountInviteCodesExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://public.api.bsky.app/xrpc";
// Configure Bearer token for authorization: Bearer
config.AccessToken = "YOUR_BEARER_TOKEN";
var apiInstance = new ComAtprotoServerApi(config);
var includeUsed = true; // bool? | (optional) (default to true)
var createAvailable = true; // bool? | Controls whether any new 'earned' but not 'created' invites should be created. (optional) (default to true)
try
{
ComAtprotoServerGetAccountInviteCodes200Response result = apiInstance.ComAtprotoServerGetAccountInviteCodes(includeUsed, createAvailable);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ComAtprotoServerApi.ComAtprotoServerGetAccountInviteCodes: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
ApiResponse<ComAtprotoServerGetAccountInviteCodes200Response> response = apiInstance.ComAtprotoServerGetAccountInviteCodesWithHttpInfo(includeUsed, createAvailable);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ComAtprotoServerApi.ComAtprotoServerGetAccountInviteCodesWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
includeUsed | bool? | [optional] [default to true] | |
createAvailable | bool? | Controls whether any new 'earned' but not 'created' invites should be created. | [optional] [default to true] |
ComAtprotoServerGetAccountInviteCodes200Response
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
400 | Bad Request | - |
401 | Unauthorized | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ComAtprotoServerGetServiceAuth200Response ComAtprotoServerGetServiceAuth (string aud, int? exp = null, string? lxm = null)
Get a signed token on behalf of the requesting DID for the requested service.
using System.Collections.Generic;
using System.Diagnostics;
using BSky.Api;
using BSky.Client;
using BSky.Model;
namespace Example
{
public class ComAtprotoServerGetServiceAuthExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://public.api.bsky.app/xrpc";
// Configure Bearer token for authorization: Bearer
config.AccessToken = "YOUR_BEARER_TOKEN";
var apiInstance = new ComAtprotoServerApi(config);
var aud = "aud_example"; // string | The DID of the service that the token will be used to authenticate with
var exp = 56; // int? | The time in Unix Epoch seconds that the JWT expires. Defaults to 60 seconds in the future. The service may enforce certain time bounds on tokens depending on the requested scope. (optional)
var lxm = "lxm_example"; // string? | Lexicon (XRPC) method to bind the requested token to (optional)
try
{
ComAtprotoServerGetServiceAuth200Response result = apiInstance.ComAtprotoServerGetServiceAuth(aud, exp, lxm);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ComAtprotoServerApi.ComAtprotoServerGetServiceAuth: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
ApiResponse<ComAtprotoServerGetServiceAuth200Response> response = apiInstance.ComAtprotoServerGetServiceAuthWithHttpInfo(aud, exp, lxm);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ComAtprotoServerApi.ComAtprotoServerGetServiceAuthWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
aud | string | The DID of the service that the token will be used to authenticate with | |
exp | int? | The time in Unix Epoch seconds that the JWT expires. Defaults to 60 seconds in the future. The service may enforce certain time bounds on tokens depending on the requested scope. | [optional] |
lxm | string? | Lexicon (XRPC) method to bind the requested token to | [optional] |
ComAtprotoServerGetServiceAuth200Response
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
400 | Bad Request | - |
401 | Unauthorized | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ComAtprotoServerGetSession200Response ComAtprotoServerGetSession ()
Get information about the current auth session. Requires auth.
using System.Collections.Generic;
using System.Diagnostics;
using BSky.Api;
using BSky.Client;
using BSky.Model;
namespace Example
{
public class ComAtprotoServerGetSessionExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://public.api.bsky.app/xrpc";
// Configure Bearer token for authorization: Bearer
config.AccessToken = "YOUR_BEARER_TOKEN";
var apiInstance = new ComAtprotoServerApi(config);
try
{
ComAtprotoServerGetSession200Response result = apiInstance.ComAtprotoServerGetSession();
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ComAtprotoServerApi.ComAtprotoServerGetSession: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
ApiResponse<ComAtprotoServerGetSession200Response> response = apiInstance.ComAtprotoServerGetSessionWithHttpInfo();
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ComAtprotoServerApi.ComAtprotoServerGetSessionWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
This endpoint does not need any parameter.
ComAtprotoServerGetSession200Response
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
400 | Bad Request | - |
401 | Unauthorized | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ComAtprotoServerListAppPasswords200Response ComAtprotoServerListAppPasswords ()
List all App Passwords.
using System.Collections.Generic;
using System.Diagnostics;
using BSky.Api;
using BSky.Client;
using BSky.Model;
namespace Example
{
public class ComAtprotoServerListAppPasswordsExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://public.api.bsky.app/xrpc";
// Configure Bearer token for authorization: Bearer
config.AccessToken = "YOUR_BEARER_TOKEN";
var apiInstance = new ComAtprotoServerApi(config);
try
{
ComAtprotoServerListAppPasswords200Response result = apiInstance.ComAtprotoServerListAppPasswords();
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ComAtprotoServerApi.ComAtprotoServerListAppPasswords: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
ApiResponse<ComAtprotoServerListAppPasswords200Response> response = apiInstance.ComAtprotoServerListAppPasswordsWithHttpInfo();
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ComAtprotoServerApi.ComAtprotoServerListAppPasswordsWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
This endpoint does not need any parameter.
ComAtprotoServerListAppPasswords200Response
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
400 | Bad Request | - |
401 | Unauthorized | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ComAtprotoServerRefreshSession200Response ComAtprotoServerRefreshSession ()
Refresh an authentication session. Requires auth using the 'refreshJwt' (not the 'accessJwt').
using System.Collections.Generic;
using System.Diagnostics;
using BSky.Api;
using BSky.Client;
using BSky.Model;
namespace Example
{
public class ComAtprotoServerRefreshSessionExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://public.api.bsky.app/xrpc";
// Configure Bearer token for authorization: Bearer
config.AccessToken = "YOUR_BEARER_TOKEN";
var apiInstance = new ComAtprotoServerApi(config);
try
{
ComAtprotoServerRefreshSession200Response result = apiInstance.ComAtprotoServerRefreshSession();
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ComAtprotoServerApi.ComAtprotoServerRefreshSession: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
ApiResponse<ComAtprotoServerRefreshSession200Response> response = apiInstance.ComAtprotoServerRefreshSessionWithHttpInfo();
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ComAtprotoServerApi.ComAtprotoServerRefreshSessionWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
This endpoint does not need any parameter.
ComAtprotoServerRefreshSession200Response
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
400 | Bad Request | - |
401 | Unauthorized | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void ComAtprotoServerRequestAccountDelete ()
Initiate a user account deletion via email.
using System.Collections.Generic;
using System.Diagnostics;
using BSky.Api;
using BSky.Client;
using BSky.Model;
namespace Example
{
public class ComAtprotoServerRequestAccountDeleteExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://public.api.bsky.app/xrpc";
// Configure Bearer token for authorization: Bearer
config.AccessToken = "YOUR_BEARER_TOKEN";
var apiInstance = new ComAtprotoServerApi(config);
try
{
apiInstance.ComAtprotoServerRequestAccountDelete();
}
catch (ApiException e)
{
Debug.Print("Exception when calling ComAtprotoServerApi.ComAtprotoServerRequestAccountDelete: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
apiInstance.ComAtprotoServerRequestAccountDeleteWithHttpInfo();
}
catch (ApiException e)
{
Debug.Print("Exception when calling ComAtprotoServerApi.ComAtprotoServerRequestAccountDeleteWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
This endpoint does not need any parameter.
void (empty response body)
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
400 | Bad Request | - |
401 | Unauthorized | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void ComAtprotoServerRequestEmailConfirmation ()
Request an email with a code to confirm ownership of email.
using System.Collections.Generic;
using System.Diagnostics;
using BSky.Api;
using BSky.Client;
using BSky.Model;
namespace Example
{
public class ComAtprotoServerRequestEmailConfirmationExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://public.api.bsky.app/xrpc";
// Configure Bearer token for authorization: Bearer
config.AccessToken = "YOUR_BEARER_TOKEN";
var apiInstance = new ComAtprotoServerApi(config);
try
{
apiInstance.ComAtprotoServerRequestEmailConfirmation();
}
catch (ApiException e)
{
Debug.Print("Exception when calling ComAtprotoServerApi.ComAtprotoServerRequestEmailConfirmation: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
apiInstance.ComAtprotoServerRequestEmailConfirmationWithHttpInfo();
}
catch (ApiException e)
{
Debug.Print("Exception when calling ComAtprotoServerApi.ComAtprotoServerRequestEmailConfirmationWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
This endpoint does not need any parameter.
void (empty response body)
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
400 | Bad Request | - |
401 | Unauthorized | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ComAtprotoServerRequestEmailUpdate200Response ComAtprotoServerRequestEmailUpdate ()
Request a token in order to update email.
using System.Collections.Generic;
using System.Diagnostics;
using BSky.Api;
using BSky.Client;
using BSky.Model;
namespace Example
{
public class ComAtprotoServerRequestEmailUpdateExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://public.api.bsky.app/xrpc";
// Configure Bearer token for authorization: Bearer
config.AccessToken = "YOUR_BEARER_TOKEN";
var apiInstance = new ComAtprotoServerApi(config);
try
{
ComAtprotoServerRequestEmailUpdate200Response result = apiInstance.ComAtprotoServerRequestEmailUpdate();
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ComAtprotoServerApi.ComAtprotoServerRequestEmailUpdate: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
ApiResponse<ComAtprotoServerRequestEmailUpdate200Response> response = apiInstance.ComAtprotoServerRequestEmailUpdateWithHttpInfo();
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ComAtprotoServerApi.ComAtprotoServerRequestEmailUpdateWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
This endpoint does not need any parameter.
ComAtprotoServerRequestEmailUpdate200Response
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
400 | Bad Request | - |
401 | Unauthorized | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void ComAtprotoServerRequestPasswordReset (ComAtprotoServerRequestPasswordResetRequest comAtprotoServerRequestPasswordResetRequest)
Initiate a user account password reset via email.
using System.Collections.Generic;
using System.Diagnostics;
using BSky.Api;
using BSky.Client;
using BSky.Model;
namespace Example
{
public class ComAtprotoServerRequestPasswordResetExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://public.api.bsky.app/xrpc";
var apiInstance = new ComAtprotoServerApi(config);
var comAtprotoServerRequestPasswordResetRequest = new ComAtprotoServerRequestPasswordResetRequest(); // ComAtprotoServerRequestPasswordResetRequest |
try
{
apiInstance.ComAtprotoServerRequestPasswordReset(comAtprotoServerRequestPasswordResetRequest);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ComAtprotoServerApi.ComAtprotoServerRequestPasswordReset: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
apiInstance.ComAtprotoServerRequestPasswordResetWithHttpInfo(comAtprotoServerRequestPasswordResetRequest);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ComAtprotoServerApi.ComAtprotoServerRequestPasswordResetWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
comAtprotoServerRequestPasswordResetRequest | ComAtprotoServerRequestPasswordResetRequest |
void (empty response body)
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
400 | Bad Request | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ComAtprotoServerReserveSigningKey200Response ComAtprotoServerReserveSigningKey (ComAtprotoServerReserveSigningKeyRequest comAtprotoServerReserveSigningKeyRequest)
Reserve a repo signing key, for use with account creation. Necessary so that a DID PLC update operation can be constructed during an account migraiton. Public and does not require auth; implemented by PDS. NOTE: this endpoint may change when full account migration is implemented.
using System.Collections.Generic;
using System.Diagnostics;
using BSky.Api;
using BSky.Client;
using BSky.Model;
namespace Example
{
public class ComAtprotoServerReserveSigningKeyExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://public.api.bsky.app/xrpc";
// Configure Bearer token for authorization: Bearer
config.AccessToken = "YOUR_BEARER_TOKEN";
var apiInstance = new ComAtprotoServerApi(config);
var comAtprotoServerReserveSigningKeyRequest = new ComAtprotoServerReserveSigningKeyRequest(); // ComAtprotoServerReserveSigningKeyRequest |
try
{
ComAtprotoServerReserveSigningKey200Response result = apiInstance.ComAtprotoServerReserveSigningKey(comAtprotoServerReserveSigningKeyRequest);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ComAtprotoServerApi.ComAtprotoServerReserveSigningKey: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
ApiResponse<ComAtprotoServerReserveSigningKey200Response> response = apiInstance.ComAtprotoServerReserveSigningKeyWithHttpInfo(comAtprotoServerReserveSigningKeyRequest);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ComAtprotoServerApi.ComAtprotoServerReserveSigningKeyWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
comAtprotoServerReserveSigningKeyRequest | ComAtprotoServerReserveSigningKeyRequest |
ComAtprotoServerReserveSigningKey200Response
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
400 | Bad Request | - |
401 | Unauthorized | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void ComAtprotoServerResetPassword (ComAtprotoServerResetPasswordRequest comAtprotoServerResetPasswordRequest)
Reset a user account password using a token.
using System.Collections.Generic;
using System.Diagnostics;
using BSky.Api;
using BSky.Client;
using BSky.Model;
namespace Example
{
public class ComAtprotoServerResetPasswordExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://public.api.bsky.app/xrpc";
var apiInstance = new ComAtprotoServerApi(config);
var comAtprotoServerResetPasswordRequest = new ComAtprotoServerResetPasswordRequest(); // ComAtprotoServerResetPasswordRequest |
try
{
apiInstance.ComAtprotoServerResetPassword(comAtprotoServerResetPasswordRequest);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ComAtprotoServerApi.ComAtprotoServerResetPassword: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
apiInstance.ComAtprotoServerResetPasswordWithHttpInfo(comAtprotoServerResetPasswordRequest);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ComAtprotoServerApi.ComAtprotoServerResetPasswordWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
comAtprotoServerResetPasswordRequest | ComAtprotoServerResetPasswordRequest |
void (empty response body)
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
400 | Bad Request | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void ComAtprotoServerRevokeAppPassword (ComAtprotoServerRevokeAppPasswordRequest comAtprotoServerRevokeAppPasswordRequest)
Revoke an App Password by name.
using System.Collections.Generic;
using System.Diagnostics;
using BSky.Api;
using BSky.Client;
using BSky.Model;
namespace Example
{
public class ComAtprotoServerRevokeAppPasswordExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://public.api.bsky.app/xrpc";
// Configure Bearer token for authorization: Bearer
config.AccessToken = "YOUR_BEARER_TOKEN";
var apiInstance = new ComAtprotoServerApi(config);
var comAtprotoServerRevokeAppPasswordRequest = new ComAtprotoServerRevokeAppPasswordRequest(); // ComAtprotoServerRevokeAppPasswordRequest |
try
{
apiInstance.ComAtprotoServerRevokeAppPassword(comAtprotoServerRevokeAppPasswordRequest);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ComAtprotoServerApi.ComAtprotoServerRevokeAppPassword: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
apiInstance.ComAtprotoServerRevokeAppPasswordWithHttpInfo(comAtprotoServerRevokeAppPasswordRequest);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ComAtprotoServerApi.ComAtprotoServerRevokeAppPasswordWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
comAtprotoServerRevokeAppPasswordRequest | ComAtprotoServerRevokeAppPasswordRequest |
void (empty response body)
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
400 | Bad Request | - |
401 | Unauthorized | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void ComAtprotoServerUpdateEmail (ComAtprotoServerUpdateEmailRequest comAtprotoServerUpdateEmailRequest)
Update an account's email.
using System.Collections.Generic;
using System.Diagnostics;
using BSky.Api;
using BSky.Client;
using BSky.Model;
namespace Example
{
public class ComAtprotoServerUpdateEmailExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://public.api.bsky.app/xrpc";
// Configure Bearer token for authorization: Bearer
config.AccessToken = "YOUR_BEARER_TOKEN";
var apiInstance = new ComAtprotoServerApi(config);
var comAtprotoServerUpdateEmailRequest = new ComAtprotoServerUpdateEmailRequest(); // ComAtprotoServerUpdateEmailRequest |
try
{
apiInstance.ComAtprotoServerUpdateEmail(comAtprotoServerUpdateEmailRequest);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ComAtprotoServerApi.ComAtprotoServerUpdateEmail: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
apiInstance.ComAtprotoServerUpdateEmailWithHttpInfo(comAtprotoServerUpdateEmailRequest);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ComAtprotoServerApi.ComAtprotoServerUpdateEmailWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
comAtprotoServerUpdateEmailRequest | ComAtprotoServerUpdateEmailRequest |
void (empty response body)
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
400 | Bad Request | - |
401 | Unauthorized | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]