code: def manage_api_keys():
      
      build = g.build
      create_form = forms.CreateApiKeyForm()
      if create_form.validate_on_submit():
          api_key = models.ApiKey()
          create_form.populate_obj(api_key)
          api_key.id = utils.human_uuid()
          api_key.secret = utils.password_uuid()
  
          save_admin_log(build, created_api_key=True, message=api_key.id)
  
          db.session.add(api_key)
          db.session.commit()
  
          logging.info('Created API key=%r for build_id=%r',
                       api_key.id, build.id)
          return redirect(url_for('manage_api_keys', build_id=build.id))
  
      create_form.build_id.data = build.id
  
      api_key_query = (
          models.ApiKey.query
          .filter_by(build_id=build.id)
          .order_by(models.ApiKey.created.desc())
          .limit(1000))
  
      revoke_form_list = []
      for api_key in api_key_query:
          form = forms.RevokeApiKeyForm()
          form.id.data = api_key.id
          form.build_id.data = build.id
          form.revoke.data = True
          revoke_form_list.append((api_key, form))
  
      return render_template(
          'view_api_keys.html',
          build=build,
          create_form=create_form,
          revoke_form_list=revoke_form_list)
docs: Page for viewing and creating API keys.