---
title: "Start signing the current user in to HubSpot"
method: POST
path: "/api/integration/hubspot/user/authorize-url"
tags: ["User"]
---

# Start signing the current user in to HubSpot

`POST /api/integration/hubspot/user/authorize-url`

## Request

- Base URL: `https://api.sponsorunited.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.sponsorunited.com/api/integration/hubspot/user/authorize-url`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/sponsorunited/apis/sponsorunited-api/docs/api/integration/hubspot/user/authorize-url/post.ts> (a function with typed inputs; its response is checked against the schema)

Returns the HubSpot authorization URL the current user opens to sign in to their organization's connected HubSpot account, so the contacts they export get them as Contact Owner. It requests only the scopes the organization already granted, so users without HubSpot App Marketplace access can sign in. Requires integration-hubspot and a connected portal.

## Response `200`

The HubSpot authorization URL.

- HubspotAuthorizationUrlResource
  - `authorization_url` string

## Other responses

- `400`: The sign-in could not be started.
- `403`: Forbidden - missing integration-hubspot or no connected portal.

---

[API](https://skmtc.dev/sponsorunited/apis/sponsorunited-api.md) - [All operations](https://skmtc.dev/sponsorunited/apis/sponsorunited-api/llms.txt) - [OpenAPI document](https://skmtc.dev/sponsorunited/apis/sponsorunited-api/revisions/cbf1ca5bff8f?raw)
