Installations

Mint a token for an installation

Changed on

Mints another company-owned token for an active install — for example one a founder made through the install link. Scopes default to the install's grant and can only narrow it. The token appears in this response only. Requires a token authorized by a user who installed it, could revoke it, or manages the app's organization.

post/installations/{external_id}/tokens

Request

  • Base URL: https://api.wefunder.com
  • URL: https://api.wefunder.com/installations/{external_id}/tokens
  • Auth: OAuth 2 (authorization code, authorization URL https://wefunder.com/oauth/authorize, token URL https://api.wefunder.com/oauth/token; client credentials, token URL https://api.wefunder.com/oauth/token, scopes: write:installations)

Path parameters

external_idstring required

Request body

scopesstring[]

Response

The installation and a new token (shown once)

metaobject

Example response

{
  "data": {
    "type": "installation"
  },
  "token": {
    "access_token": "at_live_…",
    "token_type": "Bearer"
  }
}

Changes