Sign In

To use JWT authentication, you'll need to obtain a JWT token by sending a POST request to our authentication endpoint located at https://api.instantuploader.com/signinarrow-up-right.

To authenticate, you'll need to provide your email address and password in a JSON payload in the request body of the POST request, like this:

POST /signin HTTP/1.1
Host: api.instantuploader.com
Content-Type: application/json

{
  "email": "[email protected]",
  "password": "your_password"
}

If your authentication is successful, the server will respond with a JSON containing an "idToken" field, which is a JWT token that can be used for authentication.

The JSON response will typically look something like this:

{
	"kind": "identitytoolkit#VerifyPasswordResponse",
	"localId": "3vvP9Z6V****",
	"email": "[email protected]",
	"displayName": "",
	"idToken": "eyJhbGciOiJI...<rest_of_token>",
	"registered": true,
	"refreshToken": "APJWN8fW...<rest_of_token>",
	"expiresIn": "3600"
}

The "idToken" field can be used as a Bearer token in the "Authorization" header of subsequent requests to the InstantUploader API.

The "expiresIn" field in the response indicates the expiration time of the idToken. The token is valid for 3,600 seconds (1 hour) from the time it was issued. After this time, the token will no longer be valid, and you'll need to obtain a new token by sending a new POST request to the /signin endpoint or use the refreshToken.

Last updated