# EkoCall - Sending Miss call log via Bot (for offline device)
### Request
```
POST https://<server>/v1/misscall
{
callID: 'PQ2BPggUF4',
calleeUid: '8f7ue489k1jd048fj45d790d',
calleeNumber: '90001',
callerNumber: '90002',
callerName: 'Chris Evan',
callTimestamp: '1594096077',
companyId: '54'
}
Headers
{
content-signature: <signature>
}
```
#### payload
* `calleeUid` the username in EkoCall of callee
* `calleeNumber` To number in SIP
* `callerNumber` From number in SIP
* `callerName` Name of caller
* `callTimestamp` call timestamp in Unix
#### Note*
CallerFirstname and CallLastname only support for EkoCall number.
#### header
##### Signature Generation Algorithm
The signature can be generated by the algorithm described below:
`Signature = HMAC-256(json_body, x-api-key)`
**x-api-key** is a secret key that generated by Eko and provide to Egg
##### *Example code in php*
`$signature = hash_hmac('sha256', $json_body, $x-api-key, true)`
Encode signature in the previous step to Base64 format before putting into the header as value for “**content-signature**”.
`content-signature = Base64 Encode(Signature)`
##### *Example code in php*
`$content-signature = base64_encode($signature);`
### Response
```
{
"reference_id": "20181201191055952850",
"response_code": 200,
"response_msg": "Success",
"response_date": "2020-02-15T16:31:01Z"
}
```
---