DefaultApi

May 27, 2025 ยท View on GitHub

All URIs are relative to http://localhost/api/v1

MethodHTTP requestDescription
anonymousAuthPOST /anonymous-auth
changeAccountPOST /change-account
confirmEmailPOST /confirm-email
createAccountPOST /account
getArtifactsGET /artifacts
getSessionArtifactsGET /session-artifacts
loginPOST /login
logoutPOST /logout
postSessionArtifactsPOST /session-artifacts
registerUserInteractionPOST /register-user-interaction
requestEmailConfirmationTokenPOST /request-email-confirmation-token

anonymousAuth

AnonymousUserAuthResponseData anonymousAuth(AnonymousUserAuthRequestData)

Authenticate as an anonymous user, either using an existing user identifier or creating a new one.

Parameters

NameTypeDescriptionNotes
AnonymousUserAuthRequestDataAnonymousUserAuthRequestData[optional]

Return type

AnonymousUserAuthResponseData

Authorization

No authorization required

HTTP request headers

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

changeAccount

GenericOkResponseData changeAccount(ChangeAccountRequestData)

Change the blockchain (Joystream) account associated with the Gateway account. Delete the old account's encryption artifacts and optionally set new ones.

Parameters

NameTypeDescriptionNotes
ChangeAccountRequestDataChangeAccountRequestData[optional]

Return type

GenericOkResponseData

Authorization

cookieAuth

HTTP request headers

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

confirmEmail

GenericOkResponseData confirmEmail(ConfirmEmailRequestData)

Confirm account's e-mail address provided during registration.

Parameters

NameTypeDescriptionNotes
ConfirmEmailRequestDataConfirmEmailRequestData[optional]

Return type

GenericOkResponseData

Authorization

No authorization required

HTTP request headers

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

createAccount

GenericOkResponseData createAccount(CreateAccountRequestData)

Create a new Gateway account. Requires anonymousAuth to be performed first.

Parameters

NameTypeDescriptionNotes
CreateAccountRequestDataCreateAccountRequestData[optional]

Return type

GenericOkResponseData

Authorization

cookieAuth

HTTP request headers

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

getArtifacts

EncryptionArtifacts getArtifacts(id, email)

Get wallet seed encryption artifacts.

Parameters

NameTypeDescriptionNotes
idStringThe lookup key derived from user's credentials.[default to null]
emailStringThe user's email address.[default to null]

Return type

EncryptionArtifacts

Authorization

No authorization required

HTTP request headers

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

getSessionArtifacts

EncryptionArtifacts getSessionArtifacts()

Get wallet seed encryption artifacts for the current session.

Parameters

This endpoint does not need any parameter.

Return type

EncryptionArtifacts

Authorization

cookieAuth

HTTP request headers

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

login

LoginResponseData login(LoginRequestData)

Login to user's account by providing a message signed by the associated blockchain account.

Parameters

NameTypeDescriptionNotes
LoginRequestDataLoginRequestData[optional]

Return type

LoginResponseData

Authorization

No authorization required

HTTP request headers

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

logout

GenericOkResponseData logout()

Terminate the current session.

Parameters

This endpoint does not need any parameter.

Return type

GenericOkResponseData

Authorization

cookieAuth, bearerAuth

HTTP request headers

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

postSessionArtifacts

GenericOkResponseData postSessionArtifacts(SessionEncryptionArtifacts)

Save wallet seed encryption artifacts for the current session on the server.

Parameters

NameTypeDescriptionNotes
SessionEncryptionArtifactsSessionEncryptionArtifacts[optional]

Return type

GenericOkResponseData

Authorization

cookieAuth

HTTP request headers

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

registerUserInteraction

GenericOkResponseData registerUserInteraction(RegisterUserInteractionRequestData)

Register a user interaction with Atlas part.

Parameters

NameTypeDescriptionNotes
RegisterUserInteractionRequestDataRegisterUserInteractionRequestData[optional]

Return type

GenericOkResponseData

Authorization

cookieAuth

HTTP request headers

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

requestEmailConfirmationToken

GenericOkResponseData requestEmailConfirmationToken(RequestTokenRequestData)

Request a token to be sent to account's e-mail address, which will allow confirming the ownership of the e-mail by the user.

Parameters

NameTypeDescriptionNotes
RequestTokenRequestDataRequestTokenRequestData[optional]

Return type

GenericOkResponseData

Authorization

No authorization required

HTTP request headers

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