---
title: "Activate user by third party activation code"
method: POST
path: "/api/user/activate-by-third-party-activation-code"
tags: ["User"]
---

# Activate user by third party activation code

`POST /api/user/activate-by-third-party-activation-code`

## Request

- Base URL: `https://studio.edgeimpulse.com/v1`
- URL: `https://studio.edgeimpulse.com/v1/api/user/activate-by-third-party-activation-code`
- Auth: one of:
  - API key in header `x-api-key`
  - API key in cookie `jwt`
  - API key in header `x-jwt-token`
  - OAuth 2
    - Authorization code: `/v1/oauth/authorize`
    - Client credentials
    - Implicit: `/v1/oauth/authorize`
    - Password
    - Token URL: `/v1/oauth/token`
- TypeScript: <https://skmtc.dev/edgeimpulse/apis/edge-impulse-api/docs/api/user/activate-by-third-party-activation-code/post.ts> (a function with typed inputs; its response is checked against the schema)

Activate a user that was created by a third party. This function is only available through a JWT token.

## Request body

- ActivateUserByThirdPartyActivationCodeRequest
  - `activationCode` string, required
  - `password` string, required: Password, minimum length 8 characters.
  - `name` string: Your name
  - `username` string, required: Username, minimum 4 and maximum 30 characters. May contain alphanumeric characters, hyphens, underscores and dots. Validated according to `^(?=.{4,30}$)(?![_.])(?!.*[_.]{2})[a-zA-Z0-9._-]+(?<![_.])$`.
  - `privacyPolicy` boolean: Whether the user accepted the privacy policy

## Response `200`

OK

- GetJWTResponse
  - `success` boolean, required: Whether the operation succeeded
  - `error` string: Optional error description (set if 'success' was false)
  - `token` string: JWT token, to be used to log in in the future through JWTAuthentication
  - `redirectUrl` string: Redirect URL to follow to complete login

---

[API](https://skmtc.dev/edgeimpulse/apis/edge-impulse-api.md) - [All operations](https://skmtc.dev/edgeimpulse/apis/edge-impulse-api/llms.txt) - [OpenAPI document](https://skmtc.dev/edgeimpulse/apis/edge-impulse-api/revisions/e2a976d38427?raw)
