---
search:
  tags:
    - vaults
    - POST
seo:
  description: >-
    Redeems the code the browser came back with,… Reference for the POST
    /v1/vaults/{vault_id}/credentials/oauth/complete endpoint in the Subako
    Public API API.
sidebar:
  label: Complete connecting a credential through OAuth
  badge: POST
title: Complete connecting a credential through OAuth
type: openapi-operation
---
Redeems the code the browser came back with, and stores what the provider issued as an `oauth` credential for the target or origins. A reconnect's connection replaces its credential's payload in place and answers that credential's id. Only the caller that started the connection can complete it.

<Operation source="api" id="complete-credential-oauth" />
