---
agentTools:
  projectIndex: https://docs.decentro.tech/llms.txt
---

# Phone Tenure

> 🙌 Important Note
>
> Please use only **Staging Credentials** on each API Reference page to test the APIs directly from our Documentation.

### API Endpoints

| Environment | Host                       |
| :---------- | :------------------------- |
| Staging     | `in.staging.decentro.tech` |
| Production  | `in.decentro.tech`         |

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Decentro Staging",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://in.staging.decentro.tech"
    }
  ],
  "security": [
    {}
  ],
  "paths": {
    "/v2/bytes/alternate-data/phone-tenure": {
      "post": {
        "summary": "Phone Tenure",
        "description": "",
        "operationId": "bytes-alternate-data-phone-tenure",
        "parameters": [
          {
            "name": "client_id",
            "in": "header",
            "description": "The client ID that will be provided to a specific client and environment. Please note, this may change based on the environment you are on.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "client_secret",
            "in": "header",
            "description": "The confidential credential provided by Decentro that is associated with the client_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "reference_id",
                  "consent",
                  "purpose",
                  "mobile"
                ],
                "properties": {
                  "reference_id": {
                    "type": "string",
                    "description": "Any unique ID assigned by you for this API request."
                  },
                  "consent": {
                    "type": "boolean",
                    "description": "true/false based on the consent given by the customer. Mandatory as per regulation.",
                    "default": true
                  },
                  "purpose": {
                    "type": "string",
                    "description": "The purpose of taking this consent from your customer. Mandatory as per regulation. (>20 characters)"
                  },
                  "mobile": {
                    "type": "string",
                    "description": "User mobile number"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Success": {
                    "value": "{\n  \"decentroTxnId\": \"txn-fghij67890\",\n  \"status\": \"SUCCESS\",\n  \"responseKey\": \"success_phone_tenure_data_fetched\",\n  \"message\": \"Phone tenure data fetched successfully.\",\n  \"data\": {\n    \"ageOnNetworkRange\": \"5 to 6 Years\",\n    \"dateOfNetworkInitiation\": \"2017-09-15\",\n    \"operator\": \"Airtel\",\n    \"isPostpaid\": true,\n    \"circle\": \"Delhi NCR\"\n  }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "decentroTxnId": {
                      "type": "string",
                      "example": "txn-fghij67890"
                    },
                    "status": {
                      "type": "string",
                      "example": "SUCCESS"
                    },
                    "responseKey": {
                      "type": "string",
                      "example": "success_phone_tenure_data_fetched"
                    },
                    "message": {
                      "type": "string",
                      "example": "Phone tenure data fetched successfully."
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "ageOnNetworkRange": {
                          "type": "string",
                          "example": "5 to 6 Years"
                        },
                        "dateOfNetworkInitiation": {
                          "type": "string",
                          "example": "2017-09-15"
                        },
                        "operator": {
                          "type": "string",
                          "example": "Airtel"
                        },
                        "isPostpaid": {
                          "type": "boolean",
                          "example": true,
                          "default": true
                        },
                        "circle": {
                          "type": "string",
                          "example": "Delhi NCR"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "627cbd56949a61004bbb9c80:6766274f0733810062f0137e"
}
```