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

# Get a SIM by device ID

> Retrieves the details of an existing SIM (device). Specify the SIM's unique device ID in the request URL, which you can find in your dashboard.



## OpenAPI

````yaml /api/1/openapi.yaml get /devices/{deviceId}
openapi: 3.0.0
info:
  title: Hologram REST API v1
  description: >-
    The Hologram HTTP API is a REST-style interface for managing Hologram SIMs,
    accounts, and cloud data. Using this API, you can activate SIMs, get your
    devices' approximate location, send SMS messages to your devices, update
    data usage limits, and much more.


    In Hologram's API, a "device" represents a SIM card. Each item returned by
    `/devices` endpoints represents a single SIM card. You can find more
    information about Hologram terminology in our
    [Glossary](https://docs.hologram.io/guides/get-started/glossary) and the
    Hologram [Connectivity
    overview](https://docs.hologram.io/guides/get-started/sim-connectivity-overview).
    The device ID and SIM ID are effectively the same and represent one SIM, but
    device ID is used in older API endpoints and SIM ID is used in newer API
    endpoints.


    ## Base URL


    ```

    https://dashboard.hologram.io/api/1

    ```


    ## Authentication


    Hologram supports **HTTP Basic authentication** using API keys. Set the
    username to `apikey` and use your API key as the password.


    ### Using cURL


    ```

    curl --verbose GET \

    'https://dashboard.hologram.io/api/1/users/me' \

    -u apikey:YOUR_API_KEY

    ```


    ### Using authorization header


    You can also base64 encode `apikey:YOUR_API_KEY` and include it in the
    Authorization header:


    ```

    curl --verbose GET \

    'https://dashboard.hologram.io/api/1/users/me' \

    --header "Authorization: Basic BASE64_ENCODED_CREDENTIALS"

    ```


    ## API access levels


    - **Read Access**: Available to Editor roles and higher.

    - **Write Access**: Varies by endpoint based on role access, generally
    limited to Admin and Manager roles.


    Users without appropriate permissions will receive 403 errors for restricted
    operations.


    ## Requests


    Request bodies can be provided in either JSON or form-urlencoded formats:


    ### JSON format (recommended)


    ```

    curl --request POST \

    --header "Content-Type: application/json" \

    --header "Authorization: Basic YOUR_ENCODED_CREDENTIALS" \

    --data '{"deviceid": 56668, "body": "Hello SIM!"}' \

    'https://dashboard.hologram.io/api/1/sms/incoming'

    ```


    ### Form-urlencoded format


    ```

    curl --request POST \

    --header "Content-Type: application/x-www-form-urlencoded" \

    --header "Authorization: Basic YOUR_ENCODED_CREDENTIALS" \

    --data 'deviceid=56668&body=Hello%20SIM!' \

    'https://dashboard.hologram.io/api/1/sms/incoming'

    ```


    ## Responses


    **Important:** All Hologram dates and times are stored and displayed in
    **UTC**.


    ### Response format


    All API responses are JSON objects that include the following fields:


    * `success` (boolean) - Indicates whether the request was successful.

    * `data` (object or array) - Contains the requested data or information
    about the operation performed. Only present when `success` is true.

    * `error` (string) - Information about why the request failed. Only present
    when `success` is false.


    ### Limited responses


    Most GET responses will also include the following fields if a limit is
    included as part of the query string:


    * `limit` (number) - The query limit. Some endpoints have this value built
    in and others often have a maximum value.

    * `size` (number) - The number of values returned by the query.

    * `continues` (boolean, optional) - Only returned if there are more values
    than were returned in the response.

    * `links` (object) - Contains information related to the query performed.
      * `path` (string) - The API endpoint path.
      * `base` (string) - API base URL.
      * `next` (string) - URL with query string to get the next results.

    ## Rate limiting


    In order to provide a consistent quality of service to all of our customers,
    we enforce a rate limit on all API requests. If you exceed the rate limit
    you will receive a HTTP 429 response with a JSON response body like this:


    ```

    {
      "success": false,
      "error": "API rate limit exceeded"
    }

    ```


    If you receive this response, you should refrain from making requests for
    5-10 seconds and then retry the request.


    ## Generating an API key


    Find your account API key in your
    [dashboard](https://dashboard.hologram.io/settings/api) under the
    **Settings** section in the main menu, then opening the **API** page.


    Your API can be used to access all organizations you are a member of.


    **Caution:** **Keep your API key secure** and never store it in publicly
    accessible places like GitHub repositories.


    ## Organization IDs


    Your API key gives you access to all organizations you are a member of. If
    no organization is specified in an API request, the request will be
    performed for your personal organization.


    Many endpoints accept an `orgid` parameter to filter for SIMs within a
    specific organization. Learn how to find your organization's ID in [this
    guide](https://docs.hologram.io/dashboard/orgs-and-users/organization-overview).


    ## OpenAPI and Swagger links


    OpenAPI -
    [https://dashboard.hologram.io/api/1/docs/openapi.json](https://dashboard.hologram.io/api/1/docs/openapi.json)


    Swagger -
    [https://dashboard.hologram.io/api/1/docs](https://dashboard.hologram.io/api/1/docs)


    ## Support


    For API support, questions, or additional assistance, please [contact our
    support team](https://docs.hologram.io/guides/get-started/contact-support).
  version: '1'
servers:
  - url: https://dashboard.hologram.io/api/1
    description: Hologram REST API v1
security: []
tags:
  - name: SIMs (Devices)
    description: SIMs (Devices)
  - name: SIM Configuration
    description: SIM Configuration
    x-group: SIM Configuration - Conductor
  - name: Organizations
    description: Organizations
  - name: Personal account
    description: Personal account
  - name: Async Change Requests
    description: Async Change Requests
  - name: Events and Alerts
    description: Events and Alerts
paths:
  /devices/{deviceId}:
    get:
      tags:
        - SIMs (Devices)
      summary: Get a SIM by device ID
      description: >-
        Retrieves the details of an existing SIM (device). Specify the SIM's
        unique device ID in the request URL, which you can find in your
        dashboard.
      operationId: getDevice
      parameters:
        - name: deviceId
          in: path
          description: ID of the device
          required: true
          schema:
            type: integer
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetDeviceResponse'
        '401':
          description: Unauthorized
      security:
        - apiKeyAuth: []
components:
  schemas:
    GetDeviceResponse:
      properties:
        success:
          $ref: '#/components/schemas/SuccessProperty'
        data:
          $ref: '#/components/schemas/DeviceObject'
      type: object
    SuccessProperty:
      description: Indicates whether the request was successful.
      type: boolean
      example: true
    DeviceObject:
      properties:
        id:
          description: Unique device ID
          type: integer
        name:
          description: Device name
          type: string
        orgid:
          description: Organization ID
          type: integer
        type:
          description: Device type
          type: string
        whencreated:
          description: Device creation timestamp (UTC)
          type: string
        tags:
          description: Tags associated with this device
          type: array
          items:
            type: string
        links:
          properties:
            cellular:
              type: array
              items:
                $ref: '#/components/schemas/CellularLinkInDevice'
          type: object
        eid:
          description: EID of the sim card, may be null for some sim card types
          type: string
          nullable: true
        imei:
          description: IMEI of the device
          type: string
        imei_sv:
          description: IMEI Software Version (IMEISV) of the device
          type: string
        tunnelable:
          description: 1 if the device supports secure tunneling with Spacebridge
          type: integer
          enum:
            - 0
            - 1
        hidden:
          description: 1 if the device is hidden on the Dashboard
          type: integer
          enum:
            - 0
            - 1
        phonenumber:
          description: Phone number assigned to the SIM, empty string if none
          type: string
        phonenumber_cost:
          description: Monthly cost of the assigned phone number
          type: string
        simcardid:
          description: SIM card ID associated with the device
          type: integer
        intended_network_state:
          $ref: '#/components/schemas/NetworkState'
        intended_plan_id:
          description: Intended data plan ID for the SIM
          type: integer
          nullable: true
        intended_zone:
          description: Intended plan zone for the SIM
          type: string
          nullable: true
        intended_plan_name:
          description: Name of the SIM's intended data plan
          type: string
          nullable: true
        intended_plan_data:
          description: Included data (bytes) on the SIM's intended data plan
          type: integer
          nullable: true
        rsp_type_id:
          description: >-
            RSP (Remote SIM Provisioning) type ID for the SIM, from
            simcards.rsp_type_id
          type: integer
          nullable: true
        rsp_type_display_name:
          description: >-
            Customer-facing name of the SIM's RSP type, from
            rsp_types.display_name
          type: string
          nullable: true
        euicc_spec:
          oneOf:
            - $ref: '#/components/schemas/EuiccSpec'
          nullable: true
          description: eUICC spec of the SIM's RSP type; null when the SIM has no RSP type
        sim_format:
          description: >-
            Physical SIM form factor from simcards.metadata.form_factor, e.g.
            tricut, embedded, eSIM
          type: string
          nullable: true
        whenclaimed:
          description: SIM activation timestamp from simcards.when_claimed (UTC)
          type: string
          nullable: true
        euicc_tested:
          description: eUICC test status for the device
          type: string
        is_hyper:
          description: >-
            True if the device is a Hyper SIM and supports eUICC rather than a
            standard UICC SIM
          type: boolean
        model:
          description: Device model derived from IMEI TAC lookup, "Unknown" if not found
          type: string
        manufacturer:
          description: >-
            Device manufacturer derived from IMEI TAC lookup, "Unknown" if not
            found
          type: string
        preflight_starttime:
          description: >-
            Timestamp (UTC) when the SIM entered Test Mode, null if not in Test
            Mode
          type: string
          nullable: true
        preflight_scheduled_endtime:
          description: >-
            Timestamp (UTC) when the SIM is scheduled to exit Test Mode, null if
            not in Test Mode
          type: string
          nullable: true
        async_change_requests:
          description: Non-terminal async change requests associated with this device
          type: array
          items:
            $ref: '#/components/schemas/AsyncChangeRequestObject'
      type: object
    CellularLinkInDevice:
      description: A cellular link (SIM profile) associated with a device.
      properties:
        id:
          description: Cellular link ID
          type: integer
        deviceid:
          description: Device ID
          type: integer
        orgid:
          description: Organization ID
          type: integer
        sim:
          description: ICCID of the SIM's enabled profile
          type: string
        msisdn:
          description: Phone number assigned to this SIM
          type: string
        imsi:
          description: International Mobile Subscriber Identity
          type: integer
        state:
          $ref: '#/components/schemas/NetworkState'
        profile_state:
          $ref: '#/components/schemas/ProfileState'
        profile_name:
          description: Carrier display name for this profile
          type: string
          nullable: true
        apn:
          description: Access Point Name
          type: string
        zone:
          description: Data plan coverage zone
          type: integer
        overagelimit:
          description: >-
            Additional bytes of data allowed above the plan's included data; SIM
            pauses when usage exceeds plan included data plus this value (-1 for
            unlimited, 0 for plan included data only)
          type: integer
        carrier:
          description: Carrier backend ID
          type: integer
        whencreated:
          description: SIM activation timestamp (UTC)
          type: string
        whenexpires:
          description: SIM expiry timestamp (UTC)
          type: string
        rsp_type_id:
          description: RSP (Remote SIM Provisioning) type ID for this profile
          type: integer
          nullable: true
        rsp_type_display_name:
          description: Customer-facing name of this profile's RSP type
          type: string
          nullable: true
        euicc_spec:
          oneOf:
            - $ref: '#/components/schemas/EuiccSpec'
          nullable: true
          description: >-
            eUICC spec of this profile's RSP type; null when the profile has no
            RSP type
        async_change_requests:
          description: >-
            Non-terminal async change requests associated with this cellular
            link
          type: array
          items:
            $ref: '#/components/schemas/AsyncChangeRequestObject'
      type: object
    NetworkState:
      type: string
      enum:
        - INACTIVE
        - INACTIVE-TESTED
        - FACTORY-PENDING
        - FACTORY
        - LIVE-PENDING
        - LIVE
        - FROZEN
        - FROZEN-PENDING
        - DEAD
        - DEAD-PENDING
        - PAUSED-SYS
        - PAUSED-PENDING-SYS
        - PAUSED-USER
        - PAUSED-PENDING-USER
        - TEST-ACTIVATE
        - TEST-ACTIVATE-PENDING
        - TEST-AUTOACTIVATE
        - TEST-AUTOACTIVATE-PENDING
        - TEST-HIBERNATE
        - TEST-HIBERNATE-PENDING
    EuiccSpec:
      description: eUICC specification supported by an RSP type
      type: string
      enum:
        - Not supported
        - SGP.02
        - SGP.22
        - SGP.32
        - Unknown
    AsyncChangeRequestObject:
      description: A non-terminal async change request record.
      properties:
        id:
          description: Async change request ID
          type: integer
        parent_id:
          description: Parent request ID for child requests
          type: integer
          nullable: true
        orgid:
          description: Organization ID
          type: integer
          nullable: true
        userid:
          description: User ID who initiated the request
          type: integer
          nullable: true
        request_type:
          description: Type of async change request
          type: string
          enum:
            - plan_change
            - euicc_audit
            - sim_configuration_update
            - configure_sim
            - sim_state_pause
            - sim_state_unpause
            - sim_state_activation
        reference_type:
          description: Type of the referenced object
          type: string
          enum:
            - device
            - link
            - simcard
            - sim_configuration
        reference_id:
          description: ID of the referenced object
          type: integer
        state:
          description: Current state of the request
          type: string
          enum:
            - initialized
            - in_progress
        start_time:
          description: Timestamp when the request was created (UTC)
          type: string
        update_time:
          description: Timestamp of the last state update (UTC)
          type: string
        metadata:
          description: Request-type-specific metadata
          type: object
          nullable: true
      type: object
    ProfileState:
      type: string
      enum:
        - AVAILABLE
        - DOWNLOAD_PENDING
        - DOWNLOADED
        - ENABLE_PENDING
        - ENABLED
        - DISABLE_PENDING
        - DISABLED
        - DELETE_PENDING
        - ASSIGNED
        - UNAVAILABLE
  securitySchemes:
    apiKeyAuth:
      type: http
      description: >-
        HTTP Basic authentication using API keys. Set the username to `apikey`
        and the password to your API key. You can find your API key on the
        Hologram Dashboard under Account Settings.
      scheme: basic

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.