GuidesHow ToManage Administrators

Register New Administrator

Register a new admin and his/her org

You can use the Register New Admin API Call to register a new Mist Administrator without inviting him/her to any Mist Organization.

POST /api/v1/register

Request

{
    "email": "test@mistsys.com",
    "password": "foryoureyesonly",
    "first_name": "John",
    "last_name": "Smith",
    "org_name": "TestCompany",
    "recaptcha": "see https://www.google.com/recaptcha/",
    "referer_invite_token": "Dm2gtT8dwMeM4Bc2E8FLIaA96VHOjPat",
    "return_to": "http://mist.zendesk.com/hc/quickstart.pdf",
    "account_only": false,
    "allow_mist": false,
    "invite_code": "MISTROCKS"
}

Parameter

NameTypeDescription
emailstringRequired. max length is 64
passwordstringRequired.
first_namestringRequired.
last_namestringRequired.
org_namestringRequired.
recaptchastringreCAPTCHA
referer_invite_tokenstringoptional, the invite token to apply after account creation
return_tostringoptional, the url the user should be redirected back to
account_onlybooleanskip creating initial setup if true, default is false
allow_mistbooleanwhether to allow Mist to look at this org, default is False
invite_codestringrequired initially

reCAPTCHA

Google reCAPTCHA is the choice to prevent bot registration

It needs this script

and this 

Response if registration is successful

Status: 200 OK

An email will also be sent to the user with a link to https://manage.mist.com/verify/register?token=:token

Verify registration

The new registration must be verified with a token sent by email to the registered administrator email. This can be done with the Verify Registration API Call.

POST /api/v1/register/verify/:token

Response if successful

With correct verification, the admin account will be created and the authenticated

Status: 200 OK
Set-Cookie: csrftoken=vwvBuq9qkqaKh7lu8tNc0gkvBfEaLAmx; expires=Tue, 15-Mar-2016 19:47:20 GMT; Max-Age=31449600; Path=/

{
    // optionally, the URL stored in the registration flow is remembered
    "return_to": "http://mist.zendesk.com/hc/quickstart.pdf"
}

Response if successful but failed to apply the invitation automatically

With correct verification, the admin account will be created and the authenticated

Status: 200 OK
Set-Cookie: csrftoken=vwvBuq9qkqaKh7lu8tNc0gkvBfEaLAmx; expires=Tue, 15-Mar-2016 19:47:20 GMT; Max-Age=31449600; Path=/

{
    "invite_not_applied": true,

    // same information
    "detail":"password policy not met",
    "min_length": 8
}

Response if secret is invalid

Status: 404 Not Found

{
    "detail": "Not found."
}

Response if verification expired

Status: 400 Bad Request

{
    "detail": "expired"
}

Response if already registered

Status: 400 Bad Request

{
    "detail": "already registered"
}

On this page