This endpoint requires authentication. Include your Bearer token in the Authorization header.
Code Examples
Authorizations
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
Body
application/json
curl --request POST \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/integrations/workspace \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "workspaceId": "workspace-123",
  "type": "vertofx",
  "settings": {
    "apiKey": "your-api-key-here",
    "region": "US"
  }
}'{
  "success": true,
  "data": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "name": "vertofx",
    "enabled": true,
    "settings": {
      "apiKey": "your-api-key-here",
      "region": "US"
    },
    "metadata": {
      "customField": "custom-value"
    },
    "memo": "Integration for VertoFX payments",
    "TenantId": "123e4567-e89b-12d3-a456-426614174000",
    "IntegrationId": "123e4567-e89b-12d3-a456-426614174000",
    "createdAt": "2023-01-01T00:00:00Z",
    "updatedAt": "2023-01-01T00:00:00Z"
  }
}Creates a new workspace integration.
curl --request POST \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/integrations/workspace \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "workspaceId": "workspace-123",
  "type": "vertofx",
  "settings": {
    "apiKey": "your-api-key-here",
    "region": "US"
  }
}'{
  "success": true,
  "data": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "name": "vertofx",
    "enabled": true,
    "settings": {
      "apiKey": "your-api-key-here",
      "region": "US"
    },
    "metadata": {
      "customField": "custom-value"
    },
    "memo": "Integration for VertoFX payments",
    "TenantId": "123e4567-e89b-12d3-a456-426614174000",
    "IntegrationId": "123e4567-e89b-12d3-a456-426614174000",
    "createdAt": "2023-01-01T00:00:00Z",
    "updatedAt": "2023-01-01T00:00:00Z"
  }
}const response = await fetch('https://server26-dot-royalti-project.uc.r.appspot.com/integrations/workspace', {
  method: 'POST',
  headers: {
    'Authorization': `Bearer ${token}`,
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    "workspaceId": "workspace-123",
    "type": "vertofx",
    "settings": {
      "apiKey": "your-api-key-here",
      "region": "US"
    }
  })
});
const data = await response.json();
console.log(data);
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"