> For the complete documentation index, see [llms.txt](https://docs-vnext.kiflo.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs-vnext.kiflo.com/developers/api-reference/hub-spot/issues-a-short-lived-hubspot-scoped-kiflo-access-token.md).

# Issues a short-lived, HubSpot-scoped Kiflo access token.

Called by a HubSpot App Card through `hubspot.fetch`, which appends `portalId` and signs the request. The signature proves the request originates from HubSpot.

```json
{"openapi":"3.0.1","info":{"title":"Kiflo Public API v3","version":"v3"},"paths":{"/v3/hubspot/access-token":{"get":{"tags":["HubSpot"],"summary":"Issues a short-lived, HubSpot-scoped Kiflo access token.","description":"Called by a HubSpot App Card through `hubspot.fetch`, which appends `portalId`\r\nand signs the request. The signature proves the request originates from HubSpot.","parameters":[{"name":"portalId","in":"query","schema":{"type":"integer","format":"int64"}},{"name":"userEmail","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"A short-lived access token was issued.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubSpotGetAccessTokenResponseDto"}}}},"401":{"description":"The request could not be verified or the portal is not connected."}}}}},"components":{"schemas":{"HubSpotGetAccessTokenResponseDto":{"type":"object","properties":{"accessToken":{"type":"string","nullable":true},"expiresInSeconds":{"type":"integer","format":"int64"},"accountId":{"type":"integer","description":"Account id of the Kiflo workspace the token was issued for, which identifies the workspace in the Kiflo app's URLs.","format":"int32"},"permissions":{"type":"array","items":{"$ref":"#/components/schemas/Features"},"description":"The features relevant to the HubSpot app that the user this token was issued for actually holds.\r\nLets the app leave out an action the user would only be refused, and never grants anything: each endpoint still enforces its own policy.","nullable":true}},"additionalProperties":false},"Features":{"enum":["DealView","DealCreate","DealUpdate","DealDelete","DealUpdateStage","DealViewTotalAmount","DealRequestQuote","DealSetupChannelConflictsDetection","DealPartnerRoleView","DealPartnerRoleCreate","DealPartnerRoleUpdate","DealPartnerRoleAssign","DealPartnerRoleDelete","LeadView","LeadCreate","LeadUpdate","LeadDelete","LeadShare","LeadAccept","LeadRefuse","LeadConvert","LeadAbandon","LeadSetupChannelConflictsDetection","DealValidate","BusinessPlanCreate","BusinessPlanUpdate","BusinessPlanView","BusinessPlanDelete","BusinessPlanActivityCreate","BusinessPlanActivityUpdate","BusinessPlanActivityView","BusinessPlanActivityDelete","ProgramView","ProgramCreate","ProgramUpdate","ProgramDelete","ProgramLevelView","ProgramLevelCreate","ProgramLevelUpdate","ProgramLevelDelete","CertificationView","CertificationCreate","CertificationUpdate","CertificationDelete","TransactionView","TransactionCreate","TransactionUpdate","TransactionDelete","CustomerView","CustomerCreate","CustomerUpdate","CustomerDelete","NewsView","NewsCreate","NewsUpdate","NewsDelete","ExportCreate","CollectionView","CollectionCreate","CollectionUpdate","CollectionDelete","ArticleView","ArticleCreate","ArticleUpdate","ArticleDelete","IntegrationView","IntegrationCreate","IntegrationUpdate","IntegrationDelete","IntegrationSalesforce","PayoutView","PayoutCreate","PayoutUpdate","PayoutDelete","PayoutValidate","PayoutAccept","PayoutPay","PayoutExport","PayoutGet","PayoutSetupAutomaticCreation","LinkCreate","LinkUpdate","LinkView","LinkDelete","RewardDelete","RewardView","RewardValidate","RewardCreate","ProductView","ProductCreate","ProductUpdate","ProductDelete","ProductPriceView","ProductPriceCreate","ProductPriceUpdate","ProductPriceDelete","LineItemView","LineItemCreate","LineItemUpdate","LineItemDelete","TaskView","TaskCreate","TaskUpdate","TaskDelete","AccountDataReset","AccountDataInsert","AccountTenantSettingsUpdate","AccountSetupSSO","AccountPartnerSettingsUpdate","AccountSetupMfa","TeamMemberView","TeamMemberCreate","TeamMemberUpdate","TeamMemberDelete","PartnerView","PartnerCreate","PartnerUpdate","PartnerDelete","PartnerImpersonate","PartnerApplicationAccept","PartnerApplicationReject","GroupView","GroupCreate","GroupUpdate","GroupDelete","AssetView","AssetCreate","AssetUpdate","AssetDelete","AssetMove","AssetCobrandedView","AssetCobrandedCreate","CoworkerView","CoworkerCreate","CoworkerUpdate","CoworkerDelete","CoworkerAssignOwnerRole","CoworkerAssignAdminRole","CoworkerAssignUserRole","CoworkerAssignViewerRole","EmailTemplateView","EmailTemplateCreate","EmailTemplateUpdate","EmailTemplateDelete","DashboardView","DashboardCreate","DashboardUpdate","DashboardDelete","ViewCreateShared","TeamMemberCertificationView","TeamMemberCertificationCreate","TeamMemberCertificationUpdate","TeamMemberCertificationDelete","OnboardingView","OnboardingCreate","OnboardingUpdate","OnboardingDelete","OnboardingStageActionCreate","OnboardingStageActionUpdate","OnboardingStageActionChangeStatus","OnboardingStageActionDelete","OnboardingStageActionView","CommentCreate","CommentUpdate","CommentDelete","CommentView","WorkflowCreate","WorkflowUpdate","WorkflowUpdateStatus","WorkflowManageEnrollments","WorkflowDelete","WorkflowView","MeetingView","MeetingCreate","MeetingUpdate","MeetingDelete","NoteView","NoteCreate","NoteUpdate","NoteDelete","AttachmentView","AttachmentCreate","AttachmentDelete","BillingManage","EmailSend","DirectoryView","DirectoryCreate","DirectoryUpdate","DirectoryDelete","DirectoryProfileView","DirectoryProfileCreate","DirectoryProfileUpdate","DirectoryProfileDelete","SelfInvoicingView","SelfInvoicingManage","AccountMappingDataSourceView","AccountMappingDataSourceCreate","AccountMappingDataSourceUpdate","AccountMappingDataSourceDelete","AccountMappingAccountView","AccountMappingOverlapExport","AccountMappingCollaborationView","AccountMappingCollaborationCreate","AccountMappingCollaborationUpdate","AccountMappingCollaborationDelete","AccountMappingCollaborationRequestCreate","AddonCustomDomain","AddonPartnerDirectory"],"type":"string"}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs-vnext.kiflo.com/developers/api-reference/hub-spot/issues-a-short-lived-hubspot-scoped-kiflo-access-token.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
