---
updatedAt: 2025-09-14T18:09:10.000Z
---

# /v1/login

Endpoint for generating expiring JWT token. Token can be used for requests against Jamf Security API

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Jamf RISK API",
    "version": "1.1"
  },
  "tags": [
    {
      "name": "auth-api",
      "description": "Authentication API"
    }
  ],
  "x-readme": {
    "explorer-enabled": false,
    "proxy-enabled": true
  },
  "paths": {
    "/v1/login": {
      "post": {
        "tags": [
          "auth-api"
        ],
        "description": "Endpoint for generating expiring JWT token. Token can be used for requests against Jamf Security API",
        "operationId": "login",
        "parameters": [
          {
            "name": "authorization",
            "in": "header",
            "description": "Basic auth header containing base64 hash of clientId and clientSecret. Hash is calculated from string pair \"clientId:clientSecret\"",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A response containing expiring JWT token that can be used for requests against Jamf Security API",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LoginResponse"
                }
              }
            },
            "headers": {
              "Referrer-Policy": {
                "description": "",
                "schema": {
                  "type": "string"
                }
              },
              "Strict-Transport-Security": {
                "description": "",
                "schema": {
                  "type": "string"
                }
              },
              "Vary": {
                "description": "",
                "schema": {
                  "type": "string"
                }
              },
              "Content-Length": {
                "description": "The size of entity body in bytes",
                "schema": {
                  "type": "string"
                }
              },
              "Date": {
                "description": "The date and time the message was sent",
                "schema": {
                  "type": "string"
                }
              },
              "Content-Type": {
                "description": "The resource's media type",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Access denied - can be due to wrong combination  of clientId and clientSecret, request path, method",
            "headers": {
              "Referrer-Policy": {
                "description": "",
                "schema": {
                  "type": "string"
                }
              },
              "Strict-Transport-Security": {
                "description": "",
                "schema": {
                  "type": "string"
                }
              },
              "Vary": {
                "description": "",
                "schema": {
                  "type": "string"
                }
              },
              "Content-Length": {
                "description": "The size of entity body in bytes",
                "schema": {
                  "type": "string"
                }
              },
              "Date": {
                "description": "The date and time the message was sent",
                "schema": {
                  "type": "string"
                }
              },
              "Content-Type": {
                "description": "The resource's media type",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "description": "A response indicates the client has sent too many requests within given time period",
            "headers": {
              "Referrer-Policy": {
                "description": "",
                "schema": {
                  "type": "string"
                }
              },
              "Strict-Transport-Security": {
                "description": "",
                "schema": {
                  "type": "string"
                }
              },
              "Vary": {
                "description": "",
                "schema": {
                  "type": "string"
                }
              },
              "Content-Length": {
                "description": "The size of entity body in bytes",
                "schema": {
                  "type": "string"
                }
              },
              "X-Rate-Limit-Retry-After-Milliseconds": {
                "description": "The time (in ms) after which client should retry his request against Jamf Security API once it hits rate limit restriction",
                "schema": {
                  "type": "string"
                }
              },
              "Date": {
                "description": "The date and time the message was sent",
                "schema": {
                  "type": "string"
                }
              },
              "Content-Type": {
                "description": "The resource's media type",
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "LoginResponse": {
        "type": "object",
        "properties": {
          "token": {
            "type": "string"
          }
        }
      }
    }
  }
}
```