Datasets

Arcgis Signin

Sign in to an ArcGIS portal and return a short-lived token.

Asks the portal's own token service for a token valid for 60 minutes and returns it. Put that token in the token field on probe, preview, commit and refresh; an import that runs longer than the token lives fails with a credential error and has to start over.

An account that signs in through an identity provider, or that has multifactor authentication turned on, cannot use this. Paste a token or an API key instead. A portal on a private network is unreachable either way.

post/services/arcgis/signin/

Request

  • The document declares no server URL.
  • Auth: one of:
    • OAuth 2 (password, token URL /api/auth/login)
    • API key in header X-Api-Key
    • API key in query parameter api_key

Request body

portal_urlstring required

ArcGIS portal URL, for example https://your-org.maps.arcgis.com. The /sharing/rest base is accepted too.

usernamestring required

ArcGIS account name to sign in with.

passwordstring required

Password for that ArcGIS account.

Response

Successful Response

tokenstring required

Short-lived ArcGIS portal token. Use it as the token field on probe, preview, commit and refresh.

expires_atstring date-time required

UTC instant at which the portal stops accepting the token.

Changes

No recorded changes to this operation across all 50 revisions of this API.