Answer: v2 uses Bearer token authentication, passing your credential in the `Authorization` header instead of in the request body. Two kinds of credential are accepted: a Devin service user API key (recommended, starting with `cog_`) or a Windsurf service key. Status: Confirmed Entry: tool/devin/permissions-and-security/analytics-v2-authentication Revision: 2 Digest: sha256:82a97236c16a51d3 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:12:36Z Last changed: 2026-11-19T12:36:12Z (Windsurf key permission: — → Analytics Read) Last verified: 2026-11-20T12:41:42Z Next check: 2026-11-21T12:41:42Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Authentication method | Bearer token | [1] | 2026-11-20 Header format | Authorization: Bearer | [1] | 2026-11-20 Accepted credential 1 | Devin service user API key | [1] | 2026-11-20 Accepted credential 2 | Windsurf service key | [1] | 2026-11-20 API key prefix | cog_ | [1] | 2026-11-20 Required permission | Use Local Analytics API | [1] | 2026-11-20 Windsurf key permission | Analytics Read | [1] | 2026-11-20 Sources: [1] Cognition. "Analytics API v2". https://docs.devin.ai/desktop/accounts/api-reference/analytics-v2-introduction.md Role: primary. Accessed: 2026-11-20T12:41:42Z Quote: "v2 uses **Bearer token** authentication." (Supports: Authentication method) Quote: "Authorization: Bearer " (Supports: Header format) Quote: "a **Devin service user API key** (recommended — the same" (Supports: Accepted credential 1) Quote: "or a **Windsurf service key**." (Supports: Accepted credential 2) Quote: "it starts with `cog_`" (Supports: API key prefix) Quote: "**Use Local Analytics API** permission (the built-in admin role already includes it)" (Supports: Required permission) Quote: "Create a new service key with the **Analytics Read** permission" (Supports: Windsurf key permission) Published: 2026-11-20T11:42:33Z Snapshot SHA-256: 4618de4419b500b5c9cb11b636a835c7d6cc0cb3a5f09b58ef3ed72c5304c166 (captured 2026-11-18T12:35:30Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-18T12:35:29Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:41:42Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:41:42Z Last attempt: 2026-11-20T12:41:42Z Notes and limitations: Extracted automatically from a single official source (section "Authentication"). Related: https://latestn.com/tool/devin/permissions-and-security/approve-or-bypass-local-permissions How do I approve or bypass local permissions for Devin tool calls on my machine? https://latestn.com/tool/devin/permissions-and-security/auto-triage-security What security considerations should I know when using Devin Auto-triage? https://latestn.com/tool/devin/permissions-and-security/available-role-permissions What permissions can I assign to a role in Devin Desktop? https://latestn.com/tool/devin/permissions-and-security/agent-command-permission-rules How do I set allow, ask, or deny permission rules for commands the Devin Desktop agent runs automatically? https://latestn.com/tool/devin/permissions-and-security/agent-output-authentication How do I authenticate to the Devin Get Agent Output (Lines of Code) endpoint? https://latestn.com/tool/devin/permissions-and-security/allow-network-access-apple How do I allow Devin network access to Apple's servers for TestFlight uploads? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-19T12:36:12Z | changed | Windsurf key permission: — → Analytics Read | [1] 2026-11-19T12:36:12Z | changed | Required permission: — → Use Local Analytics API | [1] 2026-11-19T12:36:12Z | changed | API key prefix: — → cog_ | [1] 2026-11-19T12:36:12Z | changed | Accepted credential 2: — → Windsurf service key | [1] 2026-11-19T12:36:12Z | changed | Accepted credential 1: — → Devin service user API key | [1] 2026-11-19T12:36:12Z | changed | Header format: — → Authorization: Bearer | [1] 2026-11-19T12:36:12Z | changed | Authentication method: — → Bearer token | [1] 2026-11-19T12:36:12Z | changed | Windsurf service key permission: Analytics Read → — | [1] 2026-11-19T12:36:12Z | changed | required permission: Use Local Analytics API → — | [1] 2026-11-19T12:36:12Z | changed | Devin API key prefix: cog_ → — | [1] 2026-11-19T12:36:12Z | changed | header format: Authorization: Bearer → — | [1] 2026-11-19T12:36:12Z | changed | authentication method: Bearer token → — | [1] 2026-11-13T03:12:36Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/devin/permissions-and-security/analytics-v2-authentication/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/devin/permissions-and-security/analytics-v2-authentication POST: https://latestn.com/dispute/tool/devin/permissions-and-security/analytics-v2-authentication with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/devin/permissions-and-security/analytics-v2-authentication?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I authenticate requests to the Devin Analytics API v2? Revision 2, last verified 2026-11-20T12:41:42Z. https://latestn.com/tool/devin/permissions-and-security/analytics-v2-authentication (accessed 2026-11-21T09:58:10Z). @misc{LatestN_tool_devin_permissions_and_security_analytics_v2_authentication_r2, title = {How do I authenticate requests to the Devin Analytics API v2?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/devin/permissions-and-security/analytics-v2-authentication}}, note = {Revision 2; digest sha256:82a97236c16a51d3; last verified 2026-11-20T12:41:42Z; accessed 2026-11-21T09:58:10Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/devin/permissions-and-security/analytics-v2-authentication