POST
/
api
/
v1
/
safe
/
deploy
Deploy and setup the Safe account for the authenticated user
const url = 'https://api.gnosispay.com/api/v1/safe/deploy';
const options = {method: 'POST', 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);
}
{
"status": "accepted"
}

Authorizations

Authorization
string
header
required

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

Response

Accepted the deployment request. The partner should check the status of the deployment with the GET /api/v1/safe/deploy endpoint.

status
string

The status of the deployment.

Example:

"accepted"