Skip to content

Integrations

Bitly

Set up Bitly OAuth for link shortening and click analytics

Connect the application’s users to Bitly for link shortening, click analytics, and link management.

PropertyValue
Provider IDbitly
CategoryBusiness
PKCESupported
Token refreshNot available
Redirect URIShown in Developer Portal

Go to Bitly Developer Settings

Log in to Bitly and open Settings → Developer settings → API.

Register a new application

Under Registered OAuth applications, click Register new app. Bitly emails you a registration link — open it to complete the registration.

Configure the application

Fill in the application name, link, and description.

Add the redirect URI

Add the Redirect URI from the Developer Portal to the Redirect URIs field and register the app.

Get credentials

Copy the Client ID and Client Secret shown for the registered application.

Open the Developer Portal

Go to portal.alterauth.com and navigate to the application.

Add Bitly provider

Go to OAuth Providers > Add Provider > Bitly.

Enter credentials

  • Client ID: Paste the Bitly Client ID
  • Client Secret: Paste the Bitly Client Secret

Save

Click Save. The provider is now active.

  • Bitly does not use scopes. OAuth tokens have full access to the user’s account.
  • Bitly tokens do not expire and cannot be refreshed.
  • See the Bitly OAuth documentation for more details.

Alter policy rules can target these attested operations and families for operation-level and parameter-aware controls.

Operation IDFamiliesMethodProvider pathNotes
campaigns/createsendPOST/v4/campaigns—
custom-bitlinks/createadmin, writePOST/v4/custom_bitlinks—
user/updateadmin, writePATCH/v4/user—
webhooks/createadmin, send, writePOST/v4/webhooksallowed; its secret is never stored in a payload capture; delivery address in policy parameter oauth_url or url
bitlinks/createwritePOST/v4/bitlinks—
bitlinks/updatewritePATCH/v4/bitlinks/{bitlink}—
expandwritePOST/v4/expand—
qr-codes/createwritePOST/v4/qr-codes—
shortenwritePOST/v4/shorten—
bitlinks/clicksreadGET/v4/bitlinks/{bitlink}/clicks—
bitlinks/clicks-summaryreadGET/v4/bitlinks/{bitlink}/clicks/summary—
bitlinks/getreadGET/v4/bitlinks/{bitlink}—
bsds/listreadGET/v4/bsds—
campaigns/listreadGET/v4/campaigns—
groups/bitlinksreadGET/v4/groups/{group_guid}/bitlinks—
groups/getreadGET/v4/groups/{group_guid}—
groups/listreadGET/v4/groups—
organizations/getreadGET/v4/organizations/{organization_guid}—
organizations/listreadGET/v4/organizations—
qr-codes/getreadGET/v4/qr-codes/{qrcode_id}—
user/getreadGET/v4/user—
webhooks/getreadGET/v4/webhooks/{webhook_guid}—
createOrganizationBulkUploadsend, writePOST/v4/organizations/{organization_guid}/bulk_uploadsallowed; its secret is never stored in a payload capture
getOrganizationBulkUploadreadGET/v4/organizations/{organization_guid}/bulk_uploads/{bulk_upload_id}allowed; its secret is never stored in a payload capture
getOrganizationBulkUploadsreadGET/v4/organizations/{organization_guid}/bulk_uploadsallowed; its secret is never stored in a payload capture

These operations are in the provider’s published API specification, but Alter has not reviewed them yet, so their families are unknown. Every operation, family or content rule refuses one with operation_unreviewed unless a rule admits it by name, so a broad rule cannot be dodged by calling one. A rule names one by the provider-qualified name in the first column, never by the bare operation ID, which other providers may share. To use one under a rule, list that name in an operation allowlist to allow it, or in a require_approval rule whose every condition names it to hold it for approval; saving such a rule needs an organization admin. A family never admits one. Because an unreviewed operation may create credentials or change account security, admitting one also needs a scoped credential_minting allowance naming the provider and that name. See Unreviewed operations.

Name in a ruleMethodProvider path
bitly:GetGroupMetricsByReferrerGET/v4/groups/{group_guid}/referrers
bitly:GetGroupMetricsByReferringNetworksGET/v4/groups/{group_guid}/referring_networks
bitly:addChannelBitlinksPOST/v4/channels/{channel_guid}/bitlinks
bitly:applyTemplatePOST/v4/sites/{site_id}/template
bitly:cloneSitePOST/v4/sites/{site_id}/clone
bitly:createChannelPOST/v4/channels
bitly:createContainerPOST/v4/sites/{site_id}/containers
bitly:createSitePOST/v4/sites
bitly:createSiteBlockPOST/v4/sites/{site_id}/blocks
bitly:createSiteImagePOST/v4/sites/{site_id}/images
bitly:createStaticQRCodePublicPOST/v4/qr-codes/static
bitly:deleteBitlinkDELETE/v4/bitlinks/{bitlink}
bitly:deleteQRCodeDELETE/v4/qr-codes/{qrcode_id}
bitly:deleteSiteDELETE/v4/sites/{site_id}
bitly:deleteSiteBlockDELETE/v4/sites/{site_id}/blocks/{block_id}
bitly:deleteSiteRedirectDELETE/v4/sites/{site_id}/redirects/{domain}/{keyword}
bitly:deleteWebhookDELETE/v4/webhooks/{webhook_guid}
bitly:discardSiteDraftDELETE/v4/sites/{site_id}/draft
bitly:editCustomDomainPATCH/v4/custom_domains/{custom_domain}
bitly:fetchDomainAgreementsGET/v4/domains/{domain}/agreements
bitly:getAgenticTrafficForBitlinkGET/v4/bitlinks/{bitlink}/agentic_traffic
bitly:getAggregateSiteViewsByCityGET/v4/aggregate/sites/views/cities
bitly:getAggregateSiteViewsByCountryGET/v4/aggregate/sites/views/countries
bitly:getAggregateSiteViewsByDeviceGET/v4/aggregate/sites/views/devices
bitly:getAggregateSiteViewsByReferrerGET/v4/aggregate/sites/views/referrers
bitly:getAggregateSiteViewsOverTimeGET/v4/aggregate/sites/views/over_time
bitly:getAggregateSitesOverviewGET/v4/aggregate/sites/overview
bitly:getCampaignGET/v4/campaigns/{campaign_guid}
bitly:getChannelGET/v4/channels/{channel_guid}
bitly:getChannelsGET/v4/channels
bitly:getClicksForCustomBitlinkGET/v4/custom_bitlinks/{custom_bitlink}/clicks
bitly:getCustomBitlinkGET/v4/custom_bitlinks/{custom_bitlink}
bitly:getCustomBitlinkMetricsByDestinationGET/v4/custom_bitlinks/{custom_bitlink}/clicks_by_destination
bitly:getCustomDomainGET/v4/custom_domains/{custom_domain}
bitly:getCustomDomainDNSGET/v4/custom_domains/{custom_domain}/dns
bitly:getCustomDomainsGET/v4/custom_domains
bitly:getEngagementsGET/v4/bitlinks/{bitlink}/engagements
bitly:getEngagementsSummaryGET/v4/bitlinks/{bitlink}/engagements/summary
bitly:getGroupAgenticTrafficRollupGET/v4/groups/{group_guid}/agentic_traffic/rollup
bitly:getGroupClicksGET/v4/groups/{group_guid}/clicks
bitly:getGroupCodeScansByCityGET/v4/groups/{group_guid}/codes/scans/cities
bitly:getGroupCodeScansByCountryGET/v4/groups/{group_guid}/codes/scans/countries
bitly:getGroupCodeScansOverTimeGET/v4/groups/{group_guid}/codes/scans/over_time
bitly:getGroupFeatureUsageGET/v4/groups/{group_guid}/feature_usage
bitly:getGroupHistoricalUsageGET/v4/groups/{group_guid}/historical_usage
bitly:getGroupLinkClicksByCityGET/v4/groups/{group_guid}/links/clicks/cities
bitly:getGroupLinkClicksByCountryGET/v4/groups/{group_guid}/links/clicks/countries
bitly:getGroupLinkClicksByDeviceGET/v4/groups/{group_guid}/links/clicks/devices
bitly:getGroupLinkClicksByReferrerGET/v4/groups/{group_guid}/links/clicks/referrers
bitly:getGroupLinkClicksOverTimeGET/v4/groups/{group_guid}/links/clicks/over_time
bitly:getGroupMetricsByCitiesGET/v4/groups/{group_guid}/cities
bitly:getGroupMetricsByCountriesGET/v4/groups/{group_guid}/countries
bitly:getGroupMetricsByDevicesGET/v4/groups/{group_guid}/devices
bitly:getGroupMetricsOverTimeGET/v4/groups/{group_guid}/engagements/over_time
bitly:getGroupPreferencesGET/v4/groups/{group_guid}/preferences
bitly:getGroupShortenCountsGET/v4/groups/{group_guid}/shorten_counts
bitly:getGroupTagsGET/v4/groups/{group_guid}/tags
bitly:getGroupTopCodeScansGET/v4/groups/{group_guid}/codes/scans/top
bitly:getGroupTopLinkClicksGET/v4/groups/{group_guid}/links/clicks/top
bitly:getGroupTopMetricsGET/v4/groups/{group_guid}/engagements/top
bitly:getLaunchpadDigitalBusinessCardDownloadsOverTimeGET/v4/aggregate/sites/digital_business_card_downloads/over_time
bitly:getLinkPerformanceForSiteGET/v4/sites/{site_id}/link_performance
bitly:getMetricsForBitlinkByCitiesGET/v4/bitlinks/{bitlink}/cities
bitly:getMetricsForBitlinkByCountriesGET/v4/bitlinks/{bitlink}/countries
bitly:getMetricsForBitlinkByDevicesGET/v4/bitlinks/{bitlink}/devices
bitly:getMetricsForBitlinkByReferrerNameGET/v4/bitlinks/{bitlink}/referrer_name
bitly:getMetricsForBitlinkByReferrersGET/v4/bitlinks/{bitlink}/referrers
bitly:getMetricsForBitlinkByReferrersByDomainsGET/v4/bitlinks/{bitlink}/referrers_by_domains
bitly:getMetricsForBitlinkByReferringDomainsGET/v4/bitlinks/{bitlink}/referring_domains
bitly:getMetricsForSiteByCitiesGET/v4/sites/{site_id}/cities
bitly:getMetricsForSiteByDevicesGET/v4/sites/{site_id}/devices
bitly:getMetricsForSiteByReferrersGET/v4/sites/{site_id}/referrers
bitly:getMetricsForSitesByCountriesGET/v4/sites/{site_id}/countries
bitly:getOAuthAppGET/v4/apps/{client_id}
bitly:getOrganizationShortenCountsGET/v4/organizations/{organization_guid}/shorten_counts
bitly:getOrganizationShortenCountsByGroupGET/v4/organizations/{organization_guid}/shorten_counts_by_group
bitly:getPlanLimitsGET/v4/organizations/{organization_guid}/plan_limits
bitly:getPlatformLimitsGET/v4/user/platform_limits
bitly:getQRCodeImagePublicGET/v4/qr-codes/{qrcode_id}/image
bitly:getScanMetricsForQRCodeGET/v4/qr-codes/{qrcode_id}/scans
bitly:getScanMetricsForQRCodeByBrowserGET/v4/qr-codes/{qrcode_id}/scans/browsers
bitly:getScanMetricsForQRCodeByCitiesGET/v4/qr-codes/{qrcode_id}/scans/cities
bitly:getScanMetricsForQRCodeByCountriesGET/v4/qr-codes/{qrcode_id}/scans/countries
bitly:getScanMetricsForQRCodeByDevicesOSGET/v4/qr-codes/{qrcode_id}/scans/device_os
bitly:getScanMetricsSummaryForQRCodeGET/v4/qr-codes/{qrcode_id}/scans/summary
bitly:getSiteGET/v4/sites/{site_id}
bitly:getSiteClicksByCitiesGET/v4/aggregate/sites/clicks/cities
bitly:getSiteClicksByCountriesGET/v4/aggregate/sites/clicks/countries
bitly:getSiteClicksByDevicesGET/v4/aggregate/sites/clicks/devices
bitly:getSiteClicksOverTimeGET/v4/aggregate/sites/clicks/over_time
bitly:getSiteFilteredTopPageButtonsGET/v4/aggregate/sites/clicks/top
bitly:getSitesForGroupGET/v4/groups/{group_guid}/sites
bitly:getSortedBitlinksGET/v4/groups/{group_guid}/bitlinks/{sort}
bitly:getTemplatesGET/v4/site_templates
bitly:getTopLinksAndQRCodesByEngagementsGET/v4/groups/{group_guid}/engagements/sorted/top
bitly:getViewsForSiteGET/v4/sites/{site_id}/views
bitly:getViewsSummaryForSiteGET/v4/sites/{site_id}/views/summary
bitly:getWebhooksGET/v4/organizations/{organization_guid}/webhooks
bitly:listQRMinimalGET/v4/groups/{group_guid}/qr-codes
bitly:postCreateGroupExportPOST/v4/groups/{group_guid}/exports
bitly:prevalidateYouTubeVideoButtonPOST/v4/sites/{launchpad_id}/buttons/youtubeVideo/prevalidate
bitly:publishSitePOST/v4/sites/{site_id}/publish
bitly:purchaseBsdPOST/v4/domains
bitly:redirectQRCodeDestinationPATCH/v4/qr-codes/{qrcode_id}/redirect
bitly:searchAvailableDomainsGET/v4/domains
bitly:updateBitlinksByGroupPATCH/v4/groups/{group_guid}/bitlinks
bitly:updateCampaignPATCH/v4/campaigns/{campaign_guid}
bitly:updateChannelPATCH/v4/channels/{channel_guid}
bitly:updateCustomBitlinkPATCH/v4/custom_bitlinks/{custom_bitlink}
bitly:updateGroupPATCH/v4/groups/{group_guid}
bitly:updateGroupPreferencesPATCH/v4/groups/{group_guid}/preferences
bitly:updateQRCodePublicPATCH/v4/qr-codes/{qrcode_id}
bitly:updateQRCodesByGroupPATCH/v4/groups/{group_guid}/qr-codes
bitly:updateSitePATCH/v4/sites/{site_id}
bitly:updateSiteAppearancePUT/v4/sites/{site_id}/appearance
bitly:updateSiteBlockPATCH/v4/sites/{site_id}/blocks/{block_id}
bitly:updateWebhookPATCH/v4/webhooks/{webhook_guid}
bitly:upgradeQRCodeToBitlinkPUT/v4/qr-codes/{qrcode_id}/to-bitlink
bitly:validateCustomDomainPOST/v4/custom_domains
bitly:verifyWebhookPOST/v4/webhooks/{webhook_guid}/verify

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand how our website, product, and documentation are used.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

Advertising

Shares visits and sign-ups with Meta, Reddit, and X so we can measure which of our ads work.

You can change these choices at any time from Cookie settings.