---
title: "Authorize. For internal use."
slug: "authorize-for-internal-use-1"
updated: 2026-03-02T22:30:52Z
published: 2026-03-02T22:35:48Z
canonical: "support.appgate.com/authorize-for-internal-use-1"
---

> ## Documentation Index
> Fetch the complete documentation index at: https://support.appgate.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Authorize. For internal use.

Get/authorization

API Scripts are recommended to use the Login call instead of separate Authentication & Authorization calls. Last step for logging in is sending the partial AuthToken for authorization and retrieving the AuthToken.

SecurityHTTPType bearer

Responses200

Authorization was successful. The AuthToken is ready for any subsequent API call.

<select class='api-response-data' aria-label='Media type'><option value='93a60217-33d3-471c-8e45-1dab6fc43508'>application/json</option>
</select>Expand Allobject  userobject  

Information about logged in user, such as username and email address, if exists.

namestring    

Username.

Exampleadmin
needTwoFactorAuthboolean    

If true, it is not possible to complete login process without providing MFA.

Examplefalse
canAccessAuditLogsboolean    

Whether there is a LogServer deployed and the user has privileges to access to it.

privileges Array of object (AdministrativePrivilege)   

The privileges the user has.

object  

Administrative Privilege item. Use type-target-map API to get the details on which types are valid for which targets and their scopes.

typestring    

The type of the Privilege defines the possible administrator actions.

Valid values[
  "All",
  "View",
  "Create",
  "Edit",
  "Tag",
  "Delete",
  "Revoke",
  "Export",
  "Upgrade",
  "RenewCertificate",
  "DownloadLogs",
  "Test",
  "GetUserAttributes",
  "Backup",
  "CheckStatus",
  "Reevaluate",
  "Reboot",
  "AssignFunction"
]
targetstring    

The target of the Privilege defines the possible target objects for that type.

Valid values[
  "All",
  "Appliance",
  "Condition",
  "CriteriaScript",
  "Entitlement",
  "AdministrativeRole",
  "IdentityProvider",
  "MfaProvider",
  "IpPool",
  "LocalUser",
  "ServiceUser",
  "Policy",
  "Site",
  "DeviceClaimScript",
  "EntitlementScript",
  "RingfenceRule",
  "ApplianceCustomization",
  "TrustedCertificate",
  "UserClaimScript",
  "OtpSeed",
  "Fido2Device",
  "Blacklist",
  "License",
  "UserLicense",
  "RegisteredDevice",
  "AllocatedIp",
  "SessionInfo",
  "AuditLog",
  "AdminMessage",
  "GlobalSetting",
  "CaCertificate",
  "File",
  "AutoUpdate",
  "RiskModel",
  "Ztp",
  "ClientProfile",
  "Secret",
  "DiscoveredApp"
]
scopeobject  

The scope of the Privilege. Only applicable to certain type-target combinations. Some types depend on the IdP/MFA type, such as GetUserAttributes. This field must be omitted if not applicable.

allboolean    

'If "true", all objects are accessible. For example, "type: Edit - target: Condition - scope.all: true" means the administrator can edit all Conditions in the system.'

ids Array of string   

Specific object IDs this Privilege would have access to.

string  (uuid)    Example4c07bc67-57ea-42dd-b702-c2d6c45419fc
tags Array of string   

Object tags this privilege would have access to.

string    Exampletag

defaultTags Array of string   

The items in this list would be added automatically to the newly created objects' tags. Only applicable on "Create" type and targets with tagging capability. This field must be omitted if not applicable.

string    Exampleapi-created
functions Array of string (ApplianceFunction)   

Privilege for changing Appliance Functions. Only applicable on "AssignFunction" type with Appliance or All target. This field must be omitted if not applicable.

string    Valid values[
  "Controller",
  "Gateway",
  "LogServer",
  "LogForwarder",
  "Connector",
  "Portal",
  "Metrics Aggregator",
  "Connection Broker"
]

tokenstring    

The AuthToken required for subsequent API calls.

expiresstring  (date-time)    

Token expiration time.

messageOfTheDaystring    

Message of the day configured by an admin.

ExampleWelcome to Appgate SDP.
ztpCollectiveTypestring    

ZTP type of the collective.

Valid values[
  "hosted",
  "connected"
]
ztpAccountTypestring    

ZTP account type.

Valid values[
  "standard",
  "demo"
]
crlEnabledboolean    

Whether X509 CRL is enabled for the system or not. Issued Certificates is disabled if it's not enabled.

400

JSON error. Check the JSON format.

<select class='api-response-data' aria-label='Media type'><option value='68743acd-1ab1-42bc-a2aa-404db62aa79c'>application/json</option>
</select>object  

Generic HTTP error.

idstring    

Machine readable error code.

messagestring    

Human readable error details.

401

Login Failed.

<select class='api-response-data' aria-label='Media type'><option value='b450a5d5-36f7-4f84-8433-b50500c34347'>application/json</option>
</select>object  idstring    

Machine readable error code.

messagestring    

Human readable error details.

reasonstring    

The authentication failure reason.

ExampleInvalid username or password.

403

No administration rights.

<select class='api-response-data' aria-label='Media type'><option value='2446e8ba-388a-4e49-9d46-32a93216e475'>application/json</option>
</select>object  

Generic HTTP error.

idstring    

Machine readable error code.

messagestring    

Human readable error details.

406

Invalid 'Accept' header.

<select class='api-response-data' aria-label='Media type'><option value='603b800a-b2c2-4438-b48b-1a38c4603d18'>application/json</option>
</select>object  

Generic HTTP error.

idstring    

Machine readable error code.

messagestring    

Human readable error details.

422

Request validation error. Check "errors" array for details.

<select class='api-response-data' aria-label='Media type'><option value='f19888e4-235c-4e24-890e-e0b370980173'>application/json</option>
</select>Expand Allobject  

Http 422 error for object validation.

idstring    

Machine readable error code.

messagestring    

Human readable error details.

errors Array of object   

List of fields with validation errors.

object  fieldstring    

Name of the field that failed validation.

Examplename
messagestring    

Failure reason.

Examplemay not be null

500

Unexpected server side error.

<select class='api-response-data' aria-label='Media type'><option value='af0ca8e2-84e9-47ab-a42d-49514b395a19'>application/json</option>
</select>object  

Generic HTTP error.

idstring    

Machine readable error code.

messagestring    

Human readable error details.
