import 'package:vrchat_dart_generated/api.dart';All URIs are relative to https://api.vrchat.cloud/api/1
| Method | HTTP request | Description |
|---|---|---|
| getInviteMessage | GET /message/{userId}/{messageType}/{slot} | Get Invite Message |
| getInviteMessages | GET /message/{userId}/{messageType} | List Invite Messages |
| inviteMyselfTo | POST /invite/myself/to/{worldId}:{instanceId} | Invite Myself To Instance |
| inviteUser | POST /invite/{userId} | Invite User |
| inviteUserWithPhoto | POST /invite/{userId}/photo | Invite User with photo |
| requestInvite | POST /requestInvite/{userId} | Request Invite |
| requestInviteWithPhoto | POST /requestInvite/{userId}/photo | Request Invite with photo |
| resetInviteMessage | DELETE /message/{userId}/{messageType}/{slot} | Reset Invite Message |
| respondInvite | POST /invite/{notificationId}/response | Respond Invite |
| respondInviteWithPhoto | POST /invite/{notificationId}/response/photo | Respond Invite with photo |
| updateInviteMessage | PUT /message/{userId}/{messageType}/{slot} | Update Invite Message |
InviteMessage getInviteMessage(userId, messageType, slot)
Get Invite Message
Returns a single Invite Message. This returns the exact same information but less than getInviteMessages. Admin Credentials are required to view messages of other users! Message type refers to a different collection of messages, used during different types of responses. * message = Message during a normal invite * response = Message when replying to a message * request = Message when requesting an invite * requestResponse = Message when replying to a request for invite
import 'package:vrchat_dart_generated/api.dart';
// TODO Configure API key authorization: authCookie
//defaultApiClient.getAuthentication<ApiKeyAuth>('authCookie').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('authCookie').apiKeyPrefix = 'Bearer';
final api = VrchatDartGenerated().getInviteApi();
final String userId = userId_example; // String | Must be a valid user ID.
final InviteMessageType messageType = ; // InviteMessageType | The type of message to fetch, must be a valid InviteMessageType.
final int slot = 56; // int | The message slot to fetch of a given message type.
try {
final response = api.getInviteMessage(userId, messageType, slot);
print(response);
} on DioException catch (e) {
print('Exception when calling InviteApi->getInviteMessage: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| userId | String | Must be a valid user ID. | |
| messageType | InviteMessageType | The type of message to fetch, must be a valid InviteMessageType. | |
| slot | int | The message slot to fetch of a given message type. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List getInviteMessages(userId, messageType)
List Invite Messages
Returns a list of all the users Invite Messages. Admin Credentials are required to view messages of other users! Message type refers to a different collection of messages, used during different types of responses. * message = Message during a normal invite * response = Message when replying to a message * request = Message when requesting an invite * requestResponse = Message when replying to a request for invite
import 'package:vrchat_dart_generated/api.dart';
// TODO Configure API key authorization: authCookie
//defaultApiClient.getAuthentication<ApiKeyAuth>('authCookie').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('authCookie').apiKeyPrefix = 'Bearer';
final api = VrchatDartGenerated().getInviteApi();
final String userId = userId_example; // String | Must be a valid user ID.
final InviteMessageType messageType = ; // InviteMessageType | The type of message to fetch, must be a valid InviteMessageType.
try {
final response = api.getInviteMessages(userId, messageType);
print(response);
} on DioException catch (e) {
print('Exception when calling InviteApi->getInviteMessages: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| userId | String | Must be a valid user ID. | |
| messageType | InviteMessageType | The type of message to fetch, must be a valid InviteMessageType. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SentNotification inviteMyselfTo(worldId, instanceId)
Invite Myself To Instance
Sends self an invite to an instance
import 'package:vrchat_dart_generated/api.dart';
// TODO Configure API key authorization: authCookie
//defaultApiClient.getAuthentication<ApiKeyAuth>('authCookie').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('authCookie').apiKeyPrefix = 'Bearer';
final api = VrchatDartGenerated().getInviteApi();
final String worldId = worldId_example; // String | Must be a valid world ID.
final String instanceId = instanceId_example; // String | Must be a valid instance ID.
try {
final response = api.inviteMyselfTo(worldId, instanceId);
print(response);
} on DioException catch (e) {
print('Exception when calling InviteApi->inviteMyselfTo: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| worldId | String | Must be a valid world ID. | |
| instanceId | String | Must be a valid instance ID. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SentNotification inviteUser(userId, inviteRequest)
Invite User
Sends an invite to a user. Returns the Notification of type invite that was sent.
import 'package:vrchat_dart_generated/api.dart';
// TODO Configure API key authorization: authCookie
//defaultApiClient.getAuthentication<ApiKeyAuth>('authCookie').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('authCookie').apiKeyPrefix = 'Bearer';
final api = VrchatDartGenerated().getInviteApi();
final String userId = userId_example; // String | Must be a valid user ID.
final InviteRequest inviteRequest = ; // InviteRequest | Slot number of the Invite Message to use when inviting a user.
try {
final response = api.inviteUser(userId, inviteRequest);
print(response);
} on DioException catch (e) {
print('Exception when calling InviteApi->inviteUser: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| userId | String | Must be a valid user ID. | |
| inviteRequest | InviteRequest | Slot number of the Invite Message to use when inviting a user. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SentNotification inviteUserWithPhoto(userId, data, image)
Invite User with photo
Sends an photo invite to a user. Returns the Notification of type invite that was sent.
import 'package:vrchat_dart_generated/api.dart';
// TODO Configure API key authorization: authCookie
//defaultApiClient.getAuthentication<ApiKeyAuth>('authCookie').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('authCookie').apiKeyPrefix = 'Bearer';
final api = VrchatDartGenerated().getInviteApi();
final String userId = userId_example; // String | Must be a valid user ID.
final InviteRequest data = ; // InviteRequest |
final MultipartFile image = BINARY_DATA_HERE; // MultipartFile | The binary blob of the png file.
try {
final response = api.inviteUserWithPhoto(userId, data, image);
print(response);
} on DioException catch (e) {
print('Exception when calling InviteApi->inviteUserWithPhoto: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| userId | String | Must be a valid user ID. | |
| data | InviteRequest | ||
| image | MultipartFile | The binary blob of the png file. |
- Content-Type: multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Notification requestInvite(userId, requestInviteRequest)
Request Invite
Requests an invite from a user. Returns the Notification of type requestInvite that was sent.
import 'package:vrchat_dart_generated/api.dart';
// TODO Configure API key authorization: authCookie
//defaultApiClient.getAuthentication<ApiKeyAuth>('authCookie').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('authCookie').apiKeyPrefix = 'Bearer';
final api = VrchatDartGenerated().getInviteApi();
final String userId = userId_example; // String | Must be a valid user ID.
final RequestInviteRequest requestInviteRequest = ; // RequestInviteRequest | Slot number of the Request Message to use when request an invite.
try {
final response = api.requestInvite(userId, requestInviteRequest);
print(response);
} on DioException catch (e) {
print('Exception when calling InviteApi->requestInvite: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| userId | String | Must be a valid user ID. | |
| requestInviteRequest | RequestInviteRequest | Slot number of the Request Message to use when request an invite. | [optional] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Notification requestInviteWithPhoto(userId, data, image)
Request Invite with photo
Requests with photo an invite from a user. Returns the Notification of type requestInvite that was sent.
import 'package:vrchat_dart_generated/api.dart';
// TODO Configure API key authorization: authCookie
//defaultApiClient.getAuthentication<ApiKeyAuth>('authCookie').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('authCookie').apiKeyPrefix = 'Bearer';
final api = VrchatDartGenerated().getInviteApi();
final String userId = userId_example; // String | Must be a valid user ID.
final RequestInviteRequest data = ; // RequestInviteRequest |
final MultipartFile image = BINARY_DATA_HERE; // MultipartFile | The binary blob of the png file.
try {
final response = api.requestInviteWithPhoto(userId, data, image);
print(response);
} on DioException catch (e) {
print('Exception when calling InviteApi->requestInviteWithPhoto: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| userId | String | Must be a valid user ID. | |
| data | RequestInviteRequest | ||
| image | MultipartFile | The binary blob of the png file. |
- Content-Type: multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List resetInviteMessage(userId, messageType, slot)
Reset Invite Message
Resets a single Invite Message back to its original message, and then returns a list of all of them. Admin Credentials are required to update messages of other users! Resetting a message respects the rate-limit, so it is not possible to reset within the 60 minutes countdown. Resetting it does however not set the rate-limit to 60 like when editing it. It is possible to edit it right after resetting it. Trying to edit a message before the cooldown timer expires results in a 429 "Too Fast Error". Message type refers to a different collection of messages, used during different types of responses. * message = Message during a normal invite * response = Message when replying to a message * request = Message when requesting an invite * requestResponse = Message when replying to a request for invite The DELETE endpoint does not have/require any request body.
import 'package:vrchat_dart_generated/api.dart';
// TODO Configure API key authorization: authCookie
//defaultApiClient.getAuthentication<ApiKeyAuth>('authCookie').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('authCookie').apiKeyPrefix = 'Bearer';
final api = VrchatDartGenerated().getInviteApi();
final String userId = userId_example; // String | Must be a valid user ID.
final InviteMessageType messageType = ; // InviteMessageType | The type of message to fetch, must be a valid InviteMessageType.
final int slot = 56; // int | The message slot to fetch of a given message type.
try {
final response = api.resetInviteMessage(userId, messageType, slot);
print(response);
} on DioException catch (e) {
print('Exception when calling InviteApi->resetInviteMessage: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| userId | String | Must be a valid user ID. | |
| messageType | InviteMessageType | The type of message to fetch, must be a valid InviteMessageType. | |
| slot | int | The message slot to fetch of a given message type. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Notification respondInvite(notificationId, inviteResponse)
Respond Invite
Respond to an invite or invite request without accepting it. :notificationId is the ID of the requesting notification. In case the notification being replied to is an invite, the responseSlot refers to a response message from the the message collection. In case the notification is an invite request, it will refer to one from the requestResponse collection instead.
import 'package:vrchat_dart_generated/api.dart';
// TODO Configure API key authorization: authCookie
//defaultApiClient.getAuthentication<ApiKeyAuth>('authCookie').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('authCookie').apiKeyPrefix = 'Bearer';
final api = VrchatDartGenerated().getInviteApi();
final String notificationId = notificationId_example; // String | Must be a valid notification ID.
final InviteResponse inviteResponse = ; // InviteResponse | Slot number of the Response Message to use when responding to a user.
try {
final response = api.respondInvite(notificationId, inviteResponse);
print(response);
} on DioException catch (e) {
print('Exception when calling InviteApi->respondInvite: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| notificationId | String | Must be a valid notification ID. | |
| inviteResponse | InviteResponse | Slot number of the Response Message to use when responding to a user. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Notification respondInviteWithPhoto(notificationId, data, image)
Respond Invite with photo
Respond with photo to an invite or invite request without accepting it. :notificationId is the ID of the requesting notification. In case the notification being replied to is an invite, the responseSlot refers to a response message from the the message collection. In case the notification is an invite request, it will refer to one from the requestResponse collection instead.'
import 'package:vrchat_dart_generated/api.dart';
// TODO Configure API key authorization: authCookie
//defaultApiClient.getAuthentication<ApiKeyAuth>('authCookie').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('authCookie').apiKeyPrefix = 'Bearer';
final api = VrchatDartGenerated().getInviteApi();
final String notificationId = notificationId_example; // String | Must be a valid notification ID.
final InviteResponse data = ; // InviteResponse |
final MultipartFile image = BINARY_DATA_HERE; // MultipartFile | The binary blob of the png file.
try {
final response = api.respondInviteWithPhoto(notificationId, data, image);
print(response);
} on DioException catch (e) {
print('Exception when calling InviteApi->respondInviteWithPhoto: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| notificationId | String | Must be a valid notification ID. | |
| data | InviteResponse | ||
| image | MultipartFile | The binary blob of the png file. |
- Content-Type: multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List updateInviteMessage(userId, messageType, slot, updateInviteMessageRequest)
Update Invite Message
Updates a single Invite Message and then returns a list of all of them. Admin Credentials are required to update messages of other users! Updating a message automatically sets the cooldown timer to 60 minutes. Trying to edit a message before the cooldown timer expires results in a 429 "Too Fast Error". Message type refers to a different collection of messages, used during different types of responses. * message = Message during a normal invite * response = Message when replying to a message * request = Message when requesting an invite * requestResponse = Message when replying to a request for invite
import 'package:vrchat_dart_generated/api.dart';
// TODO Configure API key authorization: authCookie
//defaultApiClient.getAuthentication<ApiKeyAuth>('authCookie').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('authCookie').apiKeyPrefix = 'Bearer';
final api = VrchatDartGenerated().getInviteApi();
final String userId = userId_example; // String | Must be a valid user ID.
final InviteMessageType messageType = ; // InviteMessageType | The type of message to fetch, must be a valid InviteMessageType.
final int slot = 56; // int | The message slot to fetch of a given message type.
final UpdateInviteMessageRequest updateInviteMessageRequest = ; // UpdateInviteMessageRequest | Message of what to set the invite message to.
try {
final response = api.updateInviteMessage(userId, messageType, slot, updateInviteMessageRequest);
print(response);
} on DioException catch (e) {
print('Exception when calling InviteApi->updateInviteMessage: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| userId | String | Must be a valid user ID. | |
| messageType | InviteMessageType | The type of message to fetch, must be a valid InviteMessageType. | |
| slot | int | The message slot to fetch of a given message type. | |
| updateInviteMessageRequest | UpdateInviteMessageRequest | Message of what to set the invite message to. | [optional] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]