Skip to main content
GET
/
api
/
v1
/
ibans
/
oauth
/
redirect_url
Retrieves the redirect URL for the Monerium oAuth flow
const url = 'https://api.gnosispay.com/api/v1/ibans/oauth/redirect_url';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}, body: undefined};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
{
  "data": {
    "redirectUrl": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

callbackUrl
string

Optional URL to redirect the user to after the OAuth flow is completed. If not provided, a default redirect URL will be used.

Response

Successfully retrieved the redirect URL

data
object
I