user-credentials

Create user credential connect link

Changed on

Creates a single-use connect link for an end user, valid for 10 minutes.

Send the user to url. For an oauth credential they sign in with the provider; for a token credential they paste their API token. The token is stored under user_id. Use the same ID that your middleware sets in the context path named by credential.user. The browser then returns to return_url with connic_oauth=connected, denied, or failed added to the query. return_url must match one of the credential's return URLs; without it, connic shows a confirmation page.

Required permission: oauth_apps.connect.

post/v1/projects/{project_id}/user-credentials/{credential_id}/connect-links

Request

  • Base URL
    https://api.connic.co
  • Auth
    HTTP bearer

Path parameters

project_id, string uuid required

ID of the project the API key belongs to.

credential_id, string uuid required

User credential ID from GET /user-credentials.

Request body

ConnectLinkCreate required

End user to create a connect link for.

user_id, string required

Your ID for the end user, up to 255 characters. Use the value your middleware sets at the context path named by credential.user.

return_url, string nullable

Where the browser returns after connecting, with connic_oauth set to connected, denied or failed. Must match one of the credential's return_urls; omit to show a connic confirmation page.

Response

Successful Response

ConnectLinkResponse required

Single-use connect link for an end user.

url, string required

Single-use URL to send the end user to.

expires_at, string required

When the link expires, 10 minutes after creation.

Changes