⚙️API Schema
Explore the details of Vula Labs API. Our authentication API is organized around REST principles and has resource-oriented URLs, returns JSON-encoded responses, and uses standard HTTP response codes,
Authorization URL
GET
https://oauth.vulalabs.com
The endpoint where Vula Labs authentication flow begins. Users will connect their crypto wallet and we verify ownership of their NFT.
Get authorization token
POST
https://login.vulalabs.com/oauth/authorize
Authenticate a user given a token. This endpoint verifies that the user completed the OAuth flow by verifying that the token is valid and hasn't expired.
Path Parameters
Name | Type | Description |
---|---|---|
client_id* | string | The Client ID is obtained when you register your website with Vula Labs. |
public_key* | string | The users crypto wallet address. |
message* | string | The message to be signed by the user when we verify their crypto wallet. |
signature* | string | The users signature when they sign the message confirming that we can check their wallet. |
state* | string | |
redirect_uri* | https://example.com/oauth/callback | The URL Vula Labs redirects to after the user is authenticated. |
response_type* | code | |
grant_type* | authorization_code | |
scope* | primary |
Get access token
POST
https://login.vulalabs.com/oauth/token
The token to authenticate.
Fetch user profile
GET
https://login.vulalabs.com/secure
Fetch the authenticated users information.
Headers
Name | Type | Description |
---|---|---|
Bearer* | {$accessToken} | The access token obtained in the previous request. |
Last updated